Archive: CopyFiles does not copy the files


CopyFiles does not copy the files
Hi,

I am new to NSIS and so far I am loving it. My setup requires the option to install database files or leave them on the CD-ROM so I figured instead of including them in the setup I just copy them from the CD-ROM to the installation folder (if the user decides to install them).

However, it seems it doesn't work and I don't understand why or where I am doing something wrong.

This is how my section looks like


Section $(SectionDatabaseFiles) SEC02
;SetOutPath "$INSTDIR\Data"
;CreatDirectory $INSTDIR\Data

CopyFiles "$EXEPATH\Data\DB1.mdb" "$INSTDIR\Data" 118300
CopyFiles "$EXEPATH\Data\DB2.mdb" "$INSTDIR\Data" 281768
SectionEnd


The sub-folder Data already exists on the users computer (will be created earlier during the setup) so I removed the SetOutPath and CreateDirectory, but without any success.

Right now the setup is in a folder on the system not on a CD-ROM, but this has to work as well.

Any ideas?

Cheers!
Byteloser

It's $EXEDIR not $EXEPATH.

Stu


OMG ... Now I am a little embarrassed ... Thanks a lot!