Just tried with WIX 3.6.1314. Same behavior. -----Original Message----- From: David Rickard (USA) [mailto:davri...@microsoft.com] Sent: Monday, January 17, 2011 11:35 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] XmlConfig action not running on patch rollback?
I've got the following component: <Component Id="machine.config.Update" Guid="573DF5B0-438D-498d-8919-C4B96835C1EF"> <RegistryKey Root="HKLM" Key="[REGISTRYKEY]\Settings\[TITLE]" Action="createAndRemoveOnUninstall"> <RegistryValue Action="write" Type="integer" Name="MACHINEMEMORYLIMIT" Value="1" KeyPath="yes"/> </RegistryKey> <util:XmlConfig Id="CacheNode.memoryLimit.add" File="[WindowsFolder]\Microsoft.NET\[FRAMEWORKDIR]\v2.0.50727\CONFIG\machine.Config" Action="create" ElementPath="/configuration/system.web/processModel" Name="memoryLimit" Node="value" On="install" Value="90" /> <util:XmlConfig Id="CacheNode.memoryLimit.remove" File="[WindowsFolder]\Microsoft.NET\[FRAMEWORKDIR]\v2.0.50727\CONFIG\machine.Config" Action="delete" ElementPath="/configuration/system.web/processModel" VerifyPath="/configuration/system.web/processModel" Name="memoryLimit" Node="value" On="uninstall" /> </Component> I want to add an attribute on install of the component and remove it on uninstall. Now this works just fine when the component is part of a full install and uninstall, but does not work as part of a patch. When I apply the patch, the component will install, the config edit will occur and the registry key will be added. When I roll back the patch, the registry key is removed, but the attribute is not removed. I checked the logs and the action isn't even attempted. To make sure the action actually works I manually edited the config file and ran it on install. And it does work then. Also FRAMEWORKDIR is getting set properly on both the install and rollback steps. Is there a bug in the WIX utilities? Or is there something I'm doing wrong? ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users