Using Wix 3.0.2925.0 on Windows 2003.
I have an installation that uses custom actions. Let’s forget what the custom actions do for the purpose of this message. They work fine. Here is the code I am using in my product.wxs file: <Custom Action="Import" After="InstallFinalize"><![CDATA[NOT Installed OR InstallMode = "Repair"]]></Custom> <Custom Action="RemoveImported" After="UnpublishFeatures"><![CDATA[NOT (NOT Installed OR InstallMode = "Repair")]]></Custom> The above works as advertised for installing and uninstalling, but if I click repair, then the RemoveImported part is run as well, which it shouldn't do because of the InstallMode = "Repair" condition. So I played around with it and found that the InstallMode property is never set during the install. It is COMPLETELY useless! No combination of InstallMode = “Repair” or InstallMode = “Remove” works. I looked around trying to find another property that may do the trick. The WixUI_InstallMode looked like it but it also is COMPLETELY useless! I ran the installer with logging on, and can see the WixUI_InstallMode property doesn’t get set during install, it gets set to ‘Repair’ during the repair of the installation, and gets set to ‘Remove’ during uninstallation. What’s up with WIX? I may need ‘Change’ mode as well, but cannot rely on the installer for this Any ideas? -- View this message in context: http://www.nabble.com/InstallMode-Conditions-DON%27T-work%21-tp14487073p14487073.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users