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).