Deployment Help

I'm using a setup project to deploy my windows app. It works fine to install, but each time I make a change to the application, I have to uninstall the app, then reinstall. I would like for the install to check, and upgrade what is already on the PC rather than having to uninstall it and reinstall everytime.
Thanks in advance


Answer this question

Deployment Help

  • Capitán Cavernícola

    Hello,

    Is there any way to make the ProductCode and/or the version number change programatically with every time that I build the application

    Thanks,

    Marcelo

  • Michael Wolff

    Thanks a lot Matt! That did it.

  • owl666

    Hi, bairdm,

    Yup, there is a way. Go to the solution explorer, select the project, and then look at its properties in the property grid. Scroll down until you find the RemovePreviousVersions property, and set it to "True." When you install the new version of your app, it will call the uninstall method on the previous app. Note that the UpgradeCode in the grid *must* be the same for both versions of the app (that's how we can tell that they're the same app), but the version number must be greater in the new app (so we can tell that there's an update) and the ProductCode must be different (essentially so we can tell that the difference in version is important enough to require an replace & upgrade, although that's not the whole story).

    Hope this helps!

    --Matt--*



  • Deployment Help