在 xml 中使用系统变量

Use system variables in xml

我已将清单文件写入 xml。

我想在其中使用环境变量(Program Files),但是没有用。

这是我的代码:

<provider name="myapp"   
           resourceFileName="${env.ProgramFiles}\myfile.dll" 
           messageFileName="${env.ProgramFiles}\myfile.dll">

如何使用环境变量 xml 语法?

正在尝试 运行 我得到的清单:

**** Warning: The resource file for publisher myapp was not found or could not be opened.
resourceFileName: ${env.ProgramFiles}\myfile.dll

以下是适合我的方法:

<provider name="myapp"   
           resourceFileName="%ProgramFiles%\myfile.dll" 
           messageFileName="%ProgramFiles%\myfile.dll">