Remove external registry keys during installation - Advanced Installer Community

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!

Compiler
Posts: 9
Joined: Mon Jun 08, 2009 9:28 am

Remove external registry keys during installation

Previous installation of my application was not an MSI.

It was creating registry keys that the new version of application (packaged with Advanced Installer) doesn't need anymore.

How can I remove those obsolete registry keys during the installation of the new application ?

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Remove external registry keys during installation

Hi,

Please note that the User Guide contains the Upgrade an older version of the package how-to which may help you.

To remove registry values you can use value removals in the "Registry" page. Also, you can remove registry keys by using the Remove tab of the "Edit Registry Key" dialog (you can show it by using the "Properties" context menu of a registry key).

A removal can be associated with the installation of a component in your package.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Compiler
Posts: 9
Joined: Mon Jun 08, 2009 9:28 am

Re: Remove external registry keys during installation

Thank you,

I've created a New Key in Registry. In Remove tab, I've checked "Remove this key with all its values and subkeys" and chosen a component included in the Main Feature. It appers that I don't have the fields "Remove On" and "Condition". No properties were checked in Registry key tab.

Once the first installation is done, the registry key that I wanted to be removed was still there. I didn't worked.

My licence type is "professional" : does it matter ?
My Advanced Installer version is 6.9.1 : does it matter ?

Thank you for your help
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Remove external registry keys during installation

Hi,

The registry removal features I mentioned were added in the 7.0 version and they can be used in a Professional project. If your maintenance plan doesn't cover this version and you don't want to renew it, you can try using a custom action to remove the registry entries. You can find some sample VBScript code here.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Compiler
Posts: 9
Joined: Mon Jun 08, 2009 9:28 am

Re: Remove external registry keys during installation

Version 7.0.1 installed : it works !

Thank You

Return to “Common Problems”