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
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Custom code: How to fail the uninstaller at will?
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
‎Apr 09, 2008
07:40 PM
Custom code: How to fail the uninstaller at will?
Hi,
1.How do I trigger the uninstaller to fail any time I want, from custom code?
2.The uninstall seems to always report SUCCESS, despite there is failure in it. How do I control that status?
This is the snippet of my custom action's uninstall()
{
......................................................
FatalInstallException fie = new FatalInstallException( "The Deployment Plan Execution Failed." );
fie.initCause(e);
throw fie;
}
That never does it for us!
Thanks
1.How do I trigger the uninstaller to fail any time I want, from custom code?
2.The uninstall seems to always report SUCCESS, despite there is failure in it. How do I control that status?
This is the snippet of my custom action's uninstall()
{
......................................................
FatalInstallException fie = new FatalInstallException( "The Deployment Plan Execution Failed." );
fie.initCause(e);
throw fie;
}
That never does it for us!
Thanks
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 10, 2008
08:31 AM
Perhaps see if the method
public void abortInstallation(int exitCode)from the InstallerProxy class will handle that?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 10, 2008
09:21 AM
Hi Robert,
Thanks...The last time we try, that API is not working for uninstall. We had to do System.exit()...pretty bad right now 😞
Anything else we can do?
Thanks...The last time we try, that API is not working for uninstall. We had to do System.exit()...pretty bad right now 😞
Anything else we can do?
![](/skins/images/7DF1852B2C95702E61A73F170B191DAC/responsive_peak/images/icon_anonymous_message.png)