Hi,

If you are using a wix project in Visual Studio, add a reference to the WIXUI 
dll and add the code in. below is a sample that adds a custom dialog called 
ServiceIdentityDlg.

    <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="[SET INSTALLLOCATION HERE]" />
      <Property Id="ARPNOMODIFY" Value="1" />
      <Property Id="WixUI_Mode" Value="FeatureTree" />
      <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="InstallDirDlg">1</Publish>
      <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" 
Value="WelcomeDlg">1</Publish>
      <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" 
Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
      <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" 
Value="ServiceIdentityDlg" 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="ServiceIdentityDlg" Control="Back" Event="NewDialog" 
Value="InstallDirDlg" Order="1">1</Publish>
      <Publish Dialog="ServiceIdentityDlg" Control="Next" Event="NewDialog" 
Value="CustomizeDlg" Order="2">1</Publish>
      <Publish Dialog="CustomizeDlg" Control="Back" Event="NewDialog" 
Value="ServiceIdentityDlg" Order="1">Installed</Publish>
      <Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" 
Value="VerifyReadyDlg">1</Publish>
      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" 
Value="ServiceIdentityDlg" 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>
      <Dialog Id="ServiceIdentityDlg" Width="370" Height="270" 
Title="[ProductName] Service Account">
        <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" 
Transparent="yes" NoPrefix="yes" Text="{\WixUI_Font_Title}Service Account 
Information" />
        <Control Id="Description" Type="Text" X="25" Y="23" Width="280" 
Height="24" Transparent="yes" NoPrefix="yes" Text="Enter the text" />
        <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="3" Width="370" 
Height="49" TabSkip="no" Text="!(loc.InstallDirDlgBannerBitmap)" />
        <Control Id="BannerLine" Type="Line" X="0" Y="52" Width="370" 
Height="2" />
        <Control Id="UserNameLabel" Type="Text" X="20" Y="60" Width="290" 
Height="13" Text="text" />
        <Control Id="UserName" Type="Edit" X="20" Y="72" Width="320" 
Height="15" Property="USERNAME" Text="47" />
        <Control Id="PasswordLabel" Type="Text" X="20" Y="93" Width="290" 
Height="13" Text="Password:" />
        <Control Id="Password" Type="Edit" Password="yes" X="20" Y="105" 
Width="320" Height="15" Property="PASSWORD" Text="{53}" />
        <Control Id="DomainLabel" Type="Text" X="20" Y="126" Width="290" 
Height="13" Text="Domain:" />
        <Control Id="Domain" Type="Edit" X="20" Y="139" Width="320" Height="15" 
Property="DOMAIN" />
        <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" 
Height="0" />
        <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" 
Height="17" Default="yes" Text="Next" />
        <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" 
Height="17" Text="Back" />
        <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>
      </Dialog>
    </UI>


Hope this helps 
Regards


-----Original Message-----
From: danimian [mailto:miand...@gmail.com] 
Sent: 21 October 2009 10:34
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to create window before exit dialog


Hello,
how can i create a window before ExitDialog window?
I want to show my own Dialog window (MyDlg) before ExitDialog window.
I am trying this but it is not functioning.
<Publish Dialog="SetupTypeDlg" Control="Next" Event="NewDialog"
Value="MyDlg">1</Publish>
I think, i am missing the right name of Dialog and Control.
How to accomplish it?

Thanks in advance and Best Regards
Adnan
-- 
View this message in context: 
http://n2.nabble.com/How-to-create-window-before-exit-dialog-tp3864113p3864113.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to