Archive: Using CopyFiles command


Using CopyFiles command
Is there a way to successfully use the copyfiles command to span disks?

This is what I have:

MessageBox MB_OKCANCEL "If you do not have enough disk space to install Area51 / Maximum Force Combo using this installer, you can manually copy the files and extract them with a program such as Winrar. Press OK to continue" IDCANCEL FINISH2
; Set output path to the installation directory.
SetOutPath $INSTDIR\TEMP
; Put file there
CopyFiles ".\AREA51MX\*.*" "$INSTDIR\TEMP"

MessageBox MB_OKCANCEL "Insert M.A.M.E. 0.75 Disk 18 (Area51mx disk 2) and Press 'OK' to install. " IDCANCEL FINISH2
; Set output path to the installation directory.
SetOutPath $INSTDIR\TEMP
; Put file there
CopyFiles ".\AREA51MX\*.*" "$INSTDIR\TEMP"

but when it goes to the second disk to continue getting the necessary files it says "copy failed". I can copy the files, using windows, just fine.

Any ideas?


I am not certain about this, NSIS Devs will know for sure, but I think that the problem is due to the fact that the disk with the installer is removed. To fix this problem you should make a copy of the installer in the TEMP directory and execute that copy.

Vytautas


Try $EXEDIR instead of . in the source parameter. The dot refers to the working directory which is changed by SetOutPath. It's probably working in the first one because of a bug in b3 that caused the working directory to not be set right the first time.


Thanks. By putting the $EXEDIR instead of the "." in the source path did the trick.