m4a.c4
Posts: 23
Joined: Mon Mar 30, 2020 9:25 pm

Registry Value not getting removed when uninstalling

Hi there,

We are using Advanced Installer to install an Excel Add-in. As part of this, we write values to the registry.

We use a generic AIP file and configure this within our Devops Pipeline for each product.

Behavior experienced is as follows:
- If we have one product installed, when we uninstall this the registry values get removed as expected.
- If we have multiple products installed, when we uninstall one of these, the registry value is left behind.

The registry structure is as follows:
- Software
----- [Manufacturer]
---------- [ProductName]

I have sent my AIP file through to support at advanced installer dot com.

Any help would be greatly appreciated!
Thanks,
Connor
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Registry Value not getting removed when uninstalling

Hi Connor,

This may happen if the component of the related registry value (just right click on registry value and use the "Go To Component" context menu option) has the same GUID as another component from other setup packages of the other (multiple) products you have installed. This way the component becomes a shared component and its resources (i.e. registry value) will be uninstalled only when all the products sharing this component are uninstalled from current machine.

To avoid this issue you should try to change the GUID of this registry value component and see how this works for you.

Also, as a best practice, please note that if you want to create the setup project for a new product starting using as a base project the setup project of an existing product, then you should not manually copy and paste the .AIP (setup project) file. Instead you should use the "File -> Save -> Save as template" option and use the saved template to create a new setup project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
m4a.c4
Posts: 23
Joined: Mon Mar 30, 2020 9:25 pm

Re: Registry Value not getting removed when uninstalling

Hi Daniel,

Thanks for your quick response and the above recommendation!

We have managed to get this working, and now the registry values are being removed as expected.

Thanks!
Connor
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Registry Value not getting removed when uninstalling

You are always welcome Connor.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”