1

我有RadioButtonGroup3 个具有RadioButtonsAll和。目标是一个名为 的属性。EasyGateRadioButtonGroupFRAMEWORK

我要那个

1.当我点击All时,安装文件夹将变为C:\Program Files (x86)\Arons Medical\

2.点击EASY后,安装位置变为C:\Program Files (x86)\Arons Medical\Easy

3.当我点击GATE时,安装位置会变成C:\Program Files (x86)\GATE

什么是WiX代码?我可以猜想我必须更改WIXUI_INSTALLDIR属性,但是如何?

4

1 回答 1

3

有同样的问题并以这种方式解决:

    <Control Id="RadioButtonGroupID" Type="RadioButtonGroup" X="30" Y="94" Width="305" Height="100" Property="TargetSystem">
      <RadioButtonGroup Property="TargetSystem">
        <RadioButton Value="live" X="0" Y="0" Width="300" Height="10" Text="Live" ToolTip="C:\Live" />
        <RadioButton Value="dev" X="0" Y="20" Width="300" Height="10" Text="Dev" ToolTip="C:\Test" />
        <RadioButton Value="user" X="0" Y="40" Width="300" Height="10" Text="User" />
      </RadioButtonGroup>
    </Control>

    <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)">
      <Publish Property="INSTALLDIR" Value="C:\Test">TargetSystem = "dev"</Publish>
      <Publish Property="INSTALLDIR" Value="C:\Live">TargetSystem = "live"</Publish>
      <Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg">CostingComplete = 1</Publish>
      <Publish Event="NewDialog" Value="InstallDirDlg">TargetSystem = "user"</Publish>
      <Publish Event="NewDialog" Value="VerifyReadyDlg">
        <![CDATA[TargetSystem <> "user"]]>
      </Publish>
    </Control>

<Property Id="TargetSystem">user</Property>

希望它会帮助你。

问候——异度

于 2012-09-28T16:02:21.120 回答