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

How to execute Custom Action only during uninstall?

Hi,

I wonder how can I execute a Custom Action only during uninstall

I used the condition "Installed" so that it does not execute during installation but then it executes also when I do a repair or modify...

Is there a specific property that is only set during uninstall?
(2) Replies
CChong
By Level 11 Flexeran
Level 11 Flexeran
Hi,

You can use REMOVE="ALL" for the custom actions to be executed during uninstallation. You will need to sequence that action after InstallValidate action in the InstallExecuteSequence table.

Jigar Desai
CChong
By Level 11 Flexeran
Level 11 Flexeran
Try using a condition "Not Installed"

Works for me.