View Single Post
Old 3rd March 2016, 22:44   #12
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 891
VPatch stores the differences in the files, so when you create the patch, you give it the original file that was on the "install disk", and the new version of the file, and the resulting .pat file contains the difference between them. I think it also stores checksum data to check the original file to see if it can be patched? I don't remember, I've only read the documentation.

Generally the .pat file is included in the installer with 'File', and you extract this file to the $pluginsdir, and call vpatch from there.

Quote:
Section
InitPluginsDir

File /oname="$PLUGINSDIR\patch.pat" "patch.pat"

VPatch::function ; example only, use a proper function from VPatch

SectionEnd

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote