- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Running MSI installer in silent mode makes it succeed even in error situation
- 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
Hi,
I have a little check in a custom action that is executed after the support files are extracted in an MSI based install shield script. It's set to synchronous, check exit code.
I call abort if I find a problem. I've also tried return ERROR_INSTALL_FAILURE but that didn't alter how it worked.
When I run the installer normally, if I call abort, the installer will stop and I'll get a dialog saying that it failed. But if I run it like this -
setup.exe /S /v" /qn+ INSTALLDIR=c:\tmp\blahblah"
Now it still fails to install but I get a dialog saying "Setup completed successfully". This is misleading. Also ERRORLEVEL is zero.
How can I fix this?
Thanks.
Peter
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Figured it out after reading other posts on silent mode. My custom action was in the UI sequence so not getting executed. I switched it to the Exec sequence and it worked for silent install but ran too late for a UI install (needs to run before other dialogs). So now I've put it in both sequences! Won't do any harm to run it more than once.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Figured it out after reading other posts on silent mode. My custom action was in the UI sequence so not getting executed. I switched it to the Exec sequence and it worked for silent install but ran too late for a UI install (needs to run before other dialogs). So now I've put it in both sequences! Won't do any harm to run it more than once.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content