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
‎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
‎Apr 10, 2008
08:31 AM
Perhaps see if the method
public void abortInstallation(int exitCode)from the InstallerProxy class will handle that?