I want to store a textbox value in registry but my situation is little different. I am doing a registry search for a particular key value and populate this value into the textbox and again storing this value to my custom registry key. Everything is working great until now, but I found if I change this value of the textbox at the run time and proceed with the installation, the new value does not get stored in the registry but the registry search value gets stored.
How can I make this work perfectly? Here is my code: <Property Id="INSTALLMACHINE" Secure="yes"/> <Property Id="SDK_MACHINE" Secure="yes"> <RegistrySearch Id="SDK_Machine" Root="HKCU" Key="Software\....\....\...." Name="Machine" Type="raw" /></Property><InstallExecuteSequence> <Custom Action="CA.SetProperty.SDK_MACHINE" After="CostFinalize" /></InstallExecuteSequence> <InstallUISequence> <Custom Action="CA.SetProperty.SDK_MACHINE" After="CostFinalize" /></InstallUISequence> <CustomAction Id="CA.SetProperty.SDK_MACHINE" Property="INSTALLMACHINE" Value="[SDK_MACHINE]" /> <Control Id="MSNameEdit" Type="Edit" X="25" Y="105" Width="220" Height="18" Property="INSTALLMACHINE" /> <Component Id="SDK_Machine_RegistryEntries" Guid="4B134F16-5CB0-4BC5-8D08-EAFB1D4A71F6"> <RegistryKey Root="HKCU" Key="Software\!(loc.CompanyName)\!(loc.ProductName)"> <RegistryValue Type="string" Name="Machine" Value="[INSTALLMACHINE]" KeyPath="yes"/> </RegistryKey></Component> -- Thanks and Regards, Ravi Raj ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users