You're right, the original custom action and condition are run at patch uninstall because the patch package is not applied to the MSI when the patch is being uninstalled. http://msdn.microsoft.com/en-us/library/aa370739%28v=vs.85%29.aspx
If the original MSI has already been released it looks like you might have to make the patch uninstallable or issue a patch that fits earlier into the sequence first. -----Original Message----- From: Kyle Lee [mailto:klee...@gmail.com] Sent: 20 April 2011 12:20 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Custom Action ignored during patch uninstall Hi, I modified the custom actions from the original MSI so that during patch install, those CAs can correct something that I missed in the original MSI. The conditions I modified (I added "AND NOT PATCH AND NOT MSIPATCHREMOVE ") are something like: BEFORE (i.e. in the original MSI): <Custom Action="MyWebCA" Before="InstallFiles" >IIS="IIS 6.0"</Custom> AFTER (i.e. in the newer MSI): <Custom Action="MyWebCA" Before="InstallFiles" >IIS="IIS 6.0" AND NOT PATCH AND NOT MSIPATCHREMOVE</Custom> And in patch WXS, I referred it to: <Fragment> <PatchFamily Id='MyWebPatch1' Version='1.0.0.10' Supersede='yes'> <CustomActionRef Id="MyWebCA" /> ...... I want the same result for both patch-install and patch-uninstall. When I installed this patch and looked at the logfile, I saw the condition of "MyWebCA" was evaluated as FALSE, which is correct. However, when I uninstalled the patch, that condition was evaluated as TRUE. It seems during patch-uninstall, the original CA conditions were performed by REINSTALL mode. Am I right? How can I force both (patch-install and patch-uninstall) to evaluate the newer condition??? FYI, the version of MSI on the machine I am testing is v3. ----------------------------------------------------------------------------- - Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users