Skip to content
⌘ NSIS Forum Archive

CopyFiles not working on installer file?

4 posts

Devion#

CopyFiles not working on installer file?

I've got the following line in a hidden and enabled section:
  CopyFiles /SILENT "$CMDLINE" "$INSTDIR\setup.exe" 4680
As you can see, i want the installer to copy itself to the $INSTDIR and be renamed to setup.exe.

I've checked $CMDLINE with a MessageBox function ( MessageBox MB_OK "$CMDLINE") and it does give me the full path+filename of the installer...

But after executing, the file simply does not show up in the $INSTDIR.

I've also tried just specifying $INSTDIR\ (without setup.exe) to see if the renaming part was the problem, but no luck there also...

What's going wrong here? I dont want to have to include the installer exe into itself (installer is already 5mb).
Vytautas#
Works fine for me. I have been using to create a self updating launcher for one of my programs.

Are you sure that there are no other problems with your script?

Vytautas
Joost Verburg#
Using the command line is not a reliable method. Use method 1 from this page: http://nsis.sourceforge.net/archive/...ances=0,11,211