Search code examples
visual-studio-2010windows-7setup-deployment

VisualStudio 2010 Installer | RemovePreviousVersion behavior in Windows 7


Installer Version 1.0.7

  • UpgradeCode = GuidXYZ
  • ProductCode = GuidABC
  • RemovePreviousVersions = true
  • DetectNewerInstallations = false

Installer Version 1.0.8

  • UpgradeCode = GuidXYZ
  • ProductCode = GuidDEF
  • RemovePreviousVersions = true
  • DetectNewerInstallations = false

In Windows XP installing 1.0.8 removes 1.0.7 successfully.

In Windows 7 64 bit Professional installing 1.0.8 does not remove 1.0.7. I still see the entry in the installed Programs.

What am I missing here?

Environment:

  • Visual Studio 2010 Professional SP1
  • .NET 4.0

Solution

  • Do both versions use the same installation type (per-user or per-machine)? This is handled through the ALLUSERS property. If the installation type is not the same, the upgrade is not performed.

    You can also try creating a log and see what happens during FindRelatedProducts action.