I'm trying to get wix to validate the input info from a dialog, and I'm running
into errors. The error log is below, with the pertinent sections of the code at
the bottom. Any help would be appreciated... I'm using wix 3.0.5106.0
LOG:
--------------------------------------------------------------
MSI (c) (CC:8C) [13:17:36:670]: Doing action: ValidateWebUI
MSI (c) (CC:8C) [13:17:36:670]: Note: 1: 2205 2: 3: ActionText
Action 13:17:36: ValidateWebUI.
Action start 13:17:36: ValidateWebUI.
MSI (c) (CC:AC) [13:17:36:670]: Cloaking enabled.
MSI (c) (CC:AC) [13:17:36:670]: Attempting to enable all disabled priveleges
before calling Install on Server
MSI (c) (CC:AC) [13:17:36:670]: Connected to service for CA interface.
MSI (c) (CC:A8) [13:17:36:717]: Entering MsiProvideComponentFromDescriptor.
Descriptor: l?Xo(J4eV94uewYBLDH2Program_Files>M5KDYSUnf(HA*L[xeX)y, PathBuf:
FFF348, pcchPathBuf: FFF344, pcchArgsOffset: FFF29C
MSI (c) (CC:A8) [13:17:36:717]: MsiProvideComponentFromDescriptor called for
component {997FA962-E067-11D1-9396-00A0C90F27F9}: returning harcoded
oleaut32.dll value
MSI (c) (CC:A8) [13:17:36:717]: MsiProvideComponentFromDescriptor is returning: 0
Action ended 13:17:36: ValidateWebUI. Return value 3.
DEBUG: Error 2896: Executing action ValidateWebUI failed.
The installer has encountered an unexpected error installing this package. This
may indicate a problem with this package. The error code is 2896. The arguments
are: ValidateWebUI, ,
Action ended 13:17:36: WelcomeDlg. Return value 3.
MSI (c) (CC:DC) [13:17:36:733]: Doing action: FatalError
CODE:
----------------------------------------------------------------
<UI Id="WSOD_FeatureTree">
<Publish Dialog="SettingsDialog" Control="Next" Event="NewDialog"
Value="DisplayPDFDialog">VALIDWEBUIURL AND VALIDWEBSERVICESURL</Publish>
<Publish Dialog="SettingsDialog" Control="Next" Event="NewDialog"
Value="InvalidURLDialog">(NOT VALIDWEBUIURL) OR (NOT
VALIDWEBSERVICESURL)</Publish>
. . .
</UI>
<Dialog Id="SettingsDialog" Width="370" Height="270" Title="Settings">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17"
Default="yes" Text="Next">
<Publish Event="DoAction" Value="ValidateWebUI">1</Publish>
<Publish Event="DoAction" Value="ValidateWebServices">1</Publish>
</Control>
<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>
<CustomAction Id="ValidateWebUI" Script="vbscript" Execute="immediate">
<![CDATA[
Dim ismatch;
Dim url;
url = Session.Property("WEBUIURL");
ismatch = System.Text.RegularExpressions.Regex.IsMatch(url,
"(http|https)://([\w-]+\.)+(/[\w- ./?%&=]*)?");
Session.Property("VALIDWEBUIURL") = ismatch
]]>
</CustomAction>
<CustomAction Id="ValidateWebServices" Script="vbscript" Execute="immediate">
<![CDATA[
Dim ismatch;
Dim url;
url = Session.Property("WEBSERVICESURL");
ismatch = System.Text.RegularExpressions.Regex.IsMatch(url,
"(http|https)://([\w-]+\.)+(/[\w- ./?%&=]*)?");
Session.Property("VALIDWEBSERVICESURL") = ismatch
]]>
</CustomAction>
David Bartmess
Wall Street On Demand
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users