-----Original Message----- From: Stephen Tunney Sent: Saturday, February 14, 2009 8:56 AM To: 'chad.mi...@gmail.com'; '-us...@lists.sourceforge.net' Subject: Fw: [WiX-users] Custom WiX Dialog Issues->Getting folder
Hey Chad, This is close to what I was trying to get at. I'm very green in Wix, only the basics are in my toolbet at the moment :( The folder I want the user to chose could be anywhere. Network drive, ramdrive, etc. It might not have any relationship whatsoever to the INSTALLDIR where the product will be placed. That being said, I *thought* I had it all understood in my head, and that simply setting the _BrowseProperty value to my own custom property (as the example shows, "DataStoragePath" is the name of my property). It does not appear to be populating at all. So when I click on the Browse... button on my specialized form, and click OK on the BrowseDlg, my Text control on my specialized form is not being updated appropriately. Nor is the property (DataStoragePath) being updated at all in preparation for its use in my CustomAction that is scheduled for execution after installing of my actual files. Sorry for not being more clear in my original post. I do appreciate the assistance. Regards, Stephen Tunney ------------------------------ Message: 4 Date: Fri, 13 Feb 2009 14:18:13 -0500 From: "Stephen Tunney" <steve.tun...@patterndiscovery.com> Subject: [WiX-users] Custom WiX Dialog Issues->Getting folder selected from BrowseDlg To: <wix-users@lists.sourceforge.net> Message-ID: <dd1d698f7777f64db48816bde190f04a10f...@ararat.headquarters.patterndisco very.com> Content-Type: text/plain; charset="us-ascii" Hello all, I am trying to get back the value from the BrowseDlg (standard one in the wixui) to do the following: 1) Display in a Text control 2) Be used in a custom action at the end of the installation process (After="StartServices") Here is my custom dialog, I already have it in the sequence, and that part is working well, I just can't get the value back. Do I need to make my own custom BrowseDlg with new event names or something? Many thanks, Stephen <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <!--<Property Id="DataStoragePath" Value="C:\" />--> <Property Id="_BrowseProperty" Value="DataStoragePath" /> <UI Id="WixUI_SelectDataStorageFolder"> <DialogRef Id="PDEBrowseDlg"/> <Dialog Id="SelectDataStorageFolderDlg" Width="370" Height="270" Title="[ProductName] [Setup]" NoMinimize="yes"> <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner"/> <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes"> <Text>{\WixUI_Font_Title}Data Storage Folder</Text> </Control> <Control Id="Description" Type="Text" X="25" Y="23" Width="150" Height="15" Transparent="yes" NoPrefix="yes"> <Text>Select a folder to store all working data</Text> </Control> <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" /> <Control Id="LocationLabel" Type="Text" X="25" Y="72" Width="65" Height="10" Text="!(loc.CustomizeDlgLocationLabel)"> <Condition Action="hide">Installed</Condition> </Control> <Control Id="Location" Type="Text" X="90" Y="72" Width="200" Height="20"> <Subscribe Event="SelectionPath" Attribute="Text" /> <Subscribe Event="SelectionPathOn" Attribute="Visible" /> <Condition Action="hide">Installed</Condition> </Control> <Control Id="Browse" Type="PushButton" X="291" Y="72" Width="66" Height="17" Text="!(loc.CustomizeDlgBrowse)"> <Publish Event="SpawnDialog" Value="BrowseDlg">1</Publish> <Condition Action="hide">Installed</Condition> <Condition Action="disable">Installed</Condition> </Control> <Control Id="BottomLine" Type="Line" X="0" Y="235" Width="370" Height="0" /> <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&Back"> <Publish Event="Reset" Value="0">1</Publish> <Publish Event="NewDialog" Value="[WixUI_SelectDataSourceFolderDlg_Back]">1</Publish> </Control> <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="&Next"> <Publish Event="NewDialog" Value="[WixUI_SelectDataSourceFolderDlg_Next]">ProductID</Publish> </Control> <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="53" Height="17" Cancel="yes" Text="Cancel"> <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish> </Control> </Dialog> </UI> </Fragment> </Wix> ------------------------------ Message: 5 Date: Fri, 13 Feb 2009 12:12:26 -0800 (PST) From: cemiles <chad.mi...@gmail.com> Subject: Re: [WiX-users] Custom WiX Dialog Issues->Getting folder selected from BrowseDlg To: wix-users@lists.sourceforge.net Message-ID: <1234555946446-2323550.p...@n2.nabble.com> Content-Type: text/plain; charset=us-ascii I think I know what you're getting at here. Say you click on the Browse button and change the path, you want that path to show up in another dialog later on in the UI sequence? If that is the case, I found something kind of nifty. <Publish Dialog="CustomizeDlg" Control="Next" Order="3" Property="WixUI_BrowseTracePath" Value="[MsiSelectionTreeSelectedPath][PRODUCTFOLDER]\Logs"> The way it works is, in the CustomizeDlg I set the INSTALLDIR after being redirected to the BrowseDlg. [MsiSelectionTreeSelectedPath] holds that value (I've never seen this property before, but noticed it getting set to what I wanted when parsing through some logs from my install), then I appended some stuff onto the end of the path. So, I wanted to use that new path in a tracing dialog I set up that makes use of the Property "WixUI_BrowseTracePath". I believe you can do the same thing w/ the property you want set in your dialog. Hope this can help you. Stephen Tunney wrote: > > Hello all, > > I am trying to get back the value from the BrowseDlg (standard one in > the wixui) to do the following: > > 1) Display in a Text control > 2) Be used in a custom action at the end of the installation process > (After="StartServices") > > Here is my custom dialog, I already have it in the sequence, and that > part is working well, I just can't get the value back. Do I need to > make my own custom BrowseDlg with new event names or something? > > Many thanks, > Stephen > > <?xml version="1.0" encoding="UTF-8"?> > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> > <Fragment> > <!--<Property Id="DataStoragePath" Value="C:\" />--> > <Property Id="_BrowseProperty" Value="DataStoragePath" > /> > <UI Id="WixUI_SelectDataStorageFolder"> > <DialogRef Id="PDEBrowseDlg"/> > <Dialog Id="SelectDataStorageFolderDlg" > Width="370" Height="270" Title="[ProductName] [Setup]" NoMinimize="yes"> > <Control Id="BannerBitmap" Type="Bitmap" > X="0" Y="0" Width="370" Height="44" TabSkip="no" > Text="WixUI_Bmp_Banner"/> > > <Control Id="Title" Type="Text" X="15" > Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes"> > <Text>{\WixUI_Font_Title}Data > Storage Folder</Text> > </Control> > > <Control Id="Description" Type="Text" > X="25" Y="23" Width="150" Height="15" Transparent="yes" NoPrefix="yes"> > <Text>Select a folder to store > all working data</Text> > </Control> > > <Control Id="BannerLine" Type="Line" > X="0" Y="44" Width="370" Height="0" /> > > <Control Id="LocationLabel" Type="Text" > X="25" Y="72" Width="65" Height="10" > Text="!(loc.CustomizeDlgLocationLabel)"> > <Condition > Action="hide">Installed</Condition> > </Control> > > <Control Id="Location" Type="Text" > X="90" Y="72" Width="200" Height="20"> > <Subscribe Event="SelectionPath" > Attribute="Text" /> > <Subscribe > Event="SelectionPathOn" Attribute="Visible" /> > <Condition > Action="hide">Installed</Condition> > </Control> > > <Control Id="Browse" Type="PushButton" > X="291" Y="72" Width="66" Height="17" Text="!(loc.CustomizeDlgBrowse)"> > <Publish Event="SpawnDialog" > Value="BrowseDlg">1</Publish> > <Condition > Action="hide">Installed</Condition> > <Condition > Action="disable">Installed</Condition> > </Control> > > <Control Id="BottomLine" Type="Line" > X="0" Y="235" Width="370" Height="0" /> > > <Control Id="Back" Type="PushButton" > X="180" Y="243" Width="56" Height="17" Text="&Back"> > <Publish Event="Reset" > Value="0">1</Publish> > <Publish Event="NewDialog" > Value="[WixUI_SelectDataSourceFolderDlg_Back]">1</Publish> > </Control> > <Control Id="Next" Type="PushButton" > X="236" Y="243" Width="56" Height="17" Default="yes" Text="&Next"> > <Publish Event="NewDialog" > Value="[WixUI_SelectDataSourceFolderDlg_Next]">ProductID</Publish> > </Control> > <Control Id="Cancel" Type="PushButton" > X="304" Y="243" Width="53" Height="17" Cancel="yes" Text="Cancel"> > <Publish Event="SpawnDialog" > Value="CancelDlg">1</Publish> > </Control> > </Dialog> > </UI> > </Fragment> > </Wix> > > ------------------------------------------------------------------------ ------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://n2.nabble.com/Custom-WiX-Dialog-Issues-%3EGetting-folder-selected -from-BrowseDlg-tp2323266p2323550.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------ ------------------------------------------------------------------------ ------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users End of WiX-users Digest, Vol 33, Issue 77 ***************************************** ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users