We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rtasker
Posts: 2
Joined: Sat Feb 02, 2008 3:42 pm

Preventing registry overwrites on upgrade

I have some registry values I don't want modified on upgrade (automatic uninstall and then install of new version), but I do want removed on a full uninstall. Is there a way to do this?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This can be done by using a custom action which backs-up the registry entry before the old version is uninstalled. After the new version is installed you can restore the registry entry to the original value (by using another custom action).

There is a similar discussion on the forum, please take a look:
http://www.advancedinstaller.com/forums ... e+registry

Another approach is to set the "Permanent" and "Never Overwrite" attributes for the registry entry. In order to remove it during a complete uninstall you can use a custom action with the REMOVE="ALL" condition.

You can read more about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”