You can't use properties as directory names because the type of the Name
attribute is LongFileNameType, not Formatted (see the Wix help), and property
names are not substituted except in formatted types. Even if you could do it,
it would be a bad idea because it would break the auto component guid
generation algorithm that relies on the path being known at build time.
The solution is to use a pre-processor variable that you create yourself,
e.g. $(var.manufacturer)

-----Original Message-----
From: Marc Beaudry [mailto:mbeau...@matrox.com] 
Sent: 07 February 2013 15:49
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Setting Manufacturer Property to Directory

Hello

 

I am new to wix and just finished the tutorial, I am now experimenting with
things.

 

<Directory Id='TARGETDIR' Name='SourceDir'>

   <Directory Id='ProgramFilesFolder' Name='PFiles'>

      <Directory Id='ManufacturerFolder' Name='SomeLocation'>

         <Directory Id='INSTALLDIR' Name="[Manufacturer]">

 

When I run my MSI I get a literal [Manfacturer] as a folder instead of the
assigned manufacturer name set in the Product tag.

 

I tried [ProductName] and I get the same result.

 

Should this work and if yes what can be the probable causes.  I found several
posts on the user list but I can't find a solution to this.

 

Thanks for the help, and sorry for the basic question

Marc

 

 

 

-----------------------------------------------------------------------------
-
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 and get the
hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to