Dialog execution order

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Dialog execution order

gapearce
I have a next button like this, and it never displays the "MTWebServerConfigDlg" dialog.

<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" TabSkip="no">
     <Publish Event="DoAction" Value="CreateMySQLAccount" Order="1">1</Publish>
     <Publish Event="SpawnDialog" Value="MTMySQLErrorDlg" Order="2">
<![CDATA[SQL_CONFIG_SUCCEEDED <> "1"]]>
</Publish>
     <Publish Event="DoAction" Value="InitializeWebServerSettings" Order="3">
<![CDATA[MT_TRIAL_VERSION = "1"]]>
</Publish>
     <Publish Event="NewDialog" Value="MTWebServerConfigDlg" Order="4">     
<![CDATA[SQL_CONFIG_SUCCEEDED = "1" AND MT_TRIAL_VERSION = "1"]]>
</Publish>
     <Publish Event="NewDialog" Value="MTSMTPConfigDlg" Order="5">           
<![CDATA[SQL_CONFIG_SUCCEEDED = "1" AND MT_TRIAL_VERSION <> "1" AND CONFIGSMTP = "1"]]>
</Publish>
     <Publish Event="NewDialog" Value="InstallDirDlg" Order="6">             
<![CDATA[SQL_CONFIG_SUCCEEDED = "1" AND CONFIGSMTP <> "1"]]>
</Publish>
</Control>
 
My log file shows this:

because I unchecked a checkbox, this appeared earlier:
MSI (c) (B0:DC) [16:14:44:276]: PROPERTY CHANGE: Deleting CONFIGSMTP property. Its current value is '1'.

...

MSI (c) (B0:DC) [16:14:38:996]: Doing action: IsTrialVersion
Action 16:14:38: IsTrialVersion.
Action start 16:14:38: IsTrialVersion.
MSI (c) (B0:50) [16:14:39:017]: Invoking remote custom action. DLL: C:\Users\GAP~1.GRO\AppData\Local\Temp\MSIB572.tmp, Entrypoint: IsTrialVersion
MSI (c) (B0!74) [16:14:40:018]: PROPERTY CHANGE: Adding MT_TRIAL_VERSION property. Its value is '1'.
Action ended 16:14:40: IsTrialVersion. Return value 1.

Action 16:14:47: MTMySQLConfigDlg. Dialog created
MSI (c) (B0:DC) [16:14:50:836]: PROPERTY CHANGE: Adding DATABASE_PASSWORD property. Its value is '**********'.
MSI (c) (B0:DC) [16:14:51:596]: PROPERTY CHANGE: Adding DATABASE_CONFIRM_PASSWORD property. Its value is '**********'.
MSI (c) (B0:DC) [16:14:55:012]: PROPERTY CHANGE: Adding DATABASE_ROOT_PASSWORD property. Its value is '**********'.

MSI (c) (B0:DC) [16:14:55:117]: Doing action: CreateMySQLAccount
Action 16:14:55: CreateMySQLAccount.
Action start 16:14:55: CreateMySQLAccount.
MSI (c) (B0:F8) [16:14:55:140]: Invoking remote custom action. DLL: C:\Users\GAP~1.GRO\AppData\Local\Temp\MSIF469.tmp, Entrypoint: CreateMySQLAccount
MSI (c) (B0!F4) [16:14:55:161]: PROPERTY CHANGE: Modifying SQL_CONFIG_SUCCEEDED property. Its current value is '0'. Its new value: '1'.
MSI (c) (B0!F4) [16:14:55:161]: PROPERTY CHANGE: Deleting ERROR_STRING property. Its current value is 'Remote Administration is now disabled.'.
MSI (c) (B0!F4) [16:14:55:161]: PROPERTY CHANGE: Adding SUCCESS_STRING property. Its value is 'MySQL account configured successfully!'.
Action ended 16:14:55: CreateMySQLAccount. Return value 1.

