*Background:* I have been tasked with creating a Windows Installer using WiX that can either install only a single version of the product or multiple copies of a product. This is determined by a property that can be set either on the command line or using a radio switch in the UI. This changes the Upgrade code and find previous version behavior for the installer. This all works as desired with the exception of uninstall clean up.
*Issue:* When I install only one version of product in ether single installation mode or multiple installation mode and then uninstall the product, I get desired registry clean up behavior. But when I install multiple versions of the product and uninstall the product I leave behind a version unique registry key (all values but the default are removed) and a version unique environment variable. The environment variable is written using the WiX environment tag and I am writing the registry key and its default variable as a stand alone component and that value is the key to the component, with the component GUID being auto generated by WIX. I have tried RemoveRegistryKey in an attempt to force the removal value it is still not removing it. I will be the first to admit that I may be working in an area of undefined behavior with MSI and WiX. *Code:* <Component Id="MultiRegA" Guid="*"> <Condition></Condition> <RegistryValue Root="HKLM" Key="Software\<company>\<systemsuite>\Packages\$(var.ProductName)\$(var.ProductVersion)" Type="string" Value="MULTI" KeyPath="yes" /> <RemoveRegistryKey Id="rmvvarcomp" Action="removeOnUninstall" Root="HKLM" Key="Software\<company>\<systemsuite>\Packages\$(var.ProductName)\$(var.ProductVersion)"/> </Component> My Question: Is there any way to do clean up with out writing a binary custom action? -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Allowing-multiple-versions-of-a-product-and-the-proper-clean-up-of-the-registry-tp6844173p6844173.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users