This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Passing arguments to msi to allow silent install
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 16, 2011
03:29 AM
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?
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?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 16, 2011
09:39 AM
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.