Skip to content
⌘ NSIS Forum Archive

VPATCH for adding new files to application?

2 posts

bedbuffer#

VPATCH for adding new files to application?

VPatch is for updating software components that are "EXISTING" in the user's system. Let's say the line - vpatch::vpatchfile "$PLUGINSDIR\patchdata.pat" "$INSTDIR\oldfile.txt" "$INSTDIR\newfile.txt" creates newfile.txt from the patch file which you can later rename back to oldfile to update the oldfile.

But what if I have a "NEW" software component which needs to be added not updated. Does that mean I have to have it extracted instead? or vpatch also has this feature?

Thanks...
bedbuffer#
I guess the answer is yes, you have to have the new files extracted, just like installing your software components.