Archive: vpatch


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...


Take a look at the example in Contrib\VPatch.


Originally posted by kichik
Take a look at the example in Contrib\VPatch.
I have used the example...

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.


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.

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.


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.


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'


Maybe the parameter order is incorrect or the patch file really is corrupt. Attach an example.


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