I'm trying to use a custom action in a dialog to validate a PID entered by the
user. The dialog has a maskededit control that is used to get the string. I
have the following sequence defined on the "Next" button to use to validate the
entered data:
<CustomActionRef Id="ValidatePIDAction"/>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17"
Default="yes" Text="!(loc.WixUINext)">
<Publish Event="DoAction" Value="ValidatePIDAction" Order="1">1</Publish>
<Publish Event="NewDialog" Value="InstallDirDlg" Order="2">VALIDATEKEY =
"1"</Publish>
<Publish Event="SpawnDialog" Value="BadPIDCancelDlg"
Order="3"><![CDATA[VALIDATEKEY <> "1"]]></Publish>
</Control>
I looked in Orca at the generated MSI and this is what I have in the
ControlEvents table:
ValidatePIDDlg Cancel SpawnDialog CancelDlg
1 1
ValidatePIDDlg Back NewDialog LicenseAgreementDlg
1
ValidatePIDDlg Next DoAction ValidatePIDAction
1 1
ValidatePIDDlg Next SpawnDialog BadPIDCancelDlg VALIDATEKEY <> "1"
3
ValidatePIDDlg Next NewDialog InstallDirDlg
1
ValidatePIDDlg Next NewDialog InstallDirDlg VALIDATEKEY = "1"
2
The Custom Action is there as well:
ValidatePIDAction 1 ValidatePIDCA ValidatePID
When I run the install, I see the ValidatePIDDlg displayed and when I enter a
value for the PID,
I see the BadPIDCancelDlg displayed.
Looking at the setup log, I don't see my custom action getting called. I have
the CA send messages to the Session log and I don't see them:
Action 14:59:31: ValidatePIDAction.
Action start 14:59:31: ValidatePIDAction.
Action ended 14:59:32: ValidatePIDAction. Return value 1.
Action 14:59:32: BadPIDCancelDlg. Dialog created
Action 14:59:36: CancelDlg. Dialog created
Action ended 14:59:38: WelcomeDlg. Return value 2.
Action 14:59:38: UserExit.
Action start 14:59:38: UserExit.
Action 14:59:38: UserExit. Dialog created
Action ended 14:59:39: UserExit. Return value 2.
Action ended 14:59:39: INSTALL. Return value 2.
Thanks
Oscar
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users