Old 26th May 2004, 07:16   #1
moooster
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
moooster is offline   Reply With Quote
Old 28th May 2004, 08:39   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 28th May 2004, 08:55   #3
moooster
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.
moooster is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump