It should be possible. I've got a fewof dialogs that ask for directories so I can write certain
environment variables. I've included one such dialog file and a screenshot so you can see what it
looks like. I think the important bits are the PathEdit, DirectoryList and DirectoryCombo controls
Rob
Joe Kaplan wrote:
Hi all,
This isn't necessarily a WiX question per say (although I am authoring
in WiX obviously), but I thought I'd give this a shot.
I'm trying to add a dialog to my UI sequence during install that
provides the user the ability to enable a CA to migrate some settings
from an existing text file on the file system to a file installed by the
installer. I was hoping to use the existing Browse dialog that is tied
to the standard feature tree dialog to provide UI to select the file.
However, based on what I've read so far in the MSDN docs, it looks like
the browse dialog is tied to modifying the installable location of a
feature. I don't have a feature per say for this CA, so I don't really
want this. I was hoping to just capture the result of the browse dialog
in a property and pass it to the deferred CA later if a file was selected.
MSI UI = hard. :(
Thanks in advance for any hints.
Joe K.
------------------------------------------------------------------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
<Include>
<UI>
<Dialog Id="GetPSPHWPathDlg" Width="370" Height="270" Title="[ProductName] [Setup]" NoMinimize="yes">
<Control Id="PathEdit" Type="PathEdit" X="84" Y="202" Width="261" Height="18" Property="SCE_PSP_HW_ROOT"/>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="[ButtonText_Next]">
<Publish Event="NewDialog" Value="GetPSPEmuPathDlg"><![CDATA[(InstallMode <> "Repair" AND USE_EMU = 1) OR (InstallMode = "Repair" AND !SCE_PSP_ROOT = 3)]]></Publish>
<Publish Event="NewDialog" Value="VerifyReadyDlg"><![CDATA[InstallMode <> "Repair" AND USE_EMU <> 1]]></Publish>
<Publish Event="NewDialog" Value="VerifyRepairDlg"><![CDATA[InstallMode = "Repair" AND !SCE_PSP_ROOT <> 3]]></Publish>
</Control>
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Cancel="yes" Text="[ButtonText_Back]">
<Publish Event="NewDialog" Value="HWorEmuDlg"><![CDATA[InstallMode <> "Repair"]]></Publish>
<Publish Event="NewDialog" Value="MaintenanceTypeDlg"><![CDATA[InstallMode = "Repair"]]></Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="[ButtonText_Cancel]">
<Publish Event="SpawnDialog" Value="CancelDlg"><![CDATA[1]]></Publish>
</Control>
<Control Id="ComboLabel" Type="Text" X="$(var.GetPSPHWPathDlg_ComboLabel_X)" Y="58" Width="$(var.GetPSPHWPathDlg_ComboLabel_Width)" Height="10" TabSkip="no" Text="$(loc.LookIn)"/>
<Control Id="DirectoryCombo" Type="DirectoryCombo" X="70" Y="55" Width="220" Height="80" Property="SCE_PSP_HW_ROOT" 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"><![CDATA[1]]></Publish>
</Control>
<Control Id="DirectoryList" Type="DirectoryList" X="25" Y="83" Width="320" Height="110" Property="SCE_PSP_HW_ROOT" Sunken="yes" TabSkip="no"/>
<Control Id="PathLabel" Type="Text" X="25" Y="205" Width="59" Height="10" TabSkip="no" Text="$(loc.FolderName)"/>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="374" Height="44" TabSkip="no" Text="[BannerBitmap]"/>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="374" Height="0"/>
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="374" Height="0"/>
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
<Text>$(loc.PleaseIndicateHWRoot)</Text>
</Control>
<Control Id="Title" Type="Text" X="15" Y="6" Width="300" Height="15" Transparent="yes" NoPrefix="yes">
<Text>[DlgTitleFont]$(loc.SonyPSPHWSDK)</Text>
</Control>
</Dialog>
</UI>
</Include>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users