本文介绍了NSIS安装程序文件复制操作不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

!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命令.........

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

推荐答案

好吧,makensis告诉您问题所在:从来没有OUTFILE命令"

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

这篇关于NSIS安装程序文件复制操作不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 23:49