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


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.


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.


* 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 (1)

  1. Keith Douglas says:

    Is there an easy way to find all my component GUIDs and replace them?

Skip to main content