Page 1 of 1

MSI public properties

Posted: Sat Apr 09, 2005 5:03 am
by ThomasWerner
How do I define and access public properties defined on the commandline when running the installation package?

To be more specific: I need a way for our customers to be able to supply some information to the installation from the command line. They are using silent installs so adding input fields on a dialog box is no option.

Best regards

Posted: Sat Apr 09, 2005 7:20 am
by sinan
With InstallAware, there's a better and easier way to do this.

You have full access to the command line from the installation script. Simply define your own switches/parameters. You may code the necessary actions directly into your setup script.

If you want less customizability, you can set the values of pre-defined variables on the command line using the form VAR=VALUE, for instance:

Code: Select all

setup.exe /s "TARGETDIR=D:\\Program Files\\My Application"


Will silently install the application into the named folder.