Archive: Copy some files?


Copy some files?
Hello,

i'm very new @ NSIS and my question is how i can copy some files from a folder to a folder?

thx in advance!


CopyFiles.


i tried

CopyFiles "$INSTDIR\OfTWE.exe" "$DESKTOP\OfTWE.exe"

but i get an error

Error: command CopyFiles not valid outside section or function
Error in script "C:\Dokumente und Einstellungen\l.prelovsky\Desktop\Installer\Outlook.nsi" on line 4 -- aborting creation process


Commands ran at runtime, when the user actually installs your software, must be located inside a function or a section. I suggest you read the tutorial and have a look at the examples located in the Examples folder before you start with your first script.


okay thank you, will read it!