Software dll update checker?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xillez
    New Member
    • Jul 2013
    • 93

    Software dll update checker?

    Hey, I'm making a text editor for my own programming language and I wanna make a simple software updater for it. I've been searching online for tutorials and how to's, but couldn't find any that explained what I was after/covered the code I needed...

    Can you guys help me with this one?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    One easy way to do this is to keep the version number in a registry key. All your updater has to do is read the key to see if the update has been applied.

    I assume you are using Windows because only Windows uses dlls.

    You might also keep the version number in a configuration file that also holds the other settings for your editor.

    Avoid hard-coding the version number in the code.

    Comment

    • Xillez
      New Member
      • Jul 2013
      • 93

      #3
      ok, thanks for the info but how can I like send the updater the data it needs? or does it find it on it's own?

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        The updater finds the data on its own because it knows where to look. I mean you coded both programs.

        If you use a settings file you can do things like:

        Code:
        version= 2.5
        Then have the updater read the file looking for "version=" to find the data.

        To update the file you would make a copy substituting the new version for the old one. Then copy back on top of the original. Then delete the copy.

        Comment

        • Xillez
          New Member
          • Jul 2013
          • 93

          #5
          ok, thanks for the help

          Comment

          Working...