Desktop shortcut File Removal doesn't work - Advanced Installer Community
audiodino
Posts: 3
Joined: Thu Apr 23, 2020 4:22 pm

Desktop shortcut File Removal doesn't work

I have searched about for this but found no answer that I can get to work.

I have a bunch of shortcuts being made by pre-requisite installers that I wish to remove, they exist on the desktop and I believe a user by the name of Collins has also had the same problem.

I have setup File Removal operations from "New File Operation" however this still does not remove the shortcut I have told it to.

Image

I am currently trialing this software and it is probably the one thing holding me back from making the purchase, as I specifically need the function.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Desktop shortcut File Removal doesn't work

Hello and welcome to Advanced Installer forums,

From what I understand, you want to remove the shortcut when your product is uninstalled (please correct me if I'm wrong).

If that is the case, then you should have the "Remove On:" drop-down control set to "Component uninstall". This way, if the component will be marked for uninstall, then the shortcut should be removed.

If this does not help, could you please let me know what is the software that creates the desktop shortcut and for which you need to create such an operation so I can further test this on our end?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
audiodino
Posts: 3
Joined: Thu Apr 23, 2020 4:22 pm

Re: Desktop shortcut File Removal doesn't work

Catalin wrote: ↑Mon Apr 27, 2020 10:45 am Hello and welcome to Advanced Installer forums,

From what I understand, you want to remove the shortcut when your product is uninstalled (please correct me if I'm wrong).

If that is the case, then you should have the "Remove On:" drop-down control set to "Component uninstall". This way, if the component will be marked for uninstall, then the shortcut should be removed.

If this does not help, could you please let me know what is the software that creates the desktop shortcut and for which you need to create such an operation so I can further test this on our end?

Best regards,
Catalin
Hello, not quite.

During my installation I have a prerequisite that installs another application's install - its during this prerequisite install that it creates a desktop shortcut.

I want to be able to clean up those shortcuts before the my install wizard finishes/closes.

The uninstall part I don't have a problem with.

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

Re: Desktop shortcut File Removal doesn't work

Hello,

There are two things I noticed:

1. you are using the following condition:

Code: Select all

REMOVE = "ALL"
Please note that this condition marks an uninstall of your product, which is not the case here, so therefore please remove this condition.

2. Please make sure your both packages (the prerequisite and the main package) have the same installation type.

For instance, if your prerequisite is installed per-user ==> the shortcut will be created in the "C:\Users\<username>\Desktop".

If the file removal is added in the "Desktop" folder ("Files and Folders" page), but your installation is per-machine, then the "Desktop" folder will resolve to "C:\Users\Public\Desktop" folder, where it will not find your file, therefore it will not remove it.

Hope this helps.

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

Return to “Common Problems”