I am trying to be nice to users upgrading from one version (or rolling back) and use the general method of creating a default value which the user can override in the install, or may override by editing the registry value itself later on (perfectly valid in the context of the applications, things change and we must cope with this).
On installing over an existing install I read all the values from the registry, assign to property, and use this if not changed again in the GUI. This all works fine for REG_SZ but for REG_DWORD the registry search prepending a # converts the DWORD to a REG_SZ and give it a string value of #12345. Below is the code I am generally using to try to achieve this, first install I get a dword, after that it gets converted to REG_SZ. <Include> <Property Id="PORT" Value="12345"> <RegistrySearch Id="idPORT" Key="SOFTWARE\Company\Product" Name="Port" Root="HKLM" Type="raw" /> </Property> <File ..........> <RegistryKey Root="HKLM" Key="SOFTWARE\Company\Product" Action="create"> <RegistryValue Name="Port" Value="#[PORT]" Type="integer" /> </RegistryKey> </File> </Include> What are the issues in getting just the Value from a reg search without the prepended #? Will I have to write a CA just to get rid of this value? Any ideas welcome, thanks Peter ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users