Skip to content
⌘ NSIS Forum Archive

Copy some files?

5 posts

P.Lukas#

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!
P.Lukas#
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
kichik#
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.