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!

Mel
Posts: 53
Joined: Fri Jul 10, 2020 10:59 am

How can i uninstall my application after a error in uninstall with a custom action ?

I have a .exe created by Advanced Installer and all the files and folders are attached to the project. So i would have though they would have been removed on an uninstall , But there was an error saying that my Custom action was not associated with the project.
I created the custom action using Visual Studio created the DLL and attached it under the custom actions menu option.
I had to search my registry and delete entries to just even try to get it to reinstall and not give the error that a "version is already installed".

I have since removed the Custom action , which simply deletes a windows service and now when i try to uninstall , it leaves behind the empty directories
How can i remove the entire install on an uninstall ? And is there a way to remove Registry entries when i uninstall ?


I have enabed verbose logging and get a number of the following:

Disallowing uninstallation of component: {<guid>} since another client exists



Thanks
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: How can i uninstall my application after a error in uninstall with a custom action ?

Hello,

By default, both directories and registry entries created by your setup should be removed upon uninstall.

For more information about this, please have a look over the following thread in which the same problem is discussed:

Uninstall does not remove files , shortcuts etc

This problem can be encountered if you create multiple setups from the same .AIP file by copy-pasting the project, e.g.:

- create an .AIP file

- build it

- copy and paste it in another location

- open it again and do some modifications

- rebuild it

- install both versions

More information about this can be found in our Using the "Save as template" option article.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”