Look at InstallDirDlg.wxs in the WiX sources. It does exactly what
you're trying to do without any problems.

Why are you trying to re-write this when it already exists in
WiXUIExtension?

Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer
 

-----Original Message-----
From: Younie, Bradford [mailto:bradford.you...@chasepaymentech.com] 
Sent: 28 October 2009 12:54
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Trouble creating an Install Location dialog

I'm trying to create a dialog that only asks for the destination
directory. I have it display the contents of INSTALLDIR, and the Browse
button works fine. The only problem is that when you OK the Browse
dialog and get back to the Destination Folder dialog, the label that
displays the selected path does not update to show the new path. If I
click Next to go to the next dialog, and then hit back, it will show the
new path. So, this seems to be a refresh problem. 
 
Is there an event I can subscribe to that will cause a label to refresh
when the Browse dialog goes away?
 
Here's the dialog's code:
 
      <Dialog Id="DestinationDlg" Width="370" Height="270"
Title="[ProductName] [Setup]" NoMinimize="yes" TrackDiskSpace="yes">
        <Control Id="Browse" Type="PushButton" X="304" Y="200"
Width="56" Height="17" Text="[ButtonText_Browse]">
          <!--<Publish Event="SelectionBrowse"
Value="BrowseDlg">1</Publish>-->
          <Publish Event="SpawnDialog" Value="BrowseDlg">1</Publish>
          <Condition Action="hide">Installed</Condition>
        </Control>
        <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56"
Height="17" Text="[ButtonText_Back]">
          <Publish Event="NewDialog"
Value="MaintenanceTypeDlg"><![CDATA[InstallMode = "Change"]]></Publish>
          <Publish Event="NewDialog"
Value="SetupTypeDlg"><![CDATA[InstallMode = "Custom"]]></Publish>
        </Control>
        <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="[ButtonText_Next]">
          <Publish Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
          <Subscribe Event="SelectionNoItems" Attribute="Enabled" />
        </Control>
        <Control Id="Cancel" Type="PushButton" X="304" Y="243"
Width="56" Height="17" Cancel="yes" Text="[ButtonText_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="[BannerBitmap]" />
        <Control Id="Description" Type="Text" X="25" Y="23" Width="280"
Height="15" Transparent="yes" NoPrefix="yes">
          <Text>Select the way you want features to be installed.</Text>
        </Control>
        <Control Id="Text" Type="Text" X="25" Y="55" Width="320"
Height="20">
          <Text>Click on the icons in the tree below to change the way
features will be installed.</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>{\DlgTitleFont}Custom Setup</Text>
        </Control>
        <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370"
Height="0" />
        <Control Id="Location" Type="Text" X="75" Y="200" Width="215"
Height="20">
          <Text>[INSTALLDIR]</Text>
          <Subscribe Event="EndDialog" Attribute="BrowseDlg" />
          <Condition Action="hide">Installed</Condition>
        </Control>
        <Control Id="LocationLabel" Type="Text" X="25" Y="200"
Width="50" Height="10" Text="Location:">
        </Control>
      </Dialog>
 
 
And the Browse dialog, just in case you need to see it:
 
      <Dialog Id="BrowseDlg" Width="370" Height="270"
Title="[ProductName] [Setup]" NoMinimize="yes">
        <Control Id="PathEdit" Type="PathEdit" X="84" Y="202"
Width="261" Height="18" Property="_BrowseProperty" Indirect="yes" />
        <Control Id="OK" Type="PushButton" X="304" Y="243" Width="56"
Height="17" Default="yes" Text="[ButtonText_OK]">
          <Publish Event="SetTargetPath" Value="INSTALLDIR">1</Publish>
          <Publish Event="EndDialog" Value="Return">1</Publish>
        </Control>
        <Control Id="Cancel" Type="PushButton" X="240" Y="243"
Width="56" Height="17" Cancel="yes" Text="[ButtonText_Cancel]">
          <Publish Event="Reset" Value="0">1</Publish>
          <Publish Event="EndDialog" Value="Return">1</Publish>
        </Control>
        <Control Id="ComboLabel" Type="Text" X="25" Y="58" Width="44"
Height="10" TabSkip="no" Text="&amp;Look in:" />
        <Control Id="DirectoryCombo" Type="DirectoryCombo" X="70" Y="55"
Width="220" Height="80" Property="INSTALLDIR" Indirect="no" Fixed="yes"
Remote="yes">
          <Subscribe Event="IgnoreChange" Attribute="IgnoreChange" />
        </Control>
        <Control Id="Up" Type="PushButton" X="298" Y="55" Width="19"
Height="19" ToolTip="Up One Level" Icon="yes" FixedSize="yes"
IconSize="16" Text="Up">
          <Publish Event="DirectoryListUp" Value="0">1</Publish>
        </Control>
        <Control Id="NewFolder" Type="PushButton" X="325" Y="55"
Width="19" Height="19" ToolTip="Create A New Folder" Icon="yes"
FixedSize="yes" IconSize="16" Text="New">
          <Publish Event="DirectoryListNew" Value="0">1</Publish>
        </Control>
        <Control Id="DirectoryList" Type="DirectoryList" X="25" Y="83"
Width="320" Height="110" Property="INSTALLDIR" Sunken="yes"
Indirect="no" TabSkip="no" />
        <Control Id="PathLabel" Type="Text" X="25" Y="205" Width="59"
Height="10" TabSkip="no" Text="&amp;Folder name:" />
        <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370"
Height="44" TabSkip="no" Text="[BannerBitmap]" />
        <Control Id="Description" Type="Text" X="25" Y="23" Width="280"
Height="15" Transparent="yes" NoPrefix="yes">
          <Text>Browse to the destination folder</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>{\DlgTitleFont}Change current destination folder</Text>
        </Control>
        <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370"
Height="0" />
      </Dialog>

 
 

---
Bradford Younie
Senior Software Engineer
Chase Paymentech Solutions
4 NE Blvd
Salem, NH 03079-1952
Fax: 603-896-813
bradford.you...@chasepaymentech.com

 
----------
Learn more about Chase Paymentech Solutions,LLC payment processing
services at www.chasepaymentech.com.

THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments
are proprietary and confidential information intended only for the use
of the recipient(s) named above.  If you are not the intended recipient,
you may not print, distribute, or copy this message or any attachments.
If you have received this communication in error, please notify the
sender by return e-mail and delete this message and any attachments from
your computer.



------------------------------------------------------------------------
------
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