Skip to content
⌘ NSIS Forum Archive

patching a whole directory

3 posts

moooster#

patching a whole directory

I've searched high and low for a complete way to do complete recursive directory patches, but have been unable to find anything. I want to be able to feed it an old directory say 'version1.3' and a new 'version1.5' dir and have it :

* patch files (using vpatch?)
* remove files that should no longer exist (vpatch doesn't do this)
* add new files (nor this)

Has someone done this with a perl script or anything?

TIA
kichik#
As the user won't have both versions on his computer, the decision of what to patch and what to remove should be done on your computer. You should therefore write a program that will create the script for you, comparing two directories. This could be done with a simple NSIS installer that gets two directories using InstallOptions and compares them (FindFirst, FindNext, FindClose, GetFileTime, IfFileExists, etc.).
moooster#
That's a neat solution I didn't think of. I've written a perl script that does the comparisons and generates the file details of a NSIS script.

Thanks for the help and a badass program.