Figured it out.  Need to insert the '1' on the contents of Publish element.  I 
was actually selecting the feature but then not moving on to the next form 
because the condition was blank which is false.  If there is only one publish 
event and it is blank then it is true.  So if you add another publish event to 
an existing button without the 1 then

This will show ConfirmInstallForm
>               <Control Id="NextButton" Type="PushButton" X="300" Y="261" 
> Width="66" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}&amp;Next &gt;" 
> TabSkip="no" Default="yes">
>                 <Publish Event="NewDialog" 
> Value="ConfirmInstallForm">1</Publish>
>                 <Publish Event="AddLocal" Value="ServiceFeature">1</Publish>
>               </Control>

And this will show ConfirmInstallForm
>               <Control Id="NextButton" Type="PushButton" X="300" Y="261" 
> Width="66" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}&amp;Next &gt;" 
> TabSkip="no" Default="yes">
>                 <Publish Event="NewDialog" 
> Value="ConfirmInstallForm">1</Publish>
>               </Control>

And this will show ConfirmInstallForm
>               <Control Id="NextButton" Type="PushButton" X="300" Y="261" 
> Width="66" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}&amp;Next &gt;" 
> TabSkip="no" Default="yes">
>                 <Publish Event="NewDialog" 
> Value="ConfirmInstallForm"></Publish>
>               </Control>

But this will not show ConfirmInstallForm
>               <Control Id="NextButton" Type="PushButton" X="300" Y="261" 
> Width="66" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}&amp;Next &gt;" 
> TabSkip="no" Default="yes">
>                 <Publish Event="NewDialog" 
> Value="ConfirmInstallForm"></Publish>
>                 <Publish Event="AddLocal" Value="ServiceFeature"></Publish>
>               </Control>

Regards
Ralph Esslinger

-----Original Message-----
From: Blair Murri [mailto:os...@live.com] 
Sent: Wednesday, 3 July 2013 7:11 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Feature Selection

Not certain but do you need to publish AddLocal before you publish NewDialog?
 
> From: reesslin...@matthews.com.au
> To: wix-users@lists.sourceforge.net
> Date: Tue, 2 Jul 2013 23:16:15 +0000
> Subject: [WiX-users] Feature Selection
> 
> I am have a simple problem connecting feature selection to a push 
> button
> 
>             <RadioButtonGroup Property="ServiceSelection_Property">
>               <RadioButton Height="20" Value="Client" 
> Text="{\VSI_MS_Sans_Serif13.0_0_0}&amp;Client" Width="348" X="0" Y="0" />
>               <RadioButton Height="20" Value="Server" 
> Text="{\VSI_MS_Sans_Serif13.0_0_0}&amp;Server" Width="348" X="0" Y="60" />
>               <RadioButton Height="20" Value="Application" 
> Text="{\VSI_MS_Sans_Serif13.0_0_0}&amp;Application" Width="348" X="0" Y="120" 
> />
>             </RadioButtonGroup>
> 
>             <Dialog Id="ServiceSelectionForm" X="50" Y="50" Width="376" 
> Height="287" Title="[ProductName]">
>               <Control Id="SelectRadioGroup" Type="RadioButtonGroup" X="18" 
> Y="60" Width="348" Height="150" Property="ServiceSelection_Property" 
> Text="{\VSI_MS_Sans_Serif13.0_0_0}MsiRadioButtonGroup" TabSkip="no" />
>               <Control Id="CancelButton" Type="PushButton" X="156" Y="261" 
> Width="66" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}Cancel" TabSkip="no" 
> Cancel="yes">
>                 <Publish Event="SpawnDialog" Value="Cancel" />
>               </Control>
>               <Control Id="PreviousButton" Type="PushButton" X="228" Y="261" 
> Width="66" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}&lt; &amp;Back" 
> TabSkip="no">
>                 <Publish Event="NewDialog" Value="EulaForm"></Publish>
>               </Control>
>               <Control Id="NextButton" Type="PushButton" X="300" Y="261" 
> Width="66" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}&amp;Next &gt;" 
> TabSkip="no" Default="yes">
>                 <Publish Event="NewDialog" 
> Value="ConfirmInstallForm"></Publish>
>                 <Publish Event="AddLocal" 
> Value="ServiceFeature">ServiceSelection_Property = "Server"</Publish>
>               </Control>
>             </Dialog>
> 
> The features are setup as follows
>       <Feature Id="DefaultFeature" ConfigurableDirectory="TARGETDIR" 
> Level="1" AllowAdvertise="no">
>         <ComponentRef Id="C_Main.exe" Primary="yes" />
>         <ComponentRef Id="ApplicationShortcut" />
>         <!--<Feature Id="AppFeature" Level="1" AllowAdvertise="no">
>           <ComponentRef Id="C_App" />
>           <Condition Level="1" 
> >ServiceSelection_Property="Application"</Condition>
>         </Feature>-->
>       </Feature>
>       <Feature Id="ServiceFeature" Level="1" AllowAdvertise="no">
>         <!--<Condition Level="1"><![CDATA[ServiceSelection_Property = 
> "Server"]]></Condition>-->
>         <ComponentRef Id="C_Service" />
>       </Feature>
> 
> The issue is that when I click the Next button and Server is selected 
> nothing happens.  Using the log I find Action 14:39:36: 
> ServiceSelectionForm. Dialog created MSI (c) (A4:14) [14:43:11:771]: PROPERTY 
> CHANGE: Modifying ServiceSelection_Property property. Its current value is 
> 'Server'. Its new value: 'Application'.
> MSI (c) (A4:14) [14:55:08:615]: Note: 1: 2727 2:
> 
> I have missed something with the features and that stops it from working.  If 
> I select a different option like Client then the button works and only the 
> main feature is installed which is expected behaviour.
> 
> I would like the next button to select a feature for Local install.
> 
> Thanks for your help.
> Ralph Esslinger
> 
> 
> ----------------------------------------------------------------------
> -------- This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to