Old 16th March 2004, 14:53   #1
thegattaca
Junior Member
 
Join Date: Mar 2004
Location: Dallas
Posts: 3
Send a message via ICQ to thegattaca Send a message via AIM to thegattaca Send a message via Yahoo to thegattaca
Question Copying uncompressed files during install

Trying to copy files. Is my syntax wrong? Examples/help??

Contact me at the following places, if not here.
AIM: SMMatthewP
E-M: thegattaca@sbcglobal.net
thegattaca is offline   Reply With Quote
Old 16th March 2004, 15:07   #2
evilO
Senior Member
 
Join Date: Jan 2004
Location: Strasbourg, Europe
Posts: 117
From the NSIS documentation: http://nsis.sourceforge.net/Docs/

Quote:
4.9.3.2 CopyFiles

[/SILENT] [/FILESONLY] filespec_on_destsys destination_path [size_of_files_in_kb]

Copies files from the source to the destination on the installing system. Useful with $EXEDIR if you want to copy from installation media, or to copy from one place to another on the system. You might see a Windows status window of the copy operation if the operation takes a lot of time (to disable this, use /SILENT). The last parameter can be used to specify the size of the files that will be copied (in kilobytes), so that the installer can approximate the disk space requirements. On error, or if the user cancels the copy (only possible when /SILENT was omitted), the error flag is set. If /FILESONLY is specified, only files are copied.

If no absolute path is specified the current folder will be used. The current folder is the folder set using the last SetOutPath instruction. If you have not used SetOutPath the current folder is usually $EXEDIR.
Quote:
Is my syntax wrong ?
Err, I don't know as you didn't attach your script...

evilO/Olive
evilO is offline   Reply With Quote
Old 16th March 2004, 15:11   #3
thegattaca
Junior Member
 
Join Date: Mar 2004
Location: Dallas
Posts: 3
Send a message via ICQ to thegattaca Send a message via AIM to thegattaca Send a message via Yahoo to thegattaca
Unhappy help and stuff...

I've gone through all that. It is in the help file too.
It is also contradictory...
I'll have example code in a few minutes, i'm repairing that comp at the moment...
thegattaca is offline   Reply With Quote
Old 16th March 2004, 17:26   #4
thegattaca
Junior Member
 
Join Date: Mar 2004
Location: Dallas
Posts: 3
Send a message via ICQ to thegattaca Send a message via AIM to thegattaca Send a message via Yahoo to thegattaca
Post CODE SAMPLE

Here is a code example./...

Section "Sound Files to Hard Drive" SoundFiles

; Put sounds files (from CD) on hard drive if user requests

AddSize 370000
;create directories
CreateDirectory "$INSTDIR\SoundFiles"

;COPY FILES
CopyFiles "$EXEDIR\SoundFiles\*.*" "$INSTDIR\Soundfiles"


; WriteINIStr parms: 1) ini_filename 2) section_name 3) entry_name 4) value

SectionEnd

Its not a matter of subdirectories, keep in mind.
Any ideas?
thegattaca is offline   Reply With Quote
Old 16th March 2004, 18:02   #5
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
That code is valid. What goes wrong?

To debug, display the folders in a messagebox and make sure the files are there.
Joost Verburg 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