Using the wix chm and wix tutorial documentation I've come up with the
following wix sources in an attempt to inject a custom dialog into
WixUIExtension provided WixUI_FeatureTree UI sequence.
This compiles fine but when I run the msi I do not see the expected
UserRegistrationDlg displayed between the Welcome and LicenseAgreement dialogs.
Is there some piece of documentation I'm overlooking in terms of what else is
needed to get this additional custom dialog to display as part of the
WixUIExtension provided UI sequences?
Product.wxs
. . .
<UIRef Id="WixUI_FeatureTree" />
<WixVariable Id="WixUILicenseRtf" Value="Resources\License.rtf" />
</Product>
<?include UI\UserRegistrationDlg.wxi ?>
</Wix>
UI\UserRegistrationDlg.wxi
<?xml version="1.0" encoding="utf-8"?>
<Include xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension"
xmlns:sql="http://schemas.microsoft.com/wix/SqlExtension"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Fragment>
<UI Id="WixUI_UserRegistrationDlg">
<DialogRef Id="UserRegistrationDlg" />
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
Value="UserRegistrationDlg">1</Publish>
<Publish Dialog="UserRegistrationDlg" Control="Back"
Event="NewDialog" Value="WelcomeDlg">1</Publish>
<Publish Dialog="UserRegistrationDlg" Control="Next"
Event="NewDialog" Value="LicenseAgreementDlg">1</Publish>
<Publish Dialog="LicenseAgreementDlg" Control="Back"
Event="NewDialog" Value="UserRegistrationDlg">1</Publish>
<!--<Publish Dialog="LicenseAgreementDlg" Control="Next"
Event="NewDialog" Value="CustomizeDlg">LicenseAccepted = "1"</Publish>-->
<Dialog Id="UserRegistrationDlg" Width="370" Height="270"
Title="[ProductName] [Setup]" NoMinimize="yes">
<Control Id="NameLabel" Type="Text" X="45" Y="73" Width="100"
Height="15" TabSkip="no" Text="&User Name:" />
<Control Id="NameEdit" Type="Edit" X="45" Y="85" Width="220"
Height="18" Property="USERNAME" Text="{80}" />
<Control Id="OrganizationLabel" Type="Text" X="45" Y="110"
Width="100" Height="15" TabSkip="no" Text="&Or" />
<Control Id="OrganizationEdit" Type="Edit" X="45" Y="122"
Width="220" Height="18" Property="COMPANYNAME" Text="{80}" />
<Control Id="CDKeyLabel" Type="Text" X="45" Y="147" Width="50"
Height="10" TabSkip="no">
<Text>CD &Key:</Text>
</Control>
<Control Id="CDKeyEdit" Type="MaskedEdit" X="45" Y="159"
Width="250" Height="16" Property="PIDKEY" Text="[PIDTemplate]" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56"
Height="17" Text="&Back">
<Publish Event="NewDialog"
Value="[WixUI_UserRegistrationDlgBack]">1</Publish>
</Control>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="&Next">
<Publish Event="ValidateProductID" Value="0">1</Publish>
<Publish Event="SpawnWaitDialog"
Value="WaitForCostingDlg">CostingComplete = 1</Publish>
<Publish Event="NewDialog"
Value="[WixUI_UserRegistrationDlgNext]">ProductID</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="BannerBitmap" Type="Bitmap" X="0" Y="0"
Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="280"
Height="15" Transparent="yes" NoPrefix="yes">
<Text>Please enter your customer information</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}Customer Information</Text>
</Control>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370"
Height="0" />
</Dialog>
</UI>
</Fragment>
</Include>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users