Jiang, Chunyan (GE Healthcare)
2009-10-30 10:35:24 UTC
Hi wix-users,
I have one dialog, which has two radion buttons. I want to use this
radio button to decide custom action to be called or not.
<Control Type="RadioButtonGroup" Property="DoCA" Id="Upgrade" Width="50"
Height="42" X="68" Y="100">
<RadioButtonGroup Property="DoCA">
<RadioButton Value ="DoIt" Text="New" Height="17" Value="0" Width="50"
X="0" Y="0" />
<RadioButton Value ="NotDoIt" Text="Upgrade" Height="17" Value="1"
Width="50" X="0" Y="25" />
</RadioButtonGroup>
</Control>
I want "MyCA" to run when RadioButton "DoIt" is checked. So the custom
action is defined as:
<CustomAction Id="MyCA" Property="DoCA" Value="DoIt" FileKey="MyCA.exe"
ExeCommand="Call MyCA" Return="asyncWait" />
However, I got the compile error:
d:\InstallDirDlg.wxs(52,0): error CNDL0022: The CustomAction/@FileKey
attribute cannot coexist with a previously specified attribute on this
element. The CustomAction element may only have one of the following
source attributes specified at a time: BinaryKey, Directory, FileKey,
Property, or Script.
How to modify the custom action to avoid this error?
Best regards,
Chunyan
I have one dialog, which has two radion buttons. I want to use this
radio button to decide custom action to be called or not.
<Control Type="RadioButtonGroup" Property="DoCA" Id="Upgrade" Width="50"
Height="42" X="68" Y="100">
<RadioButtonGroup Property="DoCA">
<RadioButton Value ="DoIt" Text="New" Height="17" Value="0" Width="50"
X="0" Y="0" />
<RadioButton Value ="NotDoIt" Text="Upgrade" Height="17" Value="1"
Width="50" X="0" Y="25" />
</RadioButtonGroup>
</Control>
I want "MyCA" to run when RadioButton "DoIt" is checked. So the custom
action is defined as:
<CustomAction Id="MyCA" Property="DoCA" Value="DoIt" FileKey="MyCA.exe"
ExeCommand="Call MyCA" Return="asyncWait" />
However, I got the compile error:
d:\InstallDirDlg.wxs(52,0): error CNDL0022: The CustomAction/@FileKey
attribute cannot coexist with a previously specified attribute on this
element. The CustomAction element may only have one of the following
source attributes specified at a time: BinaryKey, Directory, FileKey,
Property, or Script.
How to modify the custom action to avoid this error?
Best regards,
Chunyan