cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMetcoff
Level 2

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.
Labels (1)
0 Kudos
(4) Replies
Jenifer
Flexera Alumni

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

0 Kudos
JMetcoff
Level 2

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
0 Kudos

Hi, Did you ever find a solution to this ? Thanks, Julien
0 Kudos

Hi @JMetcoff 

 

Hope you had tried Uninstallation of component option which was given in 

https://helpnet.flexerasoftware.com/installshield25helplib/helplibrary/IDlgRemoveFileProp_General.htm#ref-dialogboxesa-m_2762307071_1096438

 

Still it isn't working?I had quickly checked it seems to be working.

 

Thanks,

Jenifer

0 Kudos