cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Magnus
Level 6

The exit or abort statement does not work in Windows 10

Hello

I am using Installshield 2015 (version 22). I have a BasicMSI Project. I have written a conditional statement in my InstallShield Script code, called from an Custom Action as given below.

if(condition==yes)
{
exit;
}

The "exit " statement does not work on Windows 10 but works fine on Windows 7.
I've tried the "abort" statement but it does not work either.

It would be of great help if somebody suggests a solution to this issue.

Thanks in advance
Magnus
Labels (1)
0 Kudos
(2) Replies
eladef
Level 7

Hi

This is what I got from InstallShield support ( and it works... )

If you are doing this in an MSI based installation in a custom action, the custom action should be returning the value so that Windows Installer will exit if needed. For exiting an MSI install, you should be able to return ERROR_INSTALL_FAILURE or ERROR_INSTALL_USEREXIT instead of the abort statement, which is there to abort InstallScript installations.

For more information on custom action return values, please refer to the following article:
http://helpnet.flexerasoftware.com/installshield22helplib/installshield22helplib.htm#StartTopic=helplibrary/IHelpIScriptCAReturnValues.htm
0 Kudos
Magnus
Level 6

Thanks, thats works fine!

Regards
Magnus
0 Kudos