• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 451
  • Last Modified:

Visual Studio .NET MSI installation program

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.

Regards,
Carlos.
0
carlostriassi
Asked:
carlostriassi
1 Solution
 
SStoryCommented:
Not sure this helps but:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/command_line_options.asp

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.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now