As shown below, I have an ALREADY_INSTALLED property which is supposed to be
set before going into the UI, where it is used to hide/show dialog text
dependent on the ALREADY_INSTALLED property.
But looking at the logs, this property doesn't get set until AFTER the
SettingsDialog gets created, so the text is hidden always.
How can I get the FileSearch property to be populated before the dialogs are
created?
Thanks for any help!
Log:
MSI (c) (58:F8) [17:33:33:765]: Note: 1: 2731 2: 0
Action 17:33:34: SettingsDialog. Dialog created <-------- Dialog
created before Property set
MSI (c) (58:F8) [17:33:34:500]: Note: 1: 2731 2: 0
MSI (c) (58:F8) [17:33:40:594]: PROPERTY CHANGE: Adding RUN_APP property. Its
value is '1'.
MSI (c) (58:F8) [17:33:41:235]: PROPERTY CHANGE: Deleting RUN_APP property. Its
current value is '1'.
Action 17:33:42: VerifyReadyDialog. Dialog created
MSI (c) (58:F8) [17:33:42:641]: Note: 1: 2731 2: 0
Action 17:33:43: ProgressDialog. Dialog created
DEBUG: Error 2726: Action not found: WelcomeDlg
The installer has encountered an unexpected error installing this package. This
may indicate a problem with this package. The error code is 2726. The arguments
are: WelcomeDlg, ,
Action ended 17:33:43: WelcomeDlg. Return value 0.
MSI (c) (58:94) [17:33:43:844]: Doing action: FindRelatedProducts
Action 17:33:43: FindRelatedProducts. Searching for related applications
Action start 17:33:43: FindRelatedProducts.
FindRelatedProducts: Found application: {A0AEC9E6-0056-4498-BD90-8EA54B07212D}
MSI (c) (58:94) [17:33:43:844]: PROPERTY CHANGE: Adding UPGRADEFOUND property.
Its value is '{A0AEC9E6-0056-4498-BD90-8EA54B07212D}'.
Action ended 17:33:43: FindRelatedProducts. Return value 1.
MSI (c) (58:94) [17:33:43:844]: Skipping action: PreventDowngrading (condition
is false)
MSI (c) (58:94) [17:33:43:844]: Doing action: AppSearch
Action 17:33:43: AppSearch. Searching for installed applications
Action start 17:33:43: AppSearch.
AppSearch: Property: ALREADY_INSTALLED, Signature: CheckInstalled <------
property finally set
MSI (c) (58:94) [17:33:43:844]: Note: 1: 1322 2:
MSI (c) (58:94) [17:33:43:844]: Note: 1: 1322 2:
MSI (c) (58:94) [17:33:43:844]: PROPERTY CHANGE: Adding ALREADY_INSTALLED
property. Its value is 'C:\Program Files\Company\Software\Server\Tools\app.exe'.
In main server.wxs:
<Property Id="toolsdir" Value="C:\Program Files\Company\Software\Server\Tools"/>
<Property Id="ALREADY_INSTALLED">
<DirectorySearch Id="CheckTOOLSDIR" Path="[toolsdir]" Depth="0">
<FileSearch Id="CheckInstalled" Name="app.exe"/>
</DirectorySearch>
</Property>
In SettingsDialog.wxs:
<Dialog Id="SettingsDialog" Width="370" Height="270"
Title="[ProductName] [Setup]">
<Control Id="Description" Type="Text" X="42" Y="37" Width="268"
Height="14" Transparent="yes" NoPrefix="yes"
Text="The application server has been configured by a
previous">
<Condition Action="hide">NOT ALREADY_INSTALLED</Condition>
<Condition Action="show">ALREADY_INSTALLED</Condition>
</Control>
<Control Id="Description2" Type="Text" X="42" Y="50" Width="268"
Height="13" Transparent="yes" NoPrefix="yes"
Text="installation or has never been configured. Do you want
to re-run the">
<Condition Action="hide">NOT ALREADY_INSTALLED</Condition>
<Condition Action="show">ALREADY_INSTALLED</Condition>
</Control>
<Control Id="Description3" Type="Text" X="42" Y="63" Width="268"
Height="13" Transparent="yes" NoPrefix="yes"
Text="configuration tool during the installation?">
<Condition Action="hide">NOT ALREADY_INSTALLED</Condition>
<Condition Action="show">ALREADY_INSTALLED</Condition>
</Control>
<Control Id="RunMCT" Type="CheckBox" Property="RUN_CONFIG" Text="Run
Configuration Tool" X="60" Y="90" Width="232" Height="17" CheckBoxValue="1"/>
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370"
Height="2" />
<Control Id="Back" Type="PushButton" X="168" Y="243" Width="56"
Height="17" Text="Back"/>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="Next"/>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56"
Height="17" Cancel="yes" Text="Cancel">
<Publish Event="SpawnDialog" Value="CancelDialog">1</Publish>
</Control>
</Dialog>
David Bartmess
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users