NSIS:无效命令:${GetTime}

Afr*_*ief 1 nsis

我按照NSIS 手册中的示例进行操作${GetTime}

${GetTime} "" "LS" $0 $1 $2 $3 $4 $5 $6
Run Code Online (Sandbox Code Playgroud)

但它会导致编译错误

Invalid command: ${GetTime}
Run Code Online (Sandbox Code Playgroud)

Afr*_*ief 5

在调用之前将以下内容放在某处 ${GetTime}

!include FileFunc.nsh
!insertmacro GetTime
Run Code Online (Sandbox Code Playgroud)

取自http://forums.winamp.com/showthread.php?t=268160#post2157957