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: Uninstaller action
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
‎Jan 26, 2008
12:28 PM
Uninstaller action
I need to execute shell script and do custom actions during uninstallation (not before and not after uninstallation). It is critical to do much the same operations during uninstallation like during installation. Is it possible to do in IA 8 or IA 2008?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 26, 2008
07:14 PM
What is the problem of doing them after the last panel of Pre-Uninstall or before the first panel of Post-Uninstall?
Best Regards,
Yves
Best Regards,
Yves
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2008
11:37 AM
Well, it seems strange that there are install, pre-install and post-install steps, but it is lack of uninstall step. One would expect if there is install, there would be uninstall step too.
Let's suppose you are right, that I could implement my uninstallation in pre-uninstall or post-uninstall. I've got another question: why shall we use install step instead of pre-install or post-install steps? This means that we don't need install step at all...
I think it is inconsistent to support two different ways if one need to implement installer and uninstaller. It would be nice to have more control of what happens during uninstallation.
Let's suppose you are right, that I could implement my uninstallation in pre-uninstall or post-uninstall. I've got another question: why shall we use install step instead of pre-install or post-install steps? This means that we don't need install step at all...
I think it is inconsistent to support two different ways if one need to implement installer and uninstaller. It would be nice to have more control of what happens during uninstallation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2008
12:00 PM
Oh, I finally see your problem. Please bear in mind that all install steps (including custom code) are reversed during uninstall!
So you can pass a variable to your shell script and deceide if it should execute its install or uninstall part. Custom code has the separation of the 2 by default.
Best Regards,
Yves
So you can pass a variable to your shell script and deceide if it should execute its install or uninstall part. Custom code has the separation of the 2 by default.
Best Regards,
Yves
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 28, 2008
03:01 AM
Your are speaking about custom code now. I do understand that those custom code actions that were registered during installation will be triggered during uninstallation. That's clear.
But I have a problem of another sort. In my case the very installation is implemented with the help of Ant. InstallAnywhere just collects user information and calls Ant build file. This way InstallAnywhere can't track what folders were added, what has been changed, etc. During uninstallation I need to remove directories correspondent to the products to be uninstalled. I have to do it manually, but unfortunately I'm not able to add custom actions (e.g. Delete folder) like in install step. Did you have similar use cases? What can you suggest?
But I have a problem of another sort. In my case the very installation is implemented with the help of Ant. InstallAnywhere just collects user information and calls Ant build file. This way InstallAnywhere can't track what folders were added, what has been changed, etc. During uninstallation I need to remove directories correspondent to the products to be uninstalled. I have to do it manually, but unfortunately I'm not able to add custom actions (e.g. Delete folder) like in install step. Did you have similar use cases? What can you suggest?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 28, 2008
06:33 AM
By the way, one of the things that confused me for almost two weeks not mentioned in Q000085. I had a very similar problem described in this ticket.
The problem is that when you have several features and you write install steps, choosing on what feature this or that install step must be performed. When you start checking check boxes, new components are created behind the scene. Some of them can be temporary, unwanted and unnecessary (like in my case) what causes some problems during uninstallation (I guess it is because of dependency detection). I believe I am not the first who was confused by this...
Kind regards,
Vitaliy Kovalenko
The problem is that when you have several features and you write install steps, choosing on what feature this or that install step must be performed. When you start checking check boxes, new components are created behind the scene. Some of them can be temporary, unwanted and unnecessary (like in my case) what causes some problems during uninstallation (I guess it is because of dependency detection). I believe I am not the first who was confused by this...
Kind regards,
Vitaliy Kovalenko
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)