NSIS installer file copy operation not working

a 夏天 提交于 2019-12-11 05:14:19

问题


!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

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


回答1:


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


来源:https://stackoverflow.com/questions/5870048/nsis-installer-file-copy-operation-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!