twindsor
Posts: 2
Joined: Sat Nov 29, 2014 1:38 pm

stop removing registry values

Hi There,

I'm trying to create an update MSI that doesn't modify or remove the registry settings of our installation. We store the database string in a reg value, but it doesn't matter what I do, it always modifies or removes the values.

I have also run a custom script with a vbscript to save and then restore the registry values. In this instance, the script runs but it can't seem to execute at the right level as the script doesn't write the registry values. If I run the script in the an admin command prompt it works fine.

We're really struggling and this is pretty urgent for us as we need to get some updates out the door asap. Any help would be very gratefully received

Thanks!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: stop removing registry values

Hi,

In order to preserve a registry key, you can go in the "Registry" page, right-click and go to "Properties" dialog of that key then select the "Preserve key content" option from the "Operations" tab. If you want it to be preserved only during the upgrade, you can also add the following condition: OLDPRODUCTS

For more details you can take a look on the How do I prevent a file or registry entry from being uninstalled or repaired article.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”