The Name attribute of the Directory element is not of Formatted type 
(http://msdn.microsoft.com/en-us/library/aa368609(VS.85).aspx 
<http://msdn.microsoft.com/en-us/library/aa368609(VS.85).aspx> ). I think you 
should use the type 35 (set a directory) custom action to accomplish what you 
want: http://msdn.microsoft.com/en-us/library/aa368093(VS.85).aspx 
<http://msdn.microsoft.com/en-us/library/aa368093(VS.85).aspx> 
 
Hope this helps.
 
-- Yan

________________________________

From: Jirong Hu [mailto:jirong...@gov.ab.ca]
Sent: Tue 7/21/2009 20:20
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] How to use the value picked from a ComboBox?



Hi

The CustomAction will set (a list of values) to a ComboBox named TARGETWEBCOMBO 
in a Dialog. Then I want to use the (single) value the installer has picked in 
that ComboBox as the install directory.

Using the code below, I got this C:\Inetpub\wwwroot\[TARGETWEBCOMBO]\ in the 
next dialog. What's wrong?

---------------- Wix code --------

                                <Directory Id="TARGETDIR" Name="SourceDir">
                                                <Directory Id="IISMain" 
Name="Inetpub">
                                                                <Directory 
Id="WWWMain" Name="wwwroot">
                                                                                
<Directory Id="SFS" Name="[TARGETWEBCOMBO]">
                                                                                
                <Component Id="GetSitesComp" 
Guid="4E448681-4A71-4c10-89EB-F09F4521171E">
                                                                                
                                <File Id="DisplaySitesFile" 
Name="DisplaySites.vbs" Source=".\DisplaySites.vbs" DiskId="1"/>
                                                                                
                </Component>
                                                                                
</Directory>
                                                                </Directory>
                                                </Directory>
                                </Directory>

                                <Binary Id="DisplaySitesBin" 
SourceFile="C:\Dev\DisplaySite\DisplaySites.vbs" />
                                <CustomAction Id="caDisplayWebSites" 
BinaryKey="DisplaySitesBin" VBScriptCall="GetSites" Execute="immediate" 
Return="check" />

                                <InstallUISequence>
                                                <Custom 
Action="caDisplayWebSites" Before="PrepareDlg">Not Installed</Custom>
                                </InstallUISequence>

                                <Feature Id="Complete" Level="1" Title="SFS" 
ConfigurableDirectory="SFS">
                                                <ComponentRef 
Id="GetSitesComp"/>
                                </Feature>

                                <Property Id="WIXUI_INSTALLDIR">SFS</Property>
                                <UIRef Id="WixUI_InstallDir_SFS" />
                                <UIRef Id="WixUI_ErrorProgressText" />

                </Product>
</Wix>

Thanks
Jirong Hu
Build Master
780-644-5488


This communication is intended for the use of the recipient to which it is 
addressed, and may contain confidential, personal, and or privileged 
information. Please contact us immediately if you are not the intended 
recipient of this communication, and do not copy, distribute, or take action 
relying on it. Any communication received in error, or subsequent reply, should 
be deleted or destroyed.
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to