Trouble creating an Install Location dialog

4 messages Options
Embed this post
Permalink
Younie, Bradford

Trouble creating an Install Location dialog

Reply Threaded More More options
Print post
Permalink
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="&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="&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
[hidden email]

 
----------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Pally Sandher

Re: Trouble creating an Install Location dialog

Reply Threaded More More options
Print post
Permalink
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:[hidden email]]
Sent: 28 October 2009 12:54
To: [hidden email]
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="&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="&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
[hidden email]

 
----------
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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Younie, Bradford

Trouble creating an Install Location dialog

Reply Threaded More More options
Print post
Permalink
In reply to this post by Younie, Bradford
> Why are you trying to re-write this when it already exists in
> WiXUIExtension?

First, I have to say that I'm fairly new to wix. That being said, here's
my situation:

I have my own custom dialog sequence. I have my own WelcomeDlg, which
has its own banner bitmap. It currently goes to a custom SetupTypeDlg
that has choices different than the default. And then I have other
dialogs that are pretty standard (except with my own banner bitmap).

I need to insert an InstallDlg into my custom sequence, without using
the canned sequence. It seems that the only way to do that is to take
the InstallDlg.wxs from the wix source, rename it, and then work it into
my UI source. This is fine, but now that I'm linking with
WixUIExtension.dll, I have to rename some of my custom dialogs and
remove duplicate properties and so on. I'm doing that now.

If there's an easier, or more standard option, I'd love to hear it.


---
Bradford Younie

----------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
saschabeaumont

Re: Trouble creating an Install Location dialog

Reply Threaded More More options
Print post
Permalink
You should be able to take a WixUI sequence (e.g.
http://wix.cvs.sourceforge.net/viewvc/*checkout*/wix/wix/src/ext/UIExtension/wixlib/WixUI_Mondo.wxs?revision=1.6)

and use that as a base. Most of the various WixUI sequences use the
same dialogs, just referencing the individual dialogs as needed and
using different Publish elements.

For my setup, I started with WixUI_Installdir, renamed it, added a
couple of custom dialogs, added and changed some Publish elements and
that was it.

You should be able to reference InstallDlg, without having to
copy/rename it - the dialogs and dialog sets are pretty flexible,
check out http://wix.sourceforge.net/manual-wix3/WixUI_customizations.htm
for some more information about adding custom dialogs to the built in
sets.

Sascha

On Thu, Oct 29, 2009 at 1:39 AM, Younie, Bradford
<[hidden email]> wrote:

>> Why are you trying to re-write this when it already exists in
>> WiXUIExtension?
>
> First, I have to say that I'm fairly new to wix. That being said, here's
> my situation:
>
> I have my own custom dialog sequence. I have my own WelcomeDlg, which
> has its own banner bitmap. It currently goes to a custom SetupTypeDlg
> that has choices different than the default. And then I have other
> dialogs that are pretty standard (except with my own banner bitmap).
>
> I need to insert an InstallDlg into my custom sequence, without using
> the canned sequence. It seems that the only way to do that is to take
> the InstallDlg.wxs from the wix source, rename it, and then work it into
> my UI source. This is fine, but now that I'm linking with
> WixUIExtension.dll, I have to rename some of my custom dialogs and
> remove duplicate properties and so on. I'm doing that now.
>
> If there's an easier, or more standard option, I'd love to hear it.
>
>
> ---
> Bradford Younie
>
> ----------
> 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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users