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. application to update itself...

application to update itself...

Scheduled Pinned Locked Moved C#
announcementcsharpcomquestion
5 Posts 5 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.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Hi, I want to know what's the best way to let the c# application update itself so when user starts the application it will notify and update without having to re-install the application?

    Technology News @ www.JassimRahma.com

    S D H 3 Replies Last reply
    0
    • J Jassim Rahma

      Hi, I want to know what's the best way to let the c# application update itself so when user starts the application it will notify and update without having to re-install the application?

      Technology News @ www.JassimRahma.com

      S Offline
      S Offline
      Simon_Whale
      wrote on last edited by
      #2

      have a google for click once

      Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

      1 Reply Last reply
      0
      • J Jassim Rahma

        Hi, I want to know what's the best way to let the c# application update itself so when user starts the application it will notify and update without having to re-install the application?

        Technology News @ www.JassimRahma.com

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        You can use ClickOnce for this. If you install your application under the Program Files folder, the users will NOT be able to update their applications. The Program Files folder is readonly for normal users on Windows Vista and above. So, this means you'll have to install your application somewhere where users have permissions to write to the folder. Frankly, in corporate environments, a self-updating application is generally forwned upon because the new version of the application cannot be tested before going to production.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak

        E 1 Reply Last reply
        0
        • D Dave Kreskowiak

          You can use ClickOnce for this. If you install your application under the Program Files folder, the users will NOT be able to update their applications. The Program Files folder is readonly for normal users on Windows Vista and above. So, this means you'll have to install your application somewhere where users have permissions to write to the folder. Frankly, in corporate environments, a self-updating application is generally forwned upon because the new version of the application cannot be tested before going to production.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          E Offline
          E Offline
          Ennis Ray Lynch Jr
          wrote on last edited by
          #4

          Hah, testing before production? The primary reason so many apps are going to the web is so they can be updated faster, bypassing IM testing : )

          Dave Kreskowiak wrote:

          Frankly, in corporate environments, a self-updating application is generally forwned upon because the new version of the application cannot be tested before going to production.

          Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost "All users always want Excel" --Ennis Lynch

          1 Reply Last reply
          0
          • J Jassim Rahma

            Hi, I want to know what's the best way to let the c# application update itself so when user starts the application it will notify and update without having to re-install the application?

            Technology News @ www.JassimRahma.com

            H Offline
            H Offline
            harsimranb
            wrote on last edited by
            #5

            The application needs the DLLs refreshed and therefore, it needs to restarted. However, you can try ClickOnce. You can also have a separate application that gets run before your app, checks for updates, installs them, and then runs the main application. I haven't done Win App development for over 3 years, so my knowledge isn't up-to-date. Still, these are two ways you can do it. Google Chrome, I believe, uses ClickOnce.

            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