This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- The exit or abort statement does not work in Windows 10
Subscribe
- 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
‎Feb 21, 2016
11:47 PM
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
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
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 22, 2016
05:47 AM
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
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 22, 2016
11:04 PM
Thanks, thats works fine!
Regards
Magnus
Regards
Magnus
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)