The FileName column in the File Table isn't of Formatted type so that's
not likely to work -> http://msdn.microsoft.com/library/aa368596.aspx

No harm in trying though.

If that doesn't work I think the only way to do it properly would be to
externalise your UI from Windows Installer & then modify the File table
in your MSI after you get the value from the user but before you launch
the MSI. There are hack jobs you could use to achieve a similar result
without that level of effort but as I prefer not to encourage that type
of development where possible, I'll leave it to Jamie to figure out or
someone else to give pointers.

Palbinder Sandher 
Software Deployment Engineer
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-----Original Message-----
From: Thom Leigh [mailto:t...@mondago.com] 
Sent: 07 February 2011 17:02
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Using a <Property> Value inside <File Name=???>

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_ikp4WAXJ2
Q0OTx0dAENPoknHFGgoildy1D-2RmVnlUFdUNjzT2bmer2peQxAyfA1R6cjzT9y/wix_prop
erty_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



------------------------------------------------------------------------------
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

Reply via email to