Thanks Harold, 

I've been trying to get custom actions to work from the 
WixStandardBootstrapperApplication without much luck. When I look in the xsd, 
it doesn't have Control as an option for Page. Additionally, when just trying 
to sub in Control for Button, the built bootstrapper immediately crashes.

Is the example you're using work on the bootstrapper or will it only work when 
customizing the msi? When looking around the source for the 
WixStandardBootstrapperApplication, it looks like the enable/disable is being 
handled explicitly in the code versus the _____State variable trick. My gut is 
telling me this cannot be done without implementing a custom 
bootstrapperapplication.

________________________________________
From: Harold Wood (H10 Capital) [v-wow...@microsoft.com]
Sent: Friday, March 07, 2014 2:40 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Require fields/disable InstallButton in bootstrapper

I use a custom action that gets fired when they click the next button, if there 
is an error it takes me to my error dialog, the next button on that loops me 
back to this dialog so the newly entered value can get validated again.


      <Control Id="NextDlg" Type="PushButton" X="236" Y="243" Width="56" 
Height="17" Default="yes" Text="Next">
        <Publish Event="DoAction" Value="VerifySQLServer">1</Publish>
        <Publish Event="DoAction" Value="VerifySQLServer.Get">1</Publish>
        <!-- if there is a server error redisplay the database screen else go 
to the verify screen -->
        <Publish Event="NewDialog" 
Value="DialogError"><![CDATA[SERVERERROR~="1"]]></Publish>
        <Publish Event="NewDialog" 
Value="DialogVerify"><![CDATA[SERVERERROR~="0"]]></Publish>
      </Control>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to