Removing shortcut 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!

wwong
Posts: 7
Joined: Fri Feb 09, 2007 2:16 am

Removing shortcut on Uninstall

I have created shortcuts to my application in the Programs folder and on the Desktop. When the application is Uninstalled, the shortcuts are not removed. I would expect the shortcuts to get removed on the uninstall.

Is there any standard setup required to get this to work?

Thanks,
Wesley
wwong
Posts: 7
Joined: Fri Feb 09, 2007 2:16 am

On further investigation, it seems that this problem occurs only if there are multiple versions of the same product installed. If there is only 1 version of the product installed, the shortcut gets deleted no problem. Here is the scenario:
1) I install MyProduct v15, with shortcut labeled: "MyProduct v15", pointing to the target: C:\MyProduct\v15\Myapp.exe
2) Then I install MyProduct v16, with shortcut labeled: "MyProduct v16", pointing to the target: C:\MyProduct\v16\Myapp.exe

There are now 2 shortcuts on the Desktop. Both versions work fine, and shortcuts point to right location.

When I try to Uninstall, I notice the following:
1) When I uninstall MyProduct v16, the product gets deleted OK from disk, but the shortcut remains.
2) Then I uninstall MyProduct v15, and the product and the MyProduct v15 shortcut are deleted.
3) This leaves me with the MyProduct v16 shortcut pointing to nothing, and must be deleted manually.
4) If I try uninstalling MyProduct v15 before uninstalling MyProduct v16, I am still left with an orphan shortcut (MyProduct v15).

Is this a bug, or is there a solution to this? I would like to have a clean uninstall, when uninstalling multiple versions of my product.

Thanks,
Wesley
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Wesley,

I cannot reproduce this problem on my test computer. In order to determine the problem please set a small test project (V15 and V16) that reproduce this problem to support at advancedinstaller dot com.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
tipg
Posts: 3
Joined: Tue Jan 19, 2010 11:58 pm

Re: Removing shortcut on Uninstall

Running into the same problem.

It seems like the conversation was taken offline. Was there any resolution to this issue?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Removing shortcut on Uninstall

Hello,

Please send a sample that accurately reproduces this behavior to support at advancedinstaller dot com so we can investigate the issue.
The sample should contain the two .aip project files from both versions.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”