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
- :
- DoInstall - Problem with passing command line /V"InstallLevel=2"
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
‎Mar 01, 2011
03:50 PM
DoInstall - Problem with passing command line /V"InstallLevel=2"
I need to run an InstallShield setup with DoInstall. But I need the parameters to look like the below (which works outside from a DOS prompt):
setup.exe /V"INSTALLLEVEL=2"
I tried the below, but it's bombing out, can someone tell me what I might be doing wrong here?
nReturn = DoInstall (SECOND_INSTALL_PATH ^ SECOND_INSTALL_FILENAME, "/V\"INSTALLLEVEL=2\"",
LAAW_OPTION_WAIT|DOINSTALL_OPTION_NOHIDEPROGRESS);
setup.exe /V"INSTALLLEVEL=2"
I tried the below, but it's bombing out, can someone tell me what I might be doing wrong here?
nReturn = DoInstall (SECOND_INSTALL_PATH ^ SECOND_INSTALL_FILENAME, "/V\"INSTALLLEVEL=2\"",
LAAW_OPTION_WAIT|DOINSTALL_OPTION_NOHIDEPROGRESS);
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 08, 2011
08:03 AM
Try to set output as setup.exe /V\"INSTALLLEVEL=2\".
See if it works.
Regards,
Venkat
See if it works.
Regards,
Venkat
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 08, 2011
10:00 AM
venkat,
I ended up extracting the .exe and pulling out the MSI from inside the setup file and doing it as a chained MSI installation instead. This solved the problem as I could put the command lines as parameters to the installer right in the interface. It also allows me to cleanly uninstall both my applicaiton and the chained MSI without additional InstallScript.
Although I didn't understand "setting the output of setup" not sure where to set that or what you meant. I am still too green on this product to be able to know that. 🙂
Thanks for the reply though.
I ended up extracting the .exe and pulling out the MSI from inside the setup file and doing it as a chained MSI installation instead. This solved the problem as I could put the command lines as parameters to the installer right in the interface. It also allows me to cleanly uninstall both my applicaiton and the chained MSI without additional InstallScript.
Although I didn't understand "setting the output of setup" not sure where to set that or what you meant. I am still too green on this product to be able to know that. 🙂
Thanks for the reply though.
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)