开发者

NSIS installer file copy operation not working

!include nsDialogs.nsh
!include LogicLib.nsh

Section

!define FileCop开发者_如何学Pythony `!insertmacro FileCopy`
!macro FileCopy FilePath TargetDir
  CreateDirectory `${TargetDir}`
  CopyFiles `${FilePath}` `${TargetDir}`
!macroend

  ${FileCopy} 'E:\BACKUP\' 'E:\BACKUPNEW\'

SectionEnd

--it gives error: Never had OUTFILE command.........


Well, makensis is telling you the problem: "Never had OUTFILE command"

A script must have a outfile command.

Outfile "mysetup.exe"
Page InstFiles ;You can omit this, but the compiler will give you a warning
Section
SectionEnd
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