声明变量(Var命令)和符号(使用!define命令定义)之间存在差异:
Var /GLOBAL myVar ; This is variable -> use it as $myVar
!define mySymbol; This is symbol -> use it as ${mySymbol}
Run Code Online (Sandbox Code Playgroud)
试试这个:
!define XMLConfigDir "C:\some_path_to_XML\subdir\"
Section "Main Section"
File "${XMLConfigDir}*.xml"
SectionEnd
Run Code Online (Sandbox Code Playgroud)
在安装程序运行期间,也可以使用/ D命令行开关设置符号.