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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/287.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 Burn变量_Wix - Fatal编程技术网

允许用户编辑WIX Burn变量

允许用户编辑WIX Burn变量,wix,Wix,我正在使用WIX3.8,有一个安装MSI的Burn项目 我在Burn项目中有一个字符串变量,它有一个传递给MSI的默认值。我想允许用户在安装时编辑此内容,但无法使其正常工作。如何允许用户编辑Burn字符串变量 我目前的代码如下。显示编辑框,但不显示默认值,并且输入的值不会传递给MSI Bundle.wxs <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/200

我正在使用WIX3.8,有一个安装MSI的Burn项目

我在Burn项目中有一个字符串变量,它有一个传递给MSI的默认值。我想允许用户在安装时编辑此内容,但无法使其正常工作。如何允许用户编辑Burn字符串变量

我目前的代码如下。显示编辑框,但不显示默认值,并且输入的值不会传递给MSI

Bundle.wxs

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
  <Bundle Name="My Bundle"
          Version="!(bind.packageVersion.Installer)" 
          Manufacturer="!(bind.packageManufacturer.Installer)"
          UpgradeCode="e71d08e2-0083-483d-acfb-4bf9adfd08b0">

    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLargeLicense">
      <bal:WixStandardBootstrapperApplication ShowVersion="yes" LicenseUrl="" LogoFile="logo_64x64.jpg" ThemeFile="Theme.xml" />
    </BootstrapperApplicationRef>

    <Variable Name="ADDRESS" bal:Overridable="yes" Type="string" Value="https://my.server.com" />

    <Chain>
      <MsiPackage Id="Installer" SourceFile="$(var.Installer.TargetPath)">
        <MsiProperty Name="ADDRESS" Value="[ADDRESS]" />
      </MsiPackage>
    </Chain>

  </Bundle>
</Wix>

Theme.xml:

...
<Page Name="Options">
    <Text X="11" Y="80" Width="-11" Height="30" FontId="2" DisablePrefix="yes">#(loc.OptionsHeader)</Text>
    <Editbox Name="ADDRESS" X="11" Y ="120" Width="100" Height="21" TabStop="yes" FontId="3" />  
    <Button Name="OptionsOkButton" X="-91" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">#(loc.OptionsOkButton)</Button>
    <Button Name="OptionsCancelButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">#(loc.OptionsCancelButton)</Button>
  </Page>
...
。。。
#(位置选项标题)
#(定位选项确认按钮)
#(定位选项取消按钮)
...

希望你已经找到了这个问题的答案,如果没有,我就试试看。
看起来您的EditBox元素只是缺少地址属性引用。e、 g:

<Editbox Name="ADDRESS" X="11" Y ="120" Width="100" Height="21" TabStop="yes" FontId="3" >[ADDRESS]</EditBox>  
[地址]

希望这有帮助

还有别的吗?我遵循这一点,我看到了我的初始值,我可以编辑它,但是当它被传递到我的MSI包时,初始值就被传递了。还缺少什么吗?因为我的Variable的默认值只会被传递,而不会被更新!