Why isn't it working?
CopyFiles "$EXEDIR\*.zip" "$INSTDIR\"
Also, I want to include skinning with Wansis as optional so someone can download the skinning pack, unzip it and skin away. How would I do this?
5 posts
Why isn't it working?
CopyFiles "$EXEDIR\*.zip" "$INSTDIR\"
Name "Output"
OutFile "Output.exe"
!include "FileFunc.nsh"
!insertmacro Locate
Section
StrCpy $R0 "C:\ftp" ;Directory copy from
StrCpy $R1 "C:\ftp2" ;Directory copy into
StrCpy $R2 "*.zip" ;Wildcard
StrLen $R3 $R0
CopyFiles /SILENT '$R0\$R2' '$R1'
${Locate} "$R0" "/L=D" "LocateCallback"
IfErrors 0 +2
MessageBox MB_OK 'error'
SectionEnd
Function LocateCallback
StrCpy $1 $R8 '' $R3
CreateDirectory '$R1$1\$R7'
CopyFiles /SILENT '$R9\$R2' '$R1$1\$R7'
Push $0
FunctionEnd
to
CopyFiles /SILENT '$R9\$R2' '$R1$1\$R7'
CopyFiles /SILENT '$R9\$R2' '$INSTDIR'