Visual Studio .NET MSI installation program

Posted on 2006-05-03
Last Modified: 2013-11-14
I built a Visual Studio .NET Solution MSI installation program. Is it possible to pass parameters on my .msi installation program. for instance, we would like to pass the Host Server Name on our installation MSI program for our bacth scripts.

For example:

MyTest.msi elvis

where elivis is one of our server names.

or is there a better way to read an external source to read server name as one my parameters.

Remember, what ever the solution is, I need to include MyTest.msi installation program to run on our Login scripts, so how do we handle its parameters, command line arguments or an external source.

Question by:carlostriassi
    1 Comment
    LVL 25

    Accepted Solution

    Not sure this helps but:

    They talk about command-line options and properties.
    Where those properties are written I'm not sure, but it might help you.

    Is there something in your setup that must know the server name?
    Could a custom action do this?  Read a file you place with your setup? Or do you have to know this before doing some basic install stuff?  If not, add a custom installer and make it read a file and get it from there.  

    I assume you don't want to prompt the installer at all?
    if so, just prompt them the first time the app is ran and write value to a registry entry.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now