|
|
#1 |
|
Junior Member
Join Date: May 2004
Location: SF Bay Area, CA
Posts: 2
|
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 |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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.).
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2004
Location: SF Bay Area, CA
Posts: 2
|
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. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|