How do I ensure my winform application deployment overwrites old versions

后端 未结 4 847
忘了有多久
忘了有多久 2021-01-02 12:28

I have created a msi install package for my project from the VS2008 deployment project. but I am having problems when it comes to upgrading installs, The previously installe

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-02 13:20

    1. In Visual Studio select your Setup project within the Solution Explorer
    2. Open the Properties Window
      • don't right click and select properties.
      • select View - Properties Window
    3. set RemovePreviousVersions to true
    4. increment the version to a higher number
    5. select yes in the upcoming message box

    If you built and deploy this new setup, a setup with an older version number will be deleted.

    Important: the setup version number is completely independent from your application or assembly version number!

提交回复
热议问题