Join us for SoftSummit 2023. The 20th anniversary of the industry leading software monetization conference. April 18 and 20. Register Now

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

The exit or abort statement does not work in Windows 10


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.


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


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:
0 Kudos
Level 6

Thanks, thats works fine!

0 Kudos