VS2008 Setup Project: Uninstalling the previous MSI

前端 未结 6 1478
野趣味
野趣味 2021-02-05 16:42

I have a VS2008 setup project, which creates a setup.msi which installs a WinForms application (C#).

Every time I update the version number, the users first have to unin

6条回答
  •  误落风尘
    2021-02-05 17:09

    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.

提交回复
热议问题