MSI (c) (B0:DC) [16:14:55:164]: Doing action: InitializeWebServerSettings
Action 16:14:55: InitializeWebServerSettings.
Action start 16:14:55: InitializeWebServerSettings.
MSI (c) (B0:0C) [16:14:55:185]: Invoking remote custom action. DLL: C:\Users\GAP~1.GRO\AppData\Local\Temp\MSIF499.tmp, Entrypoint: InitializeWebServerSettings
MSI (c) (B0!B4) [16:14:58:059]: PROPERTY CHANGE: Adding WEBSERVER_PORT property. Its value is '80'.
MSI (c) (B0!B4) [16:14:59:059]: PROPERTY CHANGE: Adding WEBSERVER_PORTS_SUCCEEDED property. Its value is '1'.
Action ended 16:14:59: InitializeWebServerSettings. Return value 1.

Action 16:14:59: InstallDirDlg. Dialog created
Action 16:15:15: CancelDlg. Dialog created

Property(C): SQL_CONFIG_SUCCEEDED = 1
Property(C): WEBSERVER_PORTS_SUCCEEDED = 1
Property(C): MT_TRIAL_VERSION = 1

**********
Here's what Orca says about it:



Why doesn't the MTWebServerConfigDlg dialog run ?
Reply | Threaded
Open this post in threaded view
|

Re: Dialog execution order

gapearce
I should also mention that the dialog in question will display if I don't un-check the CONFIGSMTP check box, i.e. Property CONFIGSMTP = "1"...
Reply | Threaded
Open this post in threaded view
|

Re: Dialog execution order

Blair Murri-3
In reply to this post by gapearce
If you have more than one NewDialog event that has a true condition, the one
with the highest order number will execute, and the others will be ignored.
You need to make your conditions mutually exclusive.

-----Original Message-----
From: gapearce [mailto:[hidden email]]
Sent: Thursday, August 12, 2010 1:40 PM
To: [hidden email]
Subject: [WiX-users] Dialog execution order


I have a next button like this, and it never displays the
"MTWebServerConfigDlg" dialog.

<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17"
Default="yes" Text="!(loc.WixUINext)" TabSkip="no">
     <Publish Event="DoAction" Value="CreateMySQLAccount"
Order="1">1</Publish>
     <Publish Event="SpawnDialog" Value="MTMySQLErrorDlg"
Order="2"><![CDATA[SQL_CONFIG_SUCCEEDED <> "1"]]></Publish>
     <Publish Event="DoAction" Value="InitializeWebServerSettings"
Order="3"><![CDATA[MT_TRIAL_VERSION = "1"]]></Publish>
     <Publish Event="NewDialog" Value="MTWebServerConfigDlg" Order="4">    
<![CDATA[SQL_CONFIG_SUCCEEDED = "1" AND MT_TRIAL_VERSION = "1"]]></Publish>
     <Publish Event="NewDialog" Value="MTSMTPConfigDlg" Order="5">          
<![CDATA[SQL_CONFIG_SUCCEEDED = "1" AND MT_TRIAL_VERSION <> "1" AND
CONFIGSMTP = "1"]]></Publish>
     <Publish Event="NewDialog" Value="InstallDirDlg" Order="6">            
<![CDATA[SQL_CONFIG_SUCCEEDED = "1" AND CONFIGSMTP <> "1"]]></Publish>
</Control>
 
My log file shows this:

because I unchecked a checkbox, this appeared earlier:
MSI (c) (B0:DC) [16:14:44:276]: PROPERTY CHANGE: Deleting CONFIGSMTP
property. Its current value is '1'.

...

MSI (c) (B0:DC) [16:14:38:996]: Doing action: IsTrialVersion
Action 16:14:38: IsTrialVersion.
Action start 16:14:38: IsTrialVersion.
MSI (c) (B0:50) [16:14:39:017]: Invoking remote custom action. DLL:
C:\Users\GAP~1.GRO\AppData\Local\Temp\MSIB572.tmp, Entrypoint:
IsTrialVersion
MSI (c) (B0!74) [16:14:40:018]: PROPERTY CHANGE: Adding MT_TRIAL_VERSION
property. Its value is '1'.
Action ended 16:14:40: IsTrialVersion. Return value 1.

Action 16:14:47: MTMySQLConfigDlg. Dialog created
MSI (c) (B0:DC) [16:14:50:836]: PROPERTY CHANGE: Adding DATABASE_PASSWORD
property. Its value is '**********'.
MSI (c) (B0:DC) [16:14:51:596]: PROPERTY CHANGE: Adding
DATABASE_CONFIRM_PASSWORD property. Its value is '**********'.
MSI (c) (B0:DC) [16:14:55:012]: PROPERTY CHANGE: Adding
DATABASE_ROOT_PASSWORD property. Its value is '**********'.

MSI (c) (B0:DC) [16:14:55:117]: Doing action: CreateMySQLAccount
Action 16:14:55: CreateMySQLAccount.
Action start 16:14:55: CreateMySQLAccount.
MSI (c) (B0:F8) [16:14:55:140]: Invoking remote custom action. DLL:
C:\Users\GAP~1.GRO\AppData\Local\Temp\MSIF469.tmp, Entrypoint:
CreateMySQLAccount
MSI (c) (B0!F4) [16:14:55:161]: PROPERTY CHANGE: Modifying
SQL_CONFIG_SUCCEEDED property. Its current value is '0'. Its new value: '1'.
MSI (c) (B0!F4) [16:14:55:161]: PROPERTY CHANGE: Deleting ERROR_STRING
property. Its current value is 'Remote Administration is now disabled.'.
MSI (c) (B0!F4) [16:14:55:161]: PROPERTY CHANGE: Adding SUCCESS_STRING
property. Its value is 'MySQL account configured successfully!'.
Action ended 16:14:55: CreateMySQLAccount. Return value 1.

MSI (c) (B0:DC) [16:14:55:164]: Doing action: InitializeWebServerSettings
Action 16:14:55: InitializeWebServerSettings.
Action start 16:14:55: InitializeWebServerSettings.
MSI (c) (B0:0C) [16:14:55:185]: Invoking remote custom action. DLL:
C:\Users\GAP~1.GRO\AppData\Local\Temp\MSIF499.tmp, Entrypoint:
InitializeWebServerSettings
MSI (c) (B0!B4) [16:14:58:059]: PROPERTY CHANGE: Adding WEBSERVER_PORT
property. Its value is '80'.
MSI (c) (B0!B4) [16:14:59:059]: PROPERTY CHANGE: Adding
WEBSERVER_PORTS_SUCCEEDED property. Its value is '1'.
Action ended 16:14:59: InitializeWebServerSettings. Return value 1.

Action 16:14:59: InstallDirDlg. Dialog created
Action 16:15:15: CancelDlg. Dialog created

Property(C): SQL_CONFIG_SUCCEEDED = 1
Property(C): WEBSERVER_PORTS_SUCCEEDED = 1
Property(C): MT_TRIAL_VERSION = 1

**********
Here's what Orca says about it:

http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/file/n5417778/
x.jpg

Why doesn't the MTWebServerConfigDlg dialog run ?

--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Dialog-executi
on-order-tp5417778p5417778.html
Sent from the wix-users mailing list archive at Nabble.com.

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

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


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

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|

Re: Dialog execution order

gapearce
Thanks Blair - That fixed it... it would be cool if your sentence explaining the problem was easily found or otherwise available in the doc...I was scratching my head for a long time over this.
Reply | Threaded
Open this post in threaded view
|

Re: Dialog execution order

Bob Arnson-6
  On 8/13/2010 10:58 AM, gapearce wrote:
> Thanks Blair - That fixed it... it would be cool if your sentence explaining
> the problem was easily found or otherwise available in the doc...I was
> scratching my head for a long time over this.

It is, in the ControlEvent MSI doc.

--
sig://boB
http://joyofsetup.com/


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

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users