Create updates of my Setup project…

I make a Setup Project in Visual Studio 2005 for my application. All works well but when I’m going to distribute an update in a new builded version of my application my clients have to first uninstall my application and then reinstall the new one.

I get the following error when I try to install my app again:

Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.

How do I do to make the new release be installed over the old one




Answer this question

Create updates of my Setup project…

  • vesuvius

    Where do I found the "Deployment Project Properties"

    The only property pages i can find is from Project->Properties and I can't find that option there...




  • skinny

    Jemery Jarrell, thanks for the time to take a look for it and post the result!


  • Emac80

    The Setup projects support the RemovePreviousVersions property mechanism as you can see in your Deployment Project Properties. When you want to replace an old version by a new version you have to follow these steps:
    1. Increment the version property, now you will get a message box that prompts you to change the ProductCode and PachageCode. Confirm this with yes.
    2. Set the RemovePreviousVersions property to true.
    Now the previous version of the product will be removed before installing the current version of the setup. Just remember that the ProductVersion property is very importnant here!


  • Chetan Chudasama - MSFT

    Anders Pettersson wrote:
    ...Well what can I say... Ooooopss...

    Really thanks guys!!


    I'm glad you got the solution so soon, before my workday was ended. Please feel free to post if you have any problems with this solution!


  • Juan Carlos Trimino

    Hi Anders

    In VS 2005, select the Deployment project in your Solution Explorer. Then from the main menu choose View->Properties Window (you can also just hit F4 immediately open the Properties pane once you have the Deployment project selected).

    You'll see the Version element near the bottom of the pane and the RemovePreviousVersion element near the middle. Once you change you the Version element you'll be prompted to change the ProductCode as well just as PJ. said (thanks PJ! I didn't know this either).

    Good luck :)

    Jeremy



  • Igor Taranov -- MSFT

    ...Well what can I say... Ooooopss...

    Really thanks guys!!


  • Will Strootman

    I don't have Visual Studio 2005 here now, only 2003. When i'm at home i will take a look and make a screenshot when needed.

    Meybe, before i'm home a other user with Visual Studio 2005 installed can do it so you will have your solution sooner.


  • Create updates of my Setup project…