Thanks, that was the problem. CData is case sensitive and i had CData instead of CDATA after changing, it worked.
Arun Perregattur -----Original Message----- From: Peter Björkman [mailto:peter.bjork...@aptus.se] Sent: Wednesday, January 21, 2009 1:57 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] RadioButtons and Feature Hi I can't see anything wrong on that row but on the next row and some other places you have written CData instead of CDATA... Perhaps you can skip CDATA and write just " INSTALLTYPE="ServerFeature" instead of "<![CData[NOT (INSTALLTYPE="ServerFeature")]]>". I use CDATA as I sometimes use "not equal to <>" in my conditions. -----Original Message----- From: Arun Perregatturv [mailto:aperregatt...@napcosecurity.com] Sent: den 20 januari 2009 20:29 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] RadioButtons and Feature I get an error 'Error 1 Expecting '<![CDATA['. ' Here's my code <Dialog Id="InstallDlg" Width="370" Height="270" Title="!(loc.SetupTypeDlg_Title)" NoMinimize="yes"> <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" > <Publish Event="AddLocal" Value="ServerFeature"><![CDATA[ (INSTALLTYPE ="ServerFeature")]]></Publish> ====> getting the error here.. <Publish Event="Remove" Value="ServerFeature"><![CData[NOT (INSTALLTYPE="ServerFeature")]]></Publish> <Publish Event="AddLocal" Value="WorkstationFeature"><![CData[ (INSTALLTYPE="WorkstationFeature")]]></Publish> <Publish Event="Remove" Value="WorkstationFeature"><![CData[NOT (INSTALLTYPE="WorkstationFeature")]]></Publish> </Control> <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" /> <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"> <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish> </Control> <Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.SetupTypeDlgDescription)" /> <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.SetupTypeDlgTitle)" /> <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.SetupTypeDlgBannerBitmap)" /> <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" /> <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /> <Control Id="CreateDB" Type="CheckBox" Text="Create Database" Property="CREATEDB" CheckBoxValue="1" X="52" Y="139" Width="150" Height="30" /> <Control Id="RadioButtonGroupID" Type="RadioButtonGroup" X="49" Y="64" Width="188" Height="68" Property="INSTALLTYPE" Text="This is My Group" > <RadioButtonGroup Property="INSTALLTYPE" > <RadioButton Value="ServerFeature" X="0" Y="0" Width="100" Height="10" Text="Server" /> <RadioButton Value="WorkstationFeature" X="0" Y="45" Width="100" Height="10" Text="Workstation" /> </RadioButtonGroup> </Control> </Dialog> Please let me know what I am missing here. Thanks, Arun Perregattur -----Original Message----- From: Peter Björkman [mailto:peter.bjork...@aptus.se] Sent: Tuesday, January 20, 2009 1:45 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] RadioButtons and Feature Hi Here is my solution to this. I don't know if there is something easier or better. The radiobuttongroup controls some property <RadioButtonGroup Property="PROPERTY"> <RadioButton Text="Feature1" Value="Feature1" X="5" Y="0" Width="140" Height="15" /> <RadioButton Text="Feature2" Value="Feature2" X="5" Y="20" Width="140" Height="15" /> </RadioButtonGroup> When the user presses the Next-button I publish events to add/remove the features <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)"> <Publish Event="AddLocal" Value="Feature1"><![CDATA[ (PROPERTY = "Feature1")]]></Publish> <Publish Event="Remove" Value="Feature1"><![CDATA[NOT (PROPERTY = "Feature1")]]></Publish> <Publish Event="AddLocal" Value="Feature2"><![CDATA[ (PROPERTY = "Feature2")]]></Publish> <Publish Event="Remove" Value="Feature2"><![CDATA[NOT (PROPERTY = "Feature2")]]></Publish> <Publish Event="NewDialog" Value="NextDlg">1</Publish> </Control> Where the value in the publish-element equals the feature names. //Peter Björkman -----Original Message----- From: Arun Perregatturv [mailto:aperregatt...@napcosecurity.com] Sent: den 19 januari 2009 18:08 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] RadioButtons and Feature I am confused on how to set a feature to a Radiobutton selection. I have 4 Features 1. Feature1 2. Feature2 3. Feature3 4. Feature4 I copied WixUI_Mondo and modified to include my custom Dialog which has 4 radiobuttons and one checkbox. Now, I can compile and run and even see the dialog that's not the problem. Problem is how do I set or relate feature1 to Radiobutton1, feature2 to Radiobutton2 and so on. Based on their selection I would like to install features. Thanks, Arun Perregattur ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users