Hmmm, seems this did the trick: <RegistryKey ... Action="create">
It actually removed the registry value "InstallPath", which is exactly what I wanted. > From: kristoffer.daniels...@live.se > To: wix-users@lists.sourceforge.net > Date: Sat, 8 May 2010 22:17:07 +0200 > Subject: [WiX-users] Conditional removal of HKCU-key? > > > Using Wix 3.5. I create the following key under HKCU: > > > > <DirectoryRef Id="LocalProgramsFolder"> > <Component Id="LocalProgramsFolderRef" Guid="YOUR_GUID"> > <CreateFolder /> > <RemoveFolder Id="LocalProgramsFolder" On="uninstall" /> > <RegistryKey Root="HKCU" Key="Software\[Manufacturer]\[ProductName]" > Action="createAndRemoveOnUninstall"> > <RegistryValue Name="InstallPath" Value="[INSTALLLOCATION]" Type="string" > KeyPath="yes" /> > </RegistryKey> > </Component> > </DirectoryRef> > > > > Upon uninstallation, I do NOT want to remove the key IF a certain value > exists: > > HKCU\Software\[Manufacturer]\[ProductName]\MyStringValue > > > > How can this be accomplished? > > > > Help is greatly appreciated! Thanks! > > _________________________________________________________________ > Vårfina smileys till Messenger här! > http://springpack.msn.se > ------------------------------------------------------------------------------ > > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users _________________________________________________________________ Vårfina smileys till Messenger här! http://springpack.msn.se ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users