|
From: Colin B. <co...@bi...> - 2009-01-21 01:53:38
|
Yeah I think that's what I'll end up doing. Would it make sense for a future version of WiX to allow the <RemoveRegistryKey> to have a condition inner text like other elements do? On Tue, Jan 20, 2009 at 4:58 PM, Rob Mensching <Rob...@mi...>wrote: > Yeah, that's going to uninstall the previous version before installing the > next version. The settings get deleted on the first uninstall so you are > left with clean settings next. > > IMHO, the best way to address the problem is to not delete user data. > > -----Original Message----- > From: Colin Bleckner [mailto:co...@bi...] > Sent: Tuesday, January 20, 2009 16:03 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] RemoveRegistryKey and uninstall > > 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 <pu...@ya...> wrote: > > > Have you try to put removeOnUninstall in Action attribute ? More details > > > > > > > > > > ________________________________ > > From: Colin Bleckner <co...@bi...> > > To: wix...@li... > > 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...@li... > > 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...@li... > > 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...@li... > 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...@li... > https://lists.sourceforge.net/lists/listinfo/wix-users > |