Thanks for the extra information. And you're right, this isn't worth the extra headache. :)
On Tue, Jan 20, 2009 at 10:03 PM, Rob Mensching <rob.mensch...@microsoft.com > wrote: > No, Windows Installer controls that. Remember Component states control the > install and uninstall of resources. Conditions on individual resources > isn't the way the Windows Installer works. Note, you could control the > Component state via its own Condition but (as noted before), IMHO, you're > just pushing rope. > > -----Original Message----- > From: Colin Bleckner [mailto:co...@binarynoise.net] > Sent: Tuesday, January 20, 2009 17:41 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] RemoveRegistryKey and uninstall > > 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.mensch...@microsoft.com>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...@binarynoise.net] > > 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 <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 > > > > > > > > > ------------------------------------------------------------------------------ > > 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 > > > > ------------------------------------------------------------------------------ > 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