OK that is the case, but then I need to set a completely bogus keypath and I can't see how I can actually do that.
I tried pointing it to a registry key that is deleted on install but wix fails to compile the msi. > -----Original Message----- > From: Rob Mensching > Sent: 01 December 2008 16:59 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Changing a registry key > > Read about how the KeyPath affects the Component install > state. If you look in a verbose log file, I expect you'll > see your Componentisn't getting installed a second time > because the Component thinks it is already installed. > > -----Original Message----- > From: Nord, James > Sent: Monday, December 01, 2008 02:58 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Changing a registry key > > Hi all, > > as part of my install I have a custom dialog that sets a > value. I need to keep this value after the product is > uninstalled or changed so that subsequent installs can pick > up the previous settings. > > I currently have the following: > <Component Id="InstallRegistry" Guid="xxx" Permanent="yes"> > <RegistryKey Root="HKCU" Key="Software\myco\myprod" > Action="create"> <RegistryValue Type="string" Name="key1" > Value="[PROXY_URL]" > Action="write"/> > <RegistryValue Type="string" Name="key2" Value="[PROXY_URL_CUSTOM]" > Action="write"/> > </RegistryKey> > > inside the install directory section and reference it in the feature. > > This works as on a uninstall the key does not get removed but > subsequent installs or changes to the current install do not > update the registry with the new values from the variables. > > How can I acheive this? > > Regards, > > /James > ------------------------------------------------------------------------------ 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