Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Patches

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
I was just wondering... How would you install a patch to your EXE. I've recently distributed a program, and then i got sever notifications of a bug, and so I created a fix, but now I need to send it out in the form of a patch, how would I go about doing this? The thought never really crossed my mind. Cyprus
 
Are you thinking of making a tool for this purpose yourself or getting something from the internet ?

I tried this in a dos box:

C:\>copy con test1.exe
1
2
3
^Z
1 file(s) copied.
C:\>copy con test2.exe
3
2
1
^Z
1 file(s) copied.
C:\>fc /b test1.exe test2.exe
Comparing files test1.exe and TEST2.EXE
00000000: 31 33
00000006: 33 31
C:\>


It can't be to difficult to create a program to generate a c-source from the differences between the two exe-files.
If you want to start programming, have a look this code:

One thing: what if the patch is bigger than the program :)
 
life can be so easy :)

PatchWise Free 3.15 Beta (freeware)


This is an easy way for authors to create patches for their software. It creates small, self-extracting files that are easily distributable. Everything is handled through a wizard-like interface.
 
thank you hemmep, thats along the lines of what i was looking for Cyprus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top