Sorry it's taken me so long to get back to you. Yes, I've tried a removeOnUninstall attribute. Here's what my current element looks like: <RemoveRegistryKey Root='HKCU' Key='Software\MyApp\MyProduct' Action='removeOnUninstall' />
But after an upgrade my registry settings have been wiped clean. Removing this line removes the problem. I'm using <RemoveExistingProducts> to handle my upgrade, which I suspect is triggering the uninstall: <RemoveExistingProducts Before='InstallInitialize' /> On Wed, Jan 14, 2009 at 5:36 PM, puyo puy <puyo...@yahoo.com> wrote: > Have you try to put removeOnUninstall in Action attribute ? More details > > > > > ________________________________ > From: Colin Bleckner <co...@binarynoise.net> > To: wix-users@lists.sourceforge.net > Sent: Thursday, 15 January, 2009 11:57:51 AM > Subject: [WiX-users] RemoveRegistryKey and uninstall > > I have a RemoveRegistryKey element that I'm using to clean up the registry > on uninstall. However I've noticed that it's also being triggered during > upgrades (when the previous version is uninstalled before the new version > gets installed). I was hoping to attach some sort of condition attribute > to > the RemoveRegistryKey element, but haven't figured out how to do this. Is > it possible? > > Thanks! > Colin > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > Stay connected to the people that matter most with a smarter inbox. > Take a look http://au.docs.yahoo.com/mail/smarterinbox > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users