Install Shield; How to check the exit code, but not show an error?

I have a custom action that runs at the very beginning of my Install Shield project. I check the exit code on this custom action because it is a form in which there is a "Next" and "Cancel" button, if the user cancels the installation, DO NOT continue if they select the next one, it should (so I check the exit code ) However, I do not want the user to see the install-Shield error message when they choose to cancel. Can i do something? I have a 2010 screen installed

+3
source share
1 answer

Custom EXE actions can be successful or unsuccessful (zero or non-zero return code). Custom MSI DLL Actions can set properties (which may be performed in future actions) and return one of several status indicators, including success, failure, or cancellation of the user. If you need to use an EXE (say, because it was provided to you), you will most likely have to wrap it in a custom MSI DLL action to do what you want. Or, if possible, it might be much better to rewrite the EXE as a DLL.

+4
source

Source: https://habr.com/ru/post/1779222/


All Articles