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. Visual Basic
  4. How to build a patch application

How to build a patch application

Scheduled Pinned Locked Moved Visual Basic
tutorialsecurityquestioncode-review
9 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
    Lost User
    wrote on last edited by
    #1

    Hi, does anyone know how to build a patch (the correction) for an application that we already deploy? Example: my project has one form which contain one button. When the user press the button it display the message box "Hello world". And now I need to change the meaning of the message box from "Hello world" to "Hello everybody". I don't want to change the code and recompile my application again to redeploy it. But what i want is just make a small execute file that after a quick set up it will change the meaning of the message as i mention above. The purpose is like the small patch file that Microsoft used to allow the user to download in order to improve the security of each computer.

    L A J 3 Replies Last reply
    0
    • L Lost User

      Hi, does anyone know how to build a patch (the correction) for an application that we already deploy? Example: my project has one form which contain one button. When the user press the button it display the message box "Hello world". And now I need to change the meaning of the message box from "Hello world" to "Hello everybody". I don't want to change the code and recompile my application again to redeploy it. But what i want is just make a small execute file that after a quick set up it will change the meaning of the message as i mention above. The purpose is like the small patch file that Microsoft used to allow the user to download in order to improve the security of each computer.

      L Offline
      L Offline
      Leather99
      wrote on last edited by
      #2

      If the strings are emedded into the EXE file then a redeploy will be required. If you have put them into an external resource file of some kind you could just re-deploy that, but I am guessing that this is not the case here.

      L 1 Reply Last reply
      0
      • L Lost User

        Hi, does anyone know how to build a patch (the correction) for an application that we already deploy? Example: my project has one form which contain one button. When the user press the button it display the message box "Hello world". And now I need to change the meaning of the message box from "Hello world" to "Hello everybody". I don't want to change the code and recompile my application again to redeploy it. But what i want is just make a small execute file that after a quick set up it will change the meaning of the message as i mention above. The purpose is like the small patch file that Microsoft used to allow the user to download in order to improve the security of each computer.

        A Offline
        A Offline
        AndrewVos
        wrote on last edited by
        #3

        I would suggest doing an md5 on all the files included, and just replace the ones that are different. I bet theres a solution out there that does this?


        All your source are belong to us!

        L 1 Reply Last reply
        0
        • L Lost User

          Hi, does anyone know how to build a patch (the correction) for an application that we already deploy? Example: my project has one form which contain one button. When the user press the button it display the message box "Hello world". And now I need to change the meaning of the message box from "Hello world" to "Hello everybody". I don't want to change the code and recompile my application again to redeploy it. But what i want is just make a small execute file that after a quick set up it will change the meaning of the message as i mention above. The purpose is like the small patch file that Microsoft used to allow the user to download in order to improve the security of each computer.

          J Offline
          J Offline
          Jottum
          wrote on last edited by
          #4

          Roath, I don't know if you've already found a solution? If not PatchWise Free is probably what you're looking for. As its name suggests, it's Freeware and really does a great job. HTH Jottum

          L 1 Reply Last reply
          0
          • L Leather99

            If the strings are emedded into the EXE file then a redeploy will be required. If you have put them into an external resource file of some kind you could just re-deploy that, but I am guessing that this is not the case here.

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

            Thank you very much for your comment. But what i want is not redeploy an application. I just build a new small exe and set up then change the behavior of my application. Like Microsoft build a service pack or a small patch.

            L 1 Reply Last reply
            0
            • A AndrewVos

              I would suggest doing an md5 on all the files included, and just replace the ones that are different. I bet theres a solution out there that does this?


              All your source are belong to us!

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

              AndrewVos wrote:

              I would suggest doing an md5 on all the files included, and just replace the ones that are different.

              Thank you very much for your solution, but I don't know what is MD5. Could you give me more detail about this?

              1 Reply Last reply
              0
              • J Jottum

                Roath, I don't know if you've already found a solution? If not PatchWise Free is probably what you're looking for. As its name suggests, it's Freeware and really does a great job. HTH Jottum

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

                Thank you very much for your solution. Until know i did not know any better solution. Hope that this software could do as what I expected.

                J 1 Reply Last reply
                0
                • L Lost User

                  Thank you very much for your comment. But what i want is not redeploy an application. I just build a new small exe and set up then change the behavior of my application. Like Microsoft build a service pack or a small patch.

                  L Offline
                  L Offline
                  Leather99
                  wrote on last edited by
                  #8

                  Microsoft patch Windows by replacing the neccesary components. Remembver that Windows is made up of hundreds or thousands of individual files. When they release a patch it simply replaces the files that need to be changed. If your application simply consists of one file you will need to replace it, if it consists of multiple files, and you only need to change some of them then simply re-deploy the ones you need to change.


                  MCSD(VB6/SQL7) MCAD(C#/SQL2000) MCSD(C#/SQL2000)

                  1 Reply Last reply
                  0
                  • L Lost User

                    Thank you very much for your solution. Until know i did not know any better solution. Hope that this software could do as what I expected.

                    J Offline
                    J Offline
                    Jottum
                    wrote on last edited by
                    #9

                    Roath, You're welcome. It will do what you want, it can update multiple files, make a backup of the originals, you can add a custom splash screen, add a license agreement the user has to agree to, to continue, add a readme file (both can be loaded from disk), two different UI's. (Install Shield like - which I use - and a simple) I use it a lot and am very pleased with it. Jottum

                    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