Installshield 2014 - show form optional by errorcode of batch script

58 Views Asked by At

How can i display a form in my installshield sequence optional by evaluating the error code of a batchscript?

1

There are 1 best solutions below

6
On

Windows Installer offers no direct way to do this. What you will have to do is create an MSI .dll custom action that runs the batch file, captures its error code, and stores it into a Windows Installer Property (e.g. using MsiSetProperty). Then you can edit the Events on the relevant Next button to conditionally go your selected optional panel. (Don't forget to edit the Back button events accordingly so that your wizard remains consistent.)