cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tcom36
Level 7

Passing arguments to msi to allow silent install

Hi

I do have an InstallScript MSI project. During install process, the user has to enter several information over a few GUIs of the installer.

The information is retrieved like:

nResult = SdShowDlgEdit1 (szTitle, szMsg, szField, svResult);

and stored for further use like:

MsiSetProperty( ISMSI_HANDLE, "MY_PROPERTY1", svResult);

Now, I do have the requirement to allow silent install, but how do I pass such arguments over the command line of setup.exe?
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

You can use the /v switch to setup.exe to pass switches and property values through to the Windows Installer engine (see the help topic "Setup.exe and Update.exe Command-Line Parameters"), but more common is just for the user to enter the desired values when generating the response file for future silent installations.
0 Kudos