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: Custom actions on uninstall but not upgrade?
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
‎Aug 01, 2018
09:47 AM
Custom actions on uninstall but not upgrade?
Does anyone know how to run a custom action on an uninstall but not on an upgrade? I need to delete data files. It seems like a very basic requirement. I believe it can be done in MSI, but doesn't appear to be in Express.
- Tags:
- uninstall upgrade
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 04, 2018
04:12 AM
JMetcoff wrote:
Does anyone know how to run a custom action on an uninstall but not on an upgrade? I need to delete data files. It seems like a very basic requirement. I believe it can be done in MSI, but doesn't appear to be in Express.
Hi,
If your intention is to delete files,you can achieve it via AddFieRemoval option in Files and Folders view or directly adding file entries to RemoveFile table.While adding files you will can select when to delete files.Options are
1.Installation
2. Uninstallation
3.Both installation & uninstallation.
As per your need,you can opt for installation which includes upgrade.Refer this link for more details:
http://helpnet.installshield.com/installshield24helplib/helplibrary/IDlgRemoveFileProp_General.htm#ref-dialogboxesa-m_1989872897_1096438
Hope this helps,
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 07, 2018
07:49 PM
Hi Jennifer,
Thanks for responding. Unfortunately, the file-remove action is deleting files on an upgrade. I only want to delete files if the user really wants to uninstall the product.
Basically, I think I need to use this MSI condition, but Installshield won't let me enter my own conditions:
REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE
Regards,
Jerry Metcoff
Gypsy BI LLC
Thanks for responding. Unfortunately, the file-remove action is deleting files on an upgrade. I only want to delete files if the user really wants to uninstall the product.
Basically, I think I need to use this MSI condition, but Installshield won't let me enter my own conditions:
REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE
Regards,
Jerry Metcoff
Gypsy BI LLC
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 29, 2019
03:36 AM
Hi, Did you ever find a solution to this ? Thanks, Julien
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 29, 2019
06:09 AM
Hi @JMetcoff
Hope you had tried Uninstallation of component option which was given in
Still it isn't working?I had quickly checked it seems to be working.
Thanks,
Jenifer