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
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Difficulties with Setup Project

Difficulties with Setup Project

Scheduled Pinned Locked Moved .NET (Core and Framework)
announcementworkspace
3 Posts 3 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.
  • T Offline
    T Offline
    Tristan Rhodes
    wrote on last edited by
    #1

    I'm trying to get my head around the mechanics of Install / Uninstall in the setup project. It seems to me that Installing a new project will uninstall the previous version completely, and install the new version. This is a real pain as i only want to update the application, and would really like to do it without removing all the existing files that are installed, and without prompting the user to choose where to install the application again. I can't figure out a way around this besides using an external install builder, and i'd really like to avoid that if possible.

    ------------------------------- Carrier Bags - 21st Century Tumbleweed.

    J A 2 Replies Last reply
    0
    • T Tristan Rhodes

      I'm trying to get my head around the mechanics of Install / Uninstall in the setup project. It seems to me that Installing a new project will uninstall the previous version completely, and install the new version. This is a real pain as i only want to update the application, and would really like to do it without removing all the existing files that are installed, and without prompting the user to choose where to install the application again. I can't figure out a way around this besides using an external install builder, and i'd really like to avoid that if possible.

      ------------------------------- Carrier Bags - 21st Century Tumbleweed.

      J Offline
      J Offline
      Jack Vanderhorst
      wrote on last edited by
      #2

      On individual files in Setup projects there is a "Permanent" property that specifies whether or not a file is to be removed when an application is uninstalled, not sure if this helps you or not. If you're only looking to update some specific files perhaps you can create another setup project that does only that? To avoid prompting for an installation directory twice, write the path to the registry when the original program is initially installed using a custom installer action. Your update could pick it up from there, and know where to copy the updated files.

      1 Reply Last reply
      0
      • T Tristan Rhodes

        I'm trying to get my head around the mechanics of Install / Uninstall in the setup project. It seems to me that Installing a new project will uninstall the previous version completely, and install the new version. This is a real pain as i only want to update the application, and would really like to do it without removing all the existing files that are installed, and without prompting the user to choose where to install the application again. I can't figure out a way around this besides using an external install builder, and i'd really like to avoid that if possible.

        ------------------------------- Carrier Bags - 21st Century Tumbleweed.

        A Offline
        A Offline
        Adam R Harris
        wrote on last edited by
        #3

        If I'm understanding you right, you are trying to get rid of the dialog that pops up telling the user to uninstall the existing version before installing this version. If thats right, I had a similar problem not to long ago. The solution is simple just increment the version number on your installer and make sure the following properties are set on your Setup project;

        1. DetectNewerInstalledVersion = true
        2. RemovePreviousVersions = true

        As far as the removing files that are in the directory, like Jack suggested, if you are installing the files and you want them to remain, flag them as Permanent. If the files are created from your app, such as backups or error logs, when you uninstall the application it will leave those files there by default.

        If at first you don't succeed ... post it on The Code Project and Pray.

        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