Visual Studio Installer. Uninstaller shortcut error

776 Views Asked by At

I have made setup project with Visual Studio Installer. Project creates uninstall shortcut into User's programs menu. Setup works fine and uninstall shortcut uninstalls application.

Shortcut points to msiexec.exe with arguments /x [ProductCode].

So everything worked fine until I made application upgrading project. Upgrading project was made by the rules: different productcode, same upgradecode, higher version.

Upgrading application is succesfull. Problem is, that the uninstall shortcut does not work anymore. Clicking shortcut only gives error: "Component not used on this computer"

These reasons are excluded:

  1. New uninstall shorcut is created and old removed during uppgrading setup.
  2. Msiexec is not removed during uppgrading setup
  3. Upgrading project uses different productcode, same upgradecode, higher version.

Any help ?

UPDATE

Started from the beginning and created both projects again from the "clear desk". Problem still exists.

2

There are 2 best solutions below

1
On

This seems to be an error that appears because the system is corrupted, which could when the machine is used intensive for testing/development. Have you tried testing the upgrade on a clean VM?

10
On

Maybe the uninstall shortcut targets the earlier version of the package. Does the ProductCode used in the shortcut maches the ProductCode in the upgrade MSI?