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?
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.
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.
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.
FOLLOW US
Get the latest news in Application Packaging