useruser
Posts: 1
Joined: Thu Nov 14, 2024 9:49 am

Remove shortcut on application uninstall

Hi!

I'm using Advanced installer to create my installation package. The install of my application works and it will create shortcut on desktop and pin shortcut in start menu. That how I want it. But when unistall the application shortcut on desktop is left. The shortcut doesn't work because the application is unistalled (expected). I want the shortcut on my desktop to be removed also.

In Advanced Installer, "Files and Folders" > "Desktop" I can see my "File Shortcut". I have added a "New File Operation" > "File Removal" with option "Remove On" set to "Component uninstall".

Tried with add a condition "REMOVE = "ALL". But the shortcut is still on my desktop.
Testing on Windows 11.

Tried to create a install/uninstallation log to get any clues why the shortcut is not removed witn Msiexec.exe but I get error "This installation package could not be opened."
An install with wizard works fine.

Any tips how I can get this shortcut go away on uninstall?

Regards
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Remove shortcut on application uninstall

Hello and welcome to our forums,

That is quite strange.

Are you able to reproduce this behavior on multiple machines? For instance, could you please try testing this on a clean Virtual Machine and let me know how that goes?

Here's another thread discussing the same, perhaps that helps:

File Removal Not Removing Desktop Shortcut

If that does not help, then please forward me the following resources:

- a copy of the AIP file (Advanced Installer project)

- a download link for the setup (the MSI or EXE that you build using the AIP file)

by email at support at advancedinstaller dot com so I can further test and investigate this on my end.

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

Return to “Common Problems”