Windows installer can't update the previous version of my ASP.NET Application RRS feed

  • Question

  • User-668859169 posted


    I'm deploying a web application (ASP.NET MVC, C#).  And I created a setup for that application.

    When the application is already installed on a computer, it can't be updated by the new version.

    I've got the message that's an other version of this product is already installed... and in my setup project, I set RemovePreviousVersion and DetectNewerInstalledVersion properties to "True".  what's the problem. And what can I do to solve it? . Best regards

    Friday, January 15, 2016 6:09 PM


  • User-166373564 posted


    Visual Studio supports the RemovePreviousVersions project property mechanism in its IDE.

    When you’re ready to build a new version of your product to replace an older one, follow these steps:

    • Increment the version property. Visual Studio displays a message box that prompts you to change the ProductCode and PackageCode. Select yes.
    • Set the RemovePreviousVersions property to true.

    There is more information about updates to setup projects here.

    Note: the hyperlink is third party, it's just a reference for you.



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 19, 2016 5:45 AM