If your feature won't be affected at all by the transaction (such as when removing a different feature) &MyAppFeature may very well be -1, which would make your condition be true.
-----Original Message----- From: Ivo Beltchev [mailto:i...@roadrunner.com] Sent: Saturday, June 26, 2010 8:11 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Problem with "Close App" condition Hi I have a custom action that closes my app when its feature is being uninstalled. Here's my code: <Custom Action="CloseMyApp" Before="InstallValidate"><![CDATA[(!MyAppFeature=3) AND (&MyAppFeature<>3)]]></Custom> For some reason the action gets triggered during "Repair" and also when ANOTHER feature is being uninstalled. Why is this happening? Doesn't my condition mean "if MyAppFeature is installed, and about to be uninstalled"? Thanks Ivo ---------------------------------------------------------------------------- -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users