cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Amerisun
Level 3

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);
Labels (1)
0 Kudos
(2) Replies
venkat
Level 3

Try to set output as setup.exe /V\"INSTALLLEVEL=2\".
See if it works.

Regards,
Venkat
0 Kudos
Amerisun
Level 3

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.
0 Kudos