c# – VS2008 Setup Project: Uninstalling the previous MSI (upgrade)

To have it install over the previous version:

  1. Highlight the setup project.
  2. Press the F4 key for properties. (Right Click is a different properties box.)
  3. Change Version. Say yes to the prompt asking to change the product code.

Keep in mind, even if you rebuild the solution it doesn’t rebuild the setup project. You need to rebuild the setup project as a separate step.

Second, you don’t need to Increment AssemblyVersion every time. Set it to something like 2.1.* and it will do it automatically.

引文来源  c# – VS2008 Setup Project: Uninstalling the previous MSI – Stack Overflow