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. Deployment of already installed Appllication in .NET.

Deployment of already installed Appllication in .NET.

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpsysadminannouncement
4 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.
  • M Offline
    M Offline
    Mahesh Dara
    wrote on last edited by
    #1

    I have installed my application which is built in C#.NET in the client machine. I have used Set-Up Project for this. After then i have done slight modifications to my application and again i tried to reinstall the application. But it is giving the message like 'Another version of this project 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'. Is there any way other than uninstalling and again installing the application. Mahesh Dara.

    J J 2 Replies Last reply
    0
    • M Mahesh Dara

      I have installed my application which is built in C#.NET in the client machine. I have used Set-Up Project for this. After then i have done slight modifications to my application and again i tried to reinstall the application. But it is giving the message like 'Another version of this project 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'. Is there any way other than uninstalling and again installing the application. Mahesh Dara.

      J Offline
      J Offline
      John Kuhn
      wrote on last edited by
      #2

      Assuming that you didn't break any existing components and you didn't introduce any new components that aren't compiled into the assembly, you don't need to reinstall the application, just copy the new files over the old ones. If you have to use a setup project for some reason, you need to build the original setup project in a way that identifies that it can be updated and then create the subsequent releases as update packages. I know this is possible with installshield... I'm betting it works when you create setup projects as well. Otherwise, yes, you have to uninstall it and re-install it. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

      1 Reply Last reply
      0
      • M Mahesh Dara

        I have installed my application which is built in C#.NET in the client machine. I have used Set-Up Project for this. After then i have done slight modifications to my application and again i tried to reinstall the application. But it is giving the message like 'Another version of this project 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'. Is there any way other than uninstalling and again installing the application. Mahesh Dara.

        J Offline
        J Offline
        je_gonzalez
        wrote on last edited by
        #3

        I had this problem when I was using wildcards in the AssemblyVersion. The way I solved it was as follows: 1. Created a class where the system constants are kept.. namespace myCo.Constants { public class SystemConstants { ... public const string SystemVersion = "2004.03.27.02"; ... } } 2. Included the class in every AssemblyInfo file in the solution, and used the constant in the AssemblyVersion... ... using myCo.Constants; ... ... ... [assembly: AssemblyVersion(myCo.Constants.SystemConstants.SystemVersion)] ... ... 3. In the setup project for the app, I use the version number, converted as follows: SystemVersion in Code Version In Setup 2004.03.27.02 04.03.2702 When the version is changed in the setup project, the system will give you a warning that the ProductCode and PackageCode should also be changed, and if you answer "Yes", the system will update them for you. Also I have the "DetectNewerInstalledVersion" and "RemovePreviousVersions" set to true, that way the new version deletes any previous versions, but does not allow an older version to be installed. Once we went to this procedure, I have never had a single problem with installs. In my app, every time a version is released, a permanent copy of all the source is then archived, and the SystemVersion constant is updated accordingly, so is the setup project Version. Since the SystemVersion is in one place, it is easy to modify all of the assemblies, we have multiple setup projects, which are a bit of a pain, since I do them manually, but I do remember seeing an article here in CP that does the setup projects. Hope this helps...

        M 1 Reply Last reply
        0
        • J je_gonzalez

          I had this problem when I was using wildcards in the AssemblyVersion. The way I solved it was as follows: 1. Created a class where the system constants are kept.. namespace myCo.Constants { public class SystemConstants { ... public const string SystemVersion = "2004.03.27.02"; ... } } 2. Included the class in every AssemblyInfo file in the solution, and used the constant in the AssemblyVersion... ... using myCo.Constants; ... ... ... [assembly: AssemblyVersion(myCo.Constants.SystemConstants.SystemVersion)] ... ... 3. In the setup project for the app, I use the version number, converted as follows: SystemVersion in Code Version In Setup 2004.03.27.02 04.03.2702 When the version is changed in the setup project, the system will give you a warning that the ProductCode and PackageCode should also be changed, and if you answer "Yes", the system will update them for you. Also I have the "DetectNewerInstalledVersion" and "RemovePreviousVersions" set to true, that way the new version deletes any previous versions, but does not allow an older version to be installed. Once we went to this procedure, I have never had a single problem with installs. In my app, every time a version is released, a permanent copy of all the source is then archived, and the SystemVersion constant is updated accordingly, so is the setup project Version. Since the SystemVersion is in one place, it is easy to modify all of the assemblies, we have multiple setup projects, which are a bit of a pain, since I do them manually, but I do remember seeing an article here in CP that does the setup projects. Hope this helps...

          M Offline
          M Offline
          Mahesh Dara
          wrote on last edited by
          #4

          Thanks for your suggestion. If i change the version no. of the setup project everytime when i rebuild then it's working fine i.e.,it is not giving any msg and it's reinstalling the whole application. Upto here fine.but is there anyway to automate the process of changing the version number of setup project everytime when i rebuild.

          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