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
- :
- Re: abort statement is failing to exit the installer.
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
‎Jul 27, 2017
05:33 AM
abort statement is failing to exit the installer.
hi all,
I wrote a simple function in basic msi IS2016 to abort the installer. It is working fine if I call this function from another function FunA as SimpleAbort(hMSI); , but if I call SimpleAbort from any other custom actions after install welcome dialog nothing is happening, installer continuing further.
how to abort the installer, target OS is WIN2012 and above
thanks in advance.
I wrote a simple function in basic msi IS2016 to abort the installer. It is working fine if I call this function from another function FunA as SimpleAbort(hMSI); , but if I call SimpleAbort from any other custom actions after install welcome dialog nothing is happening, installer continuing further.
how to abort the installer, target OS is WIN2012 and above
thanks in advance.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 27, 2017
12:58 PM
Are you using InstallScript for your Custom Action language or some other language?
InstallScript itself has an abort; function. You should be able to just call this abort directly without encapsulating it within another function.
One important caveat is to make sure you have your Custom Action is set to check the return code.
https://community.flexerasoftware.com/archive/index.php?t-163623.html
Chad
InstallScript itself has an abort; function. You should be able to just call this abort directly without encapsulating it within another function.
One important caveat is to make sure you have your Custom Action is set to check the return code.
https://community.flexerasoftware.com/archive/index.php?t-163623.html
Chad
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 30, 2017
12:06 PM
my issue is resolved by setting a condition to an event which leads to the "end dialog". I even tried call abort in first few days, it is being executed but control is going to next dialog.As I understood calling a End Dialog with condition for an event is feasible solution. Thanks all of you for your good suggestions.