0

我已修改 RtfLicense 主题以在选项对话框中包含一个复选框。复选框的名称与我在安装条件中使用的变量名称相同。当我执行捆绑包并选中复选框时,变量始终为假。

捆绑。是...

<Variable Name="INSTALLSERVER" />

    <Chain>
      <ExePackage Cache="no" 
                  InstallCondition="INSTALLSERVER" 
                  Description="SQL Server and Server Bundle" 
                  Id="Server" 
                  SourceFile="ServerSQLBundle.exe">
      </ExePackage>

RtfTheme.xml....

<Page Name="Options">
        <Text X="11" Y="80" Width="-11" Height="30" FontId="2" DisablePrefix="yes">#(loc.OptionsHeader)</Text>
        <Text X="11" Y="120" Width="-11" Height="30" FontId="3" DisablePrefix="yes">#(loc.OptionsDescription)</Text>
        <Checkbox Name="INSTALLSERVER" X="11" Y="166" Width="260" Height="17" TabStop="yes" FontId="3">Install Server</Checkbox>
       <Button Name="OptionsOkButton" X="229" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">#(loc.OptionsOkButton)</Button>
      <Button Name="InstallButton" X="314" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">#(loc.InstallInstallButton)</Button>
      <Button Name="WelcomeCancelButton" X="404" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">#(loc.InstallCloseButton)</Button>
    </Page>

为什么没有设置变量?

4

1 回答 1

0

我不是 Burn 专家,但我认为您需要“持久化”您的变量以将其传递给链包 Eg<Variable Name="INSTALLSERVER" Type="numeric" Value="1" Persisted="yes" bal:Overridable="yes" />

于 2015-06-06T00:41:30.050 回答