ainarsh
Posts: 3
Joined: Sun Mar 10, 2019 5:21 pm

Problem with uninstall

Hello,
Advanced intsaller 15.7
on vbox w7 64bit

Created new project using repacker where was used "exe" file after that opened in advanced installer and added extra app shortcut on desktop, uninstall shortcut in appdir and compiled it as MSI.

Install runs just fine, but when uninstall from windows add/remove (control panel), there is no error and only few files are removed (like uninstall shortcut from appdir and some more, but shortcut on desktop and app.exe file still left in directory);

Any clues what could be wrong? Could it be that about some files there is no entry in registry and therefore window not removing it? But still not clear why desktop shortcut was left.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with uninstall

Hello,

I am not so sure why this happens.

To start investigating this behavior could you send us the .AIP (project file) and a verbose log of the uninstall to support at advancedinstaller dot com so we can investigate them?

To generate a log on uninstall process, just open your setup project in Advanced Installer, go to "Install Parameters" page and check the "Enable verbose logging" option. At uninstall time an MSI log filename will be created under the %temp% folder of your user account.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with uninstall

Hello,

Thank you for your sent project files.

After investigating them most likely the related files are not removed on uninstall because your setup project is configured to install a shared reference count for your installation files under the following registry key:

Code: Select all

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\SharedDLLs
After installation, these registry data will wrongly mark your installation files as being shared with other products on current system even they are not shared at all with any other product.

Most likely the registry data of the "SharedDLLs" reg key was captured during the repackaging operation. Can you please go to "Registry" page of your setup project and delete the entire "SharedDLLS" reg key, rebuild the project and test it again?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ainarsh
Posts: 3
Joined: Sun Mar 10, 2019 5:21 pm

Re: Problem with uninstall

Thank You Daniel, you saved my day.

Worked like a charm ;)
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with uninstall

You are always welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Olaf S
Posts: 23
Joined: Wed Oct 16, 2013 7:11 pm

Re: Problem with uninstall

The good thing is: You can checkmark ANY file in the components as "shared DLL Reference Count". Even if not all files are listed within the above mentioned registry key, they will be properly tagged and not uninstalled as long there's an instance installed that is using them.

However, I do NOT know if this comes with some unwanted side effects.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with uninstall

Hi Olaf,

Indeed, as you already saw when the shared DLL Reference Count flag is set the DLL resources installed by the related component will not be uninstalled as long as there are other products referencing those DLLs.

Also, I am not aware of any drawbacks or side effects when using this flag.

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

Return to “Building Installers”