Registry keys not removed on uninstall - 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!

prolancer
Posts: 17
Joined: Wed Nov 23, 2011 6:16 am

Registry keys not removed on uninstall

Hi,

we have a problem where the registry keys created for an application by AI during install are not removed on uninstall. The scenario is as follows:

1. We have two applications: AppFour and AppFive, which have the same "Company Name" (Manufacturer) value (Webstercare) but different "Product Name" (AppFour and AppFive).
2. Both applications create default AI values + one custom value under HKLM\Software\[Manufacturer]\[ProductName] when we install them. On installation, the registry is:

Code: Select all

HKLM\Software\Webstercare\
                    AppFour\
                         Path
                         UpdateAvailable
                         Version
                     AppFive\...
                         Path
                         UpdateAvailable
                         Version


3. We pick any application, say AppFour, and uninstall it. The HKLM\Software\Webstercare\AppFour tree remains in the registry.
4. Uninstall the other application, say AppFive, and its registry tree is removed.

It does not matter which application we uninstall first, its registry tree remain. The registry tree for the next application that we uninstall is removed.

You can download the example AppFour and AppFive from http://www.prolancer.com.au/download/webstercare/.

The AI projects for the applications are simple. All they do is set the "Company Name" and "Product Name" details and install a dummy file. We have update enabled as well in the project.

We are using AI 8.8.2. Is this a problem with AI, or is there a setting to tell AI to remove all registry keys for the applications?

Thank you
Emil
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Registry keys not removed on uninstall

Hi Emil,

I looked into both packages (four and five) and it seems they have shared components (components with same GUIDs).
Here's the "How can I share a file between multiple packages so when one of the packages is uninstalled the file is not deleted?" FAQ that debates this issue.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”