I think you're on the right track. The Name attribute on the Directory
element can't use the [PROPERTY_NAME] notation because it isn't a "formatted
string" field. Examples of attributes that are include the Text attribute on
the Control element, the Title on Dialog, and Message on Condition.

If you want to dynamically set the directory at install time, you might
consider using a Type 35 custom action. Here's what you do:

1. Get the port number however you do it and set it in a property (you've
got this part already)
2. Use the CustomAction element with Id, Directory and Value attributes to
set the path of the directory during the Execute sequence

   example:
      <CustomAction 
         Id="SetDirectoryWithPort" 
         Directory="InstallPortDir" 
         Value="[VirtualDirectoriesdir]INSTALL_SHAREPOINT_PORT" />

The Value attribute here is a formatted string field, so you can use the
square bracket notation. 

3. Schedule this to run during the Execute sequence before the InstallFiles
action (or before CreateFolders if you're using it).

<InstallExecuteSequence>
   <Custom Action="SetDirectoryWithPort" Before="InstallFiles" />
</InstallExecuteSequence>

Check your install log to see that everything is being set in the correct
way at the correct time.
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-refer-WIX-properties-within-wxs-files-tp5537053p5538577.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to