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