Registry Add/Remove Bug - 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!

ElectronShepherd
Posts: 29
Joined: Thu Jun 30, 2011 11:51 am

Registry Add/Remove Bug

Hi there,

If you configure AI to add a registry key, but do not add any values to the key, the key is added at install time. However, at uninstall, the key is not removed.

It may seem incorrect to add a key and then not add any values, but this is required when registering an MMC snap-in. See http://msdn.microsoft.com/en-us/library/aa815156.aspx and the "Standalone" key.

My workaround is to add a value to the Standalone key, which does not affect the operation of the snapin when it is installed. When a value is present under the Standalone key, uninstall removed the value and key as expected. Without the value, the key is added, but not removed.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Registry Add/Remove Bug

Hi,

For creating and removing and empty key on install and uninstall you need to have the options "Create at install" and "Delete at uninstall" set
in the "Edit Registry Key" dialog.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ElectronShepherd
Posts: 29
Joined: Thu Jun 30, 2011 11:51 am

Re: Registry Add/Remove Bug

I hadn't spotted that option. That's a much better way to do it.

Thank you.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Registry Add/Remove Bug

You're welcome.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”