Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WIX:如何在自定义对话框中显示变量?_Wix - Fatal编程技术网

WIX:如何在自定义对话框中显示变量?

WIX:如何在自定义对话框中显示变量?,wix,Wix,我想在自定义对话框中显示一些变量。例如,我想通知用户正在安装的产品的版本号 main.wxs文件的头是: <?xml version="1.0" encoding="UTF-8"?> <?define ProductVersion = 1.0.20.15?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="*"

我想在自定义对话框中显示一些变量。例如,我想通知用户正在安装的产品的版本号

main.wxs文件的头是:

    <?xml version="1.0" encoding="UTF-8"?>
    <?define ProductVersion = 1.0.20.15?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
      <Product Id="*" 
               Name="BNS" 
               Language="1029" 
               Version="$(var.ProductVersion)"
...


您应该让candle知道这个预处理器变量。为此使用“-d”开关。有关详细信息,请在控制台中键入“candle”。

您应该让candle知道此预处理器变量。为此使用“-d”开关。有关详细信息,请在console中键入“candle”

<Control Id="VersionNumber" Type="Text" X="20" Y="175" Width="290" Height="30" Transparent="yes" Text="$(var.ProductVersion)" NoPrefix="yes"/>