PDA

View Full Version : Custom Action condition: not while uninstall



yonitr
12-05-2004, 04:47 AM
Hi,
I want to do something in an custom action only on installation, even if the product is already installed, but not on uninstall.
The condition "Not Installed" does not help because then it doesn't install when the product is installed, like in upgrade and repair.
What condition should I use?

10x

Christopher Painter
12-05-2004, 08:39 AM
Not REMOVE="ALL"

yonitr
12-07-2004, 03:57 AM
Hi,
Is the 'Not REMOVE="ALL"' a condition? Any way, I added it to the custom action conditions and it doesn't do what I needed: the custom action is being called on install, upgrade, repair and on uninstall => always. I need it called only on not uninstall.
Thanks

Stefan Krueger
12-07-2004, 01:14 PM
Not (REMOVE="ALL")
or
REMOVE<>"ALL"
should work.

TsungH
12-07-2004, 02:05 PM
Where did you have your custom action scheduled? REMOVE property may not equal ALL until after the InstallValidate action.