I think you just include Properties in square brackets to use them? So: <File ... Name='[WIXUI_SYSTEMSHORTNAME].SSIS.dtproj' ... />
But that seems too easy so I'm probably wrong! -----Original Message----- From: Jamie Thomson [mailto:ja...@jamie-thomson.net] Sent: 07 February 2011 16:29 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Using a <Property> Value inside <File Name=???> Hi folks, WiX newbie here trying to get up to speed on a few things. Google has been a big help so far but am currently drawing a blank so am hoping some folks here can help. I have a custom dialog that prompts for a value called SystemShortName: http://opdatw.blu.livefilestore.com/y1p_QvSKN5WLZW_Brs_SaeoWQh_ikp4WAXJ2Q0OTx0dAENPoknHFGgoildy1D-2RmVnlUFdUNjzT2bmer2peQxAyfA1R6cjzT9y/wix_property_issue.png?psid=1 I use the following code to populate a property called WIXUI_SYSTEMSHORTNAME: <Dialog Id="SystemShortNameDlg" Width="370" Height="270" Title="!(loc.SystemShortNameDlg_Title)"> <!—Lots of superfluous stuff before the important bit...--> <Control Id="SystemShortNameText" Type="Edit" X="20" Y="72" Width="145" Height="18" Property="WIXUI_SYSTEMSHORTNAME" /> </Dialog> Back in my main project file I have declared my property: <Property Id="WIXUI_SYSTEMSHORTNAME" Value="SHORTNAME" /> Now, what I want to do is include the ShortName that the user enters in the name of a file that I deploy. Here is the (working) code that currently deploys that file: <File Id="SsisProjectFile" Name="SSIS.dtproj" DiskId="1" Source="..\SSIS\SSIS.dtproj" /> Now my question. How do I change the <File> element so that the name of the deployed file contains the value inside WIXUI_SYSTEMSHORTNAME (i.e. WIXUI_SYSTEMSHORTNAME.SSIS.dtproj)? In other words, how do I reference the value inside my property? Thanks in advance for any help that anyone can offer. Regards Jamie Thomson ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users