How to set msi properties from CommandLine when installer is running in silent mode?

9.4k views Asked by At

I have an application which recieves some settings at the time of installations the recieved settings are stored in some files for the proper working of the application.

These are done by the custom actions. Each custom action is executed on the various stages of the installation wizard. And these custom actions sets and retrievs various msi properties. (The values of the properties retrieved by the custom actions are those provided by the user.)

eg:- checking for the valid database, with the values provided by the user.

These are all working correctly with the installer EXE that I have made using Installshield 2009

Now I have to make the installer to work in silent mode.

How can I set the MSI properties via commandline? Currently the Installer is an EXE and not msi.

Do I need to make any changes in the installer part? Can I do it using the Current EXE?

Any one Please Help..... Thanks In advance.....

1

There are 1 answers

4
sohil On

You can pass parameters from the exe to the msi using /v.

For example, to make the msi print verbose logs, you should run it as:

    setup.exe /v"/L*v\"%temp%\install.log\"

Similarly, to set msi properties using the exe, you should use:

    setup.exe /v"NEWPROP=1"

Check out the following for more details: http://publib.boulder.ibm.com/infocenter/pcomhelp/v6r0/index.jsp?topic=%2Fcom.ibm.pcomm.doc%2Fbooks%2Fhtml%2Finstall_guide12.htm