!include nsDialogs.nsh
!include LogicLib.nsh
Section
!define FileCopy `!insertmacro FileCopy`
!macro FileCopy FilePath TargetDir
CreateDirectory `${TargetDir}`
CopyFiles `${FilePath}` `${TargetDir}`
!macroend
${FileCopy} 'E:\BACKUP\' 'E:\BACKUPNEW\'
SectionEnd
- 它给出错误:从未有过OUTFILE命令.........
答案 0 :(得分:2)
好吧,makensis告诉你问题:“从来没有OUTFILE命令”
脚本必须具有outfile命令。
Outfile "mysetup.exe"
Page InstFiles ;You can omit this, but the compiler will give you a warning
Section
SectionEnd