stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Remove registry key custom action

I think it would be useful to have a custom action for removing registry entries that were not added by the installer.

For example, my app registers certain licensing, password, and other information that I want to remove when the app is uninstalled.

I currently do this using a .vbs custom action, but it would be nice for it to be built in with a simple interface via the Action Data field as in other actions.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Remove registry key custom action

Hi,

You can try using registry value removals and registry key removals in the "Registry" page. Simply recreate the registry structure you want and set the removals on it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Re: Remove registry key custom action

This relates to the thread in http://www.advancedinstaller.com/forums ... f=2&t=8703.

Is there a way to apply execution conditions to registry value removals? Specifically, I need to remove only when (REMOVE="ALL" AND (NOT UPGRADINGPRODUCTCODE))
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Remove registry key custom action

Hi,
Is there a way to apply execution conditions to registry value removals?
Yes, you can use the "Condition" field in the Edit Value Removal dialog. The removal action runs after InstallValidate, so you should be able to use any condition you need.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Re: Remove registry key custom action

Ah, I guess "Condition" was added after 6.9.1. Thanks.

Return to “Feature Requests”