Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Create updates of my Setup project…

Create updates of my Setup project…

Scheduled Pinned Locked Moved C#
announcementquestioncsharpvisual-studiohelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anderslundsgard
    wrote on last edited by
    #1

    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? _____________________________ ...and justice for all APe

    A 1 Reply Last reply
    0
    • A anderslundsgard

      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? _____________________________ ...and justice for all APe

      A Offline
      A Offline
      Aaron Dilliard
      wrote on last edited by
      #2

      There are 2 possible answers here.... 1. You didnt set the new uninstaller to uninstall the previous version before the new install. 2. You made a completely different installer that has a new product code, which can not uninstall the other version (directly). Installers (even for the same program) with a different product code can not uninstall another version with a different product code. Solutions: 1. Set UninstallPreviousVersion to true, redistribute. 2. You will have to create a custom action script to find and uninstall the older version with a different product code. You can find it in the registry (Hikey/Local Machine/Microsoft/Windows/CurrentVersion/Uninstall) by the old product code. You will need to run the uninstall string as a process. A note with this is that you cant have 2 instances of windows installer running at once, so you will need to create a custom action script to run on install that will fire the uninstaller program. The uninstaller should wait for the installer to exit before attempting to windows installer will not run to uninstall the program. HTH. Aaron

      A 1 Reply Last reply
      0
      • A Aaron Dilliard

        There are 2 possible answers here.... 1. You didnt set the new uninstaller to uninstall the previous version before the new install. 2. You made a completely different installer that has a new product code, which can not uninstall the other version (directly). Installers (even for the same program) with a different product code can not uninstall another version with a different product code. Solutions: 1. Set UninstallPreviousVersion to true, redistribute. 2. You will have to create a custom action script to find and uninstall the older version with a different product code. You can find it in the registry (Hikey/Local Machine/Microsoft/Windows/CurrentVersion/Uninstall) by the old product code. You will need to run the uninstall string as a process. A note with this is that you cant have 2 instances of windows installer running at once, so you will need to create a custom action script to run on install that will fire the uninstaller program. The uninstaller should wait for the installer to exit before attempting to windows installer will not run to uninstall the program. HTH. Aaron

        A Offline
        A Offline
        anderslundsgard
        wrote on last edited by
        #3

        Aaron Dilliard wrote:

        Set UninstallPreviousVersion to true, redistribute.

        Just perfect!! Thanks!! _____________________________ ...and justice for all APe

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups