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 / C++ / MFC
  4. Program self upgrade

Program self upgrade

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialannouncement
5 Posts 4 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.
  • L Offline
    L Offline
    lisoft
    wrote on last edited by
    #1

    Hi all, I'm looking for ways to make my program can do self-upgrade. I just have no idea how to override the main program with the new version if it is still running.:confused:

    Lisoft

    M M L 3 Replies Last reply
    0
    • L lisoft

      Hi all, I'm looking for ways to make my program can do self-upgrade. I just have no idea how to override the main program with the new version if it is still running.:confused:

      Lisoft

      M Offline
      M Offline
      Mr Brainley
      wrote on last edited by
      #2

      If you want to upgrade it while it is running i think the only way is to put all code that might need updates inta a dynamic library. Your programm then simply needs to reload the library and you're done. But this will still require some kind of interruption in the regular flow. This is just a general idea, i hope it applies to your problem. (can i say that - "it applies to your problem" ? or is it bad english ?)

      1 Reply Last reply
      0
      • L lisoft

        Hi all, I'm looking for ways to make my program can do self-upgrade. I just have no idea how to override the main program with the new version if it is still running.:confused:

        Lisoft

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        Updating an EXE while it's running won't work so here's how I do it basically (just one possible way)... 1) During initialization check if upgrade available 2) If upgrade available start upgrader application and exit. 3) Upgrader app copies/overwrites new files 4) Upgrader app starts the original app and exits

        1 Reply Last reply
        0
        • L lisoft

          Hi all, I'm looking for ways to make my program can do self-upgrade. I just have no idea how to override the main program with the new version if it is still running.:confused:

          Lisoft

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          See this [^]article and see if it meets your needs

          L 1 Reply Last reply
          0
          • L Lost User

            See this [^]article and see if it meets your needs

            L Offline
            L Offline
            lisoft
            wrote on last edited by
            #5

            Thanks so much, I think this is exactly what I want.

            Lisoft

            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