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. C#
  4. Patch Deployment - Newbie Question

Patch Deployment - Newbie Question

Scheduled Pinned Locked Moved C#
questioncsharpsysadminhelpannouncement
6 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.
  • K Offline
    K Offline
    kruegersck
    wrote on last edited by
    #1

    I created a C# Windows Application. I used a Setup Project to Deploy the intial software to my users. I now have patchs and minor enhancements that I want to Deploy. What is the easiest way to do this? I have updated the Assembly info for my project and my setup project. I modified the setup project to not uninstall previous version. This appears to work just fine, but when I view my Add/Remove programs window I show multiple installs of the software. Any help would be greatly appreciated! Scott K

    M 1 Reply Last reply
    0
    • K kruegersck

      I created a C# Windows Application. I used a Setup Project to Deploy the intial software to my users. I now have patchs and minor enhancements that I want to Deploy. What is the easiest way to do this? I have updated the Assembly info for my project and my setup project. I modified the setup project to not uninstall previous version. This appears to work just fine, but when I view my Add/Remove programs window I show multiple installs of the software. Any help would be greatly appreciated! Scott K

      M Offline
      M Offline
      Muhammad Shahid Farooq
      wrote on last edited by
      #2

      Go to the properties of Setup Project and the set value true of "RemovePreviousVersion". And also change the version property. After setting these properties build the project and then install on your client machine. You have only on instance in Add/Remove programs.

      K 1 Reply Last reply
      0
      • M Muhammad Shahid Farooq

        Go to the properties of Setup Project and the set value true of "RemovePreviousVersion". And also change the version property. After setting these properties build the project and then install on your client machine. You have only on instance in Add/Remove programs.

        K Offline
        K Offline
        kruegersck
        wrote on last edited by
        #3

        Yes, I understand that by setting this property to true it will remove the version I just installed. Here is the issue: When I set this property to true it uninstalls my DB and replaces it with an empty one. My users loose their data. Is there a way for me to exclude this file?

        M 1 Reply Last reply
        0
        • K kruegersck

          Yes, I understand that by setting this property to true it will remove the version I just installed. Here is the issue: When I set this property to true it uninstalls my DB and replaces it with an empty one. My users loose their data. Is there a way for me to exclude this file?

          M Offline
          M Offline
          Muhammad Shahid Farooq
          wrote on last edited by
          #4

          Use the simple way but this is not technical ;) Remove the database from setup project. Database place on other location. Make new connection string for that, then bulid and deploy.

          K 1 Reply Last reply
          0
          • M Muhammad Shahid Farooq

            Use the simple way but this is not technical ;) Remove the database from setup project. Database place on other location. Make new connection string for that, then bulid and deploy.

            K Offline
            K Offline
            kruegersck
            wrote on last edited by
            #5

            What is my alternative than doing that? I have a lot of installs of the software out there? sk

            M 1 Reply Last reply
            0
            • K kruegersck

              What is my alternative than doing that? I have a lot of installs of the software out there? sk

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #6

              There is no alternative - do as MSF suggested, remove the DB from your update distribution. This is a common newbie error, you need to think through your deployment method better. You should ALWAYS have at least 2 deployments, install and update.

              Never underestimate the power of human stupidity RAH

              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