windows-installershortcutmspmsi-patch

Multiple shortcuts while using MSI/MSP in admin install


I am having a strange issue while trying to use MSI/MSP for installing and patching our product.

Its a 2 step Process:

  1. We are trying to work on the installation process of our product using MSI/MSP. In this a user asks a system admin to install product MSI using GPO over the network.

    Results: the Product installs successfully on user machine reboot.

  2. users request system admin to upgrade the product and the system admin uses MSP to patch the network installation using GPO over the network.

    Results: on user machine reboot the product is successfully patched with one issue.

ISSUE: Multiple shortcuts are created for the product. Our product has version number along with product name (abc 1.0, abc 2.0). so everytime MSP is applied it creates new shortcut on desktop and start menu.

Can someone please help me with how to remove the existing shortcut and have the new shortcut on users desktop and start menu?


Solution

  • Your patch installation process, and correspondingly the installer for the new version, should remove the old shortcuts. Add entries into RemoveFile table to remove abc 1.0 from desktop and Start menu; version 3.0 should remove both 1.0 and 2.0 shortcuts.

    The patch does not remove those shortcuts automatically because the old version of the product is not uninstalled. Then your patch creates new shortcut versions.


    Or just drop the version from the product version from the shortcut name. If you allow only version of the product to be installed, then the version number is irrelevant, see Microsoft Guidelines on Start menu for more information.