Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 11th April 2005, 11:19   #1
lantoeter
Junior Member
 
Join Date: Apr 2005
Posts: 2
howto use files not in installer but on CD ???

Hallo,

if got that error 12345, because the files id like to install are more than 4 GB and the installer can only handle 2GB within the installer.
Is it possible to tell the installer to use "external" files that are not compressed with the installer together???
for example
cd-|
install.exe 500 KB
|
files
|
file1.exe 2.000 MB
file2.dll 1.000 MB
.
.

The installer uses not only the files in the archiv of the installer.exe, also the files in the directory "files".
Is there a command for that ???
can this command also handle the parameter "ifnewer" for fileaccess ???

best regards LANToeter
lantoeter is offline   Reply With Quote
Old 11th April 2005, 11:41   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,167
Send a message via ICQ to Yathosho
CopyFiles "$EXEDIR\myfile.blub" "$INSTDIR\myfile.blub"
Yathosho is offline   Reply With Quote
Old 11th April 2005, 13:12   #3
lantoeter
Junior Member
 
Join Date: Apr 2005
Posts: 2
thanks for the fast answer.

The first time you use the installer it works with your code.
But when i use it the second time it will owerwrite all the files again !!!! That takes about 16 minutes !! is there a chance to owerwrite only if the file from the $EXEDIR is never ???

thanks LANToeter
lantoeter is offline   Reply With Quote
Old 11th April 2005, 19:43   #4
Jnuw
Senior Member
 
Join Date: Sep 2004
Location: Wisconsin, US
Posts: 258
You could use this function from the archive to first compare the file dates, and then skip your copyfiles command based on your findings.
Jnuw is offline   Reply With Quote
Old 12th April 2005, 14:53   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Or, if you want to go for a simpler solution just use
IfFileExists "path_to/file.ext" 0 NoExtract_file.ext
File "file.ext"
NoExtract_file.ext:

-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp 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