View Single Post
Old 7th March 2016, 23:52   #17
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 891
From the VPatch docs:
Quote:
Update the file during installation

Use the VPatch plug-in to update a file using a patch file:

vpatch::vpatchfile "patch.pat" "oldfile.txt" "temporary_newfile.txt"
The result of the patch operating will be added to the stack and can be one of the following texts:

OK
OK, new version already installed
An error occurred while patching
Patch data is invalid or corrupt
No suitable patches were found
For reference: http://nsis.sourceforge.net/Docs/VPatch/Readme.html.

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