I have a simple wix application which modifies an existing registry value. During uninstallation the registry should be set to the previous/original value. Therefore i'm storing these existing values into a temporary registry.
I can read these temporary registry value into a property, But how do i set this property to the registry during uninstallation?
This is my Property which will read the original values from the temporary registry:
<Property Id="TEMPVALUE" Secure="yes">
<RegistrySearch Id="FindExistingMySetting"
Root="HKLM"
Key="Software\SampleApp"
Name="TempSampleKey"
Type="raw"/>
</Property>
So how should I use this "TEMPVALUE" property to set the registry during uninstall. I think some kind of custom action might be required. I'm new to this concept, so a sample would be really helpful.