aj kwak
11th May 2005 14:56 UTC
vpatch
I dont know why, but the vpatch system works not like i want.
I just want :
I have a file (example text.txt)
and i have made a update of the file.
So i want that the file text.txt will be upgraded to the newtext.txt
what i have with vpatch now :
i have oldfile.txt on my directory and if i take a patch then i get 2 files oldfile.txt and newfile.txt
So... thats not a patchsystem...
kichik
11th May 2005 15:28 UTC
Take a look at the example in Contrib\VPatch.
aj kwak
11th May 2005 15:47 UTC
Originally posted by kichik
Take a look at the example in Contrib\VPatch.
I have used the example...
kichik
11th May 2005 15:54 UTC
So what's the problem? You've got your new file, copy it over the old file. Or rename the old file before patching it and delete it if the patch was successful.
aj kwak
12th May 2005 08:51 UTC
Originally posted by kichik
So what's the problem? You've got your new file, copy it over the old file. Or rename the old file before patching it and delete it if the patch was successful.
So what's the meaning of vpatch?
If i make a little installer with the files that must be upgraded. And if i use SetOverwrite on, than have i the same?
example
SetOverwrite on
File "C:\unicode.txt"
the only thing is that the upgrade.exe or patch.exe is bigger than if i use vpatch.
aj kwak
12th May 2005 08:59 UTC
The strange thing about vpatch and GENPAT is, that the sourcefile and the targetfile have another filename.
GENPAT (sourcefile) (targetfile) (patchfile)
vpatch::vpatchfile "patch.pat" data.txt" "data_new.txt"
and the thing i want is something like this:
vpatch::vpatchfile "patch.pat" "old\file.txt" "new\file.txt"
Same name but another folder. I want to make an 'automaticaly patch-system'
if the software developer dump his files and run a batch-file, there would make a patch.exe in the background.
kichik
12th May 2005 10:14 UTC
VPatch is better than simply using SetOverwrite, if you have big files that change only slightly. It allows you to include only the changed parts of the file. It also allows you to easily include patches for multiple version in one patch file.
VPatch and GenPat don't expect different file names, they expect different paths to different files. Using the same file name in different directories should work.
aj kwak
13th May 2005 09:01 UTC
Why would my .pat-file not work?
I always get 'Patch data is invalid or corrupt'
or
after extracting the pat-file
'Unable to open output file'
kichik
14th May 2005 13:28 UTC
Maybe the parameter order is incorrect or the patch file really is corrupt. Attach an example.
Koen van de Sande
19th August 2005 19:30 UTC
Upgrade to VPatch 3.0 RC7. There is a critical bugfix which should solve your corrupt patches (if you make them again from scratch :rolleyes: ).
Get it now: http://www.tibed.net/vpatch