Old 1st March 2010, 14:23   #1
mfernau
Junior Member
 
Join Date: Feb 2010
Posts: 3
FILE without overwriting?

Hello,

is it possible to use the FILE-Command without overriding already existing files?
We have several dozen (if not hundreds) files which need to be copied only if they aren't exists. It would be nice to have a FILE-Command with an extra option to NOT override existing files. Otherwise I need to write a second script which generates the nsis-script with tons of if-statements.

Regards,
Martin
mfernau is offline   Reply With Quote
Old 1st March 2010, 14:45   #2
mfernau
Junior Member
 
Join Date: Feb 2010
Posts: 3
okay, nevermind. I found a solution: http://forums.winamp.com/showthread....file+overwrite

But maybe it would be smarter way to add an extra option to the FILE-Command to not overwrite the destination. This way one can copy a whole directory (using *.*) without testing each file of existence.
mfernau is offline   Reply With Quote
Old 1st March 2010, 15:53   #3
redxii
Senior Member
 
Join Date: Nov 2005
Posts: 115
'SetOverWrite off' didn't work? http://nsis.sourceforge.net/Docs/Chapter4.html#4.8.2.8
redxii is offline   Reply With Quote
Old 3rd March 2010, 07:12   #4
mfernau
Junior Member
 
Join Date: Feb 2010
Posts: 3
Uhm - I didn't recognized this option...
I think this is what I'm searching for!

Thanks
mfernau 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