I have an msi with 2 custom dialogs in it.  The first one has a single 
edit that the user will enter a registration code in. The next button 
has a Custom Action called ValidateRegCode that calls to a helper dll to 
validate the users entry.  If the user has entered a valid registration 
code the dll set the property REGISTRATIONCODEVALID to 'true'...if the 
code is not valid it sets REGISTRATIONCODEVALID to 'false'. Depending on 
the value of REGISTRATIONCODEVALID I want to go to either my other 
custom dialog straight to the VeriyReady dialog.

This all seems to work fine except that I have to click on the next 
button twice to move the the next dialog???

The code for my dialog looks like this:

<Dialog Id="RegistrationCodeDlg" Width="370" Height="270" 
Title="[ProductName] [Setup]" NoMinimize="yes">
    <Control Id="RegCodeLabel" Type="Text" X="45" Y="73" Width="220" 
Height="15" TabSkip="no" Text="Registration Code:" />
    <Control Id="RegCodeEdit" Type="Edit" X="45" Y="85" Width="220" 
Height="18" Property="REGISTRATIONCODE" Text="{80}" />
    <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" 
Height="17" Text="&amp;Back">
        <Publish Event="NewDialog" 
Value="[RegistrationCodeDlg_Back]">1</Publish>
    </Control>
    <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" 
Height="17" Default="yes" Text="&amp;Next">
        <Publish Event='DoAction' Value='ValidateRegCode'>1</Publish>
        <Publish Event="NewDialog" 
Value="[RegistrationCodeDlg_FALSE]">REGISTRATIONCODEVALID="false"</Publish>
        <Publish Event="NewDialog" 
Value="[RegistrationCodeDlg_TRUE]">REGISTRATIONCODEVALID="true"</Publish>
    </Control>
    <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" 
Height="17" Cancel="yes" Text="Cancel">
        <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
    </Control>
    <Control Id="Description" Type="Text" NoWrap="no" X="25" Y="23" 
Width="280" Height="30" Transparent="yes" NoPrefix="yes">
        <Text>Please enter your registration code. </Text>
    </Control>
    <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" 
Height="0" />
    <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" 
Transparent="yes" NoPrefix="yes">
        <Text>{\WixUI_Font_Title}Registration Code</Text>
    </Control>
    <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" 
Height="0" />
 </Dialog>

I know that the dll is being called properly as I can see it in the 
install log file and I can write out to file in the dll when it gets called.

Any thoughts or ideas would be greatly appreciated.

Thanx
Chuck



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to