0
kemnet's Avatar, Join Date: Nov 2010
Go4Expert Member
Thanks! for this example im going to try to recreate it now
0
kemnet's Avatar, Join Date: Nov 2010
Go4Expert Member
Hello so i did the did what u said and got this Long output with everything being different and wondering how I change this to a patch and then integrate it into patch1.

Ive also been reading on Jojodif and it seems to be what im looking for. Tried it and seems to work but ill like to run the procedures over with you.

So 1st i remaned my patches,
so Patchm1 gives the output of
Code:
C=-1
//1-2
and Patch3 is C=3//2+1

so lets call Patchm1 the error and Patch3 the revision.

So i did Jdiff patchm1.exe patch3.exe patch.p
( First question:Is this the correct extension to use )

then i did:Jptch patchm1.exe patch.p patch3
(Thou i saw this in the example is causes the exe too bug out so i did)

jptch patchm1.exe patch.p patch2
So running Patch2 gave me"C=3"

Therefore what I gather is
Jdiff patchm1.exe patch3.exe patch.p
Writes the difference into patch.p which is 1+2 into patch.p instead of 1-2
and
Jptch patchm1.exe patch.p patch3
writes that into patch3?
0
virxen's Avatar, Join Date: Nov 2009
Pro contributor
the extension of the patch file is something for you to decide
you could use ptc to know its a patch file or whatever,just try to avoid
known types of files like txt,exe,com,bat,jpg,... for obvious reasons.

and finally
Jptch patchm1.exe patch.p patch3

convert it to

Jptch patchm1.exe patch.p newpatch3.exe
0
kemnet's Avatar, Join Date: Nov 2010
Go4Expert Member
Once again thanks for the help but...this isnt patching how id like.

I added a simple line to patchm1.exe changed it too
Hello
c=-1

then i do
Jdiff patchm1.exe patch3.exe patch.p
jptch patchm1.exe patch.p newpatch.exe

this outputs C=3 without the Hello
which is basically the data in patch3.exe

Jdiff patch3.exe patchm1.exe patch.p
jptch patch3.exe patch.p newpatch.exe

outputs hello c=-1 which is patchm1.exe's data

and when i do
Jdiff patch3.exe patchm1.exe patch.p
jptch patchm1.exe patch.p newpatch.exe

it doesnt work so im stuck
cause im lookin for
hello
c=3

Last edited by kemnet; 23Nov2010 at 00:53..
0
virxen's Avatar, Join Date: Nov 2009
Pro contributor
are you sure that you open this program?---->newpatch.exe
and not patch3.exe?
0
kemnet's Avatar, Join Date: Nov 2010
Go4Expert Member
yes very sure.
I also keep getting the error "this version of the file is not compact. with my version of windows, im using a 64 bit visa

Last edited by kemnet; 23Nov2010 at 17:55..
0
kemnet's Avatar, Join Date: Nov 2010
Go4Expert Member
Would you like me upload the files?
0
virxen's Avatar, Join Date: Nov 2009
Pro contributor
Quote:
Originally Posted by kemnet View Post
Would you like me upload the files?
yes
0
kemnet's Avatar, Join Date: Nov 2010
Go4Expert Member
ok here it is,i also uploaded a screen shot of the commands i wrote.Thank you
Attached Files
File Type: rar patches.rar (32.1 KB, 3 views)
0
virxen's Avatar, Join Date: Nov 2009
Pro contributor
simple mathematics
===================
A-B=C
A+C=B

jdiff patchm1.exe patch3.exe patch.p------>A(patchm1.exe) - B(patch3.exe) = C(patch.p)
jptch patchm1.exe patch.p newpatch.exe--->A(patchm1.exe)+C(patch.p)=B(patch3.exe)=(newpatch .exe)


how it works,generally idea
================================================== ====
-You sent the wrong program named patchm1.exe to a user that bought your program
So he has already patchm1.exe in his computer

-Then you figure out that there is a bug to fix
You fix it and make a new program called patch3.exe

-instead of sending the patch3.exe to your user you decide to send him only
the differences between the program with the bug and the one without it.
So you send patch.p to him

-He uses the jptch program to bring his file to the new version without the bug