Поделиться через


VS2010 Setup project - Migration from VS2008 does not work with Upgrades

Symptom

Migrated a Setup project from VS2008 to VS2010 and set RemovePreviousVersion=True so as to effect a Major Upgrade. The MajorUpgrade finishes with files being removed from the application folder.

Cause

Component GUID's are changed when setup projects are migrated from VS2008 to VS2010. InstallValidate marks components to be installed locally, RemoveExistingProducts that run at sequence 6550 ends up removing these components.

Resolution

* Manually change the component GUID's to be the same as that of VS2008 (this might not be a feasible solution)

* Resequence RemoveExistingProducts right after InstallInitialize (sequence number 1525). This ensures that older files are removed and reinstalled by the newer version.

Contributor : Ravi Shankar

Comments

  • Anonymous
    September 19, 2011
    The comment has been removed