I needed to insert a dialog to ask some questions during installation but
also make use of the existing WIXUI_ADVANCED dialogs.

I found an example and it works great except that the InstallDirDlg doesn't
show for some reason and I can't figure out why.  Here's my UI section
below.  InstallDirDlg appears to be linked correctly but when I click Next
on the license dialog I go straight to my custom dialog and InstallDirDlg is
skipped.

How do I correct this?

<UIRef Id="WixUI_Common" />

    <UI>
      <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
      <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
      <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
      <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes"
/>

      <Property Id="WIXUI_INSTALLDIR" Value="TARGETDIR" />
      <Property Id="ARPNOMODIFY" Value="1" />

      <DialogRef Id="BrowseDlg" />
      <DialogRef Id="DiskCostDlg" />
      <DialogRef Id="ErrorDlg" />
      <DialogRef Id="FatalError" />
      <DialogRef Id="FilesInUse" />
      <DialogRef Id="MsiRMFilesInUse" />
      <DialogRef Id="PrepareDlg" />
      <DialogRef Id="ProgressDlg" />
      <DialogRef Id="ResumeDlg" />
      <DialogRef Id="UserExit" />

      <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog"
Value="Return" Order="999">1</Publish>
      <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
Value="LicenseAgreementDlg">1</Publish>
      <Publish Dialog="LicenseAgreementDlg" Control="Back" Event="NewDialog"
Value="WelcomeDlg">1</Publish>
      <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog"
Value="CustomOptionsDialog">LicenseAccepted = "1"</Publish>

      <Publish Dialog="CustomOptionsDialog" Control="Back" Event="NewDialog"
Value="LicenseAgreementDlg">1</Publish>
      <Publish Dialog="CustomOptionsDialog" Control="Next" Event="NewDialog"
Value="InstallDirDlg" Order="2">ProductID</Publish>

      <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog"
Value="CustomOptionsDialog">1</Publish>
      <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath"
Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
      <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog"
Value="VerifyReadyDlg" Order="2">1</Publish>
      <Publish Dialog="InstallDirDlg" Control="ChangeFolder"
Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
      <Publish Dialog="InstallDirDlg" Control="ChangeFolder"
Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish>
      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
Value="InstallDirDlg" Order="1">NOT Installed</Publish>
      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
Value="MaintenanceTypeDlg" Order="2">Installed</Publish>

      <Publish Dialog="MaintenanceWelcomeDlg" Control="Next"
Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>
      <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton"
Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
      <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton"
Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
      <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog"
Value="MaintenanceWelcomeDlg">1</Publish>

      <RadioButtonGroup Property="ENVIRONMENT">
        <RadioButton Height="10" Text="Production" Value="PROD" Width="348"
X="0" Y="0" />
        <RadioButton Height="10" Text="UAT" Value="UAT" Width="348" X="0"
Y="20" />
        <RadioButton Height="10" Text="SIT" Value="SIT" Width="348" X="0"
Y="40" />
        <RadioButton Height="10" Text="Development" Value="DEV" Width="348"
X="0" Y="60" />
      </RadioButtonGroup>
      <RadioButtonGroup Property="SERVER">
        <RadioButton Height="10" Text="Web Server" Value="WEB" Width="348"
X="0" Y="0" />
        <RadioButton Height="10" Text="Application Server" Value="APP"
Width="348" X="0" Y="20" />
        <RadioButton Height="10" Text="Generic Server (Development
Environment Only)" Value="GEN" Width="348" X="0" Y="40" />
      </RadioButtonGroup>
      <Dialog Id="CustomOptionsDialog" X="50" Y="50" Width="370"
Height="270" Title="[ProductName] [Setup]">
        <Control Id="Next" Type="PushButton" X="180" Y="243" Width="57"
Height="17" Text="&amp;Next &gt;" TabSkip="no" Default="yes">
          <Publish Event="EndDialog"
Value="Return">CustomCheckA_NextArgs=""</Publish>
        </Control>
        <Control Id="StartupCheckbox" Type="CheckBox" X="15" Y="78"
Width="128" Height="12" Property="STARTUP" Text="Automatic Startup"
TabSkip="no"></Control>
        <Control Id="LaunchCheckbox" Type="CheckBox" X="191" Y="78"
Width="207" Height="12" Property="LAUNCH" Text="Start When Install Finishes"
TabSkip="no" />
        <Control Id="ServerRadioButtonGroup" Type="RadioButtonGroup" X="100"
Y="181" Width="201" Height="59" Property="SERVER" TabSkip="no" />
        <Control Id="EnvironmentRadioButtonGroup" Type="RadioButtonGroup"
X="100" Y="98" Width="75" Height="83" Property="ENVIRONMENT" TabSkip="no" />
        <Control Id="Back" Type="PushButton" X="124" Y="243" Width="57"
Height="17" Text="Back" TabSkip="no">
          <Publish Event="NewDialog"
Value="[CustomCheckA_PrevArgs]">CustomCheckA_PrevArgs&lt;&gt;""</Publish>
        </Control>
        <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="57"
Height="17" Cancel="yes" Text="Cancel">
          <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
        </Control>
        <Control Id="BannerText" Type="Text" X="9" Y="9" Width="306"
Height="16" Text="Installation Options" TabSkip="yes" Transparent="yes"
NoPrefix="yes" />
        <Control Id="BodyText" Type="Text" X="8" Y="44" Width="354"
Height="33" Text="Choose the configuration appropriate for this
installation.  Note that for the Development Environment, the Web Server
Configuration below includes the Database Server configuration and the
Database Server choice below is a generic configuration." TabSkip="yes"
NoPrefix="yes" />
        <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370"
Height="0" />
        <Control Id="TopLine" Type="Line" X="8" Y="42" Width="375"
Height="2" />
        <Control Type="Text" Width="58" Height="17" X="15" Y="96"
Id="EnvirText" Text="Environment:"></Control>
        <Control Type="Text" Width="75" Height="17" X="15" Y="179"
Id="TypeText" Text="Configuration:" />
        <Control Type="Bitmap" Width="370" Height="44" X="0" Y="0"
Id="banner" Text="Banner"   />
      </Dialog>
      </UI>
-- 
View this message in context: 
http://n2.nabble.com/Customizing-Dialogs---InstallDirDlg-doesn%27t-show...why-tp1626291p1626291.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to