I have distinct installers for x86 and x64. A preprocessor selects and 
initializes the platform specific ProgramFilesFolder.
 
I can hard code the Manufacturer and the ProductName directories but I would 
much prefer tto use the properties which already exist. .Wxs File is 
dynamically generated to put in the correct Manufacturer and ProductCode 
depending upon branding for different locals and manufacturers. 
 
I could also define a preprocessor variable dynamically while generating the to 
hold current values for Manufacturer and ProductName but that would be 
duplicating logic of defining ProductName and Manufacturer. 
 
Umesh
 


Date: Thu, 18 Nov 2010 03:12:51 -0800
From: ml-node+5751224-465251485-56...@n2.nabble.com
To: umesh_jogle...@hotmail.com
Subject: Re: How to refer WIX properties within .wxs files

Are you building an x86 & x64 MSI because you can't have the same MSI 
install to both the x64 Program Files & the x86 Program Files. 
An x86 MSI on an x64 platform will always install to "Program Files 
(x86)", you can't target x64 specific directories from an x86 MSI & 
MSI's must be platform specific. 

Palbinder Sandher 
Software Deployment & IT Administrator 
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: Umeshj [mailto:[hidden email]] 
Sent: 18 November 2010 07:21 
To: [hidden email] 
Subject: Re: [WiX-users] How to refer WIX properties within .wxs files 


I have a similar problem. However, this solution does not seem to work 
for me. 

I am trying to install an application to 
c:\PlatformSpecificProgramFilesFolder\[Manufacturer]\[ProductName] 

Here is the relevant directory structure 

   <Directory Id="TARGETDIR" Name="SourceDir"> 
      <Directory Id="$(var.PlatformProgramFilesFolder)"> 
        <Directory Id="ManufacturerDir" Name ="[Manufacturer]"> 
                 <Directory Id="INSTALLLOCATION" Name="[ProductName]" > 
                    ... 
                    ... 
                 </Directory> 
        </Directory> 
     </Directory> 
  </Directory> 
    
Since the 'Name' attribute is not a formatted field I have defined 
following custom actions 

  <CustomAction Id="SetManufacturerDirectory" 
Directory="ManufacturerDir" 
Value="[Manufacturer]" /> 
  <CustomAction Id="SetProductNameDirectory" Directory="INSTALLLOCATION" 
Value="[ProductName]" /> 

I have tried to schedule these Before CostFinalize but I get a message 
to schedule it elsewhere as there are other custom actions so sequence 
numbers immediately before or after CostFinalize are not available. I 
therefore scheduled them with explicit sequence number after looking at 
MSI in ORCA. 

I am scheduling these in UI sequence because I need to show the 
directory to the user in the dialog as the features are in the 
configurable directory allowing the user to choose another install 
directory. 
  

<InstallUISequence> 
.... 
  <Custom Action="SetManufacturerDirectory" Sequence="1005"  /> 

  <Custom Action="SetProductNameDirectory" Sequence="1006" /> ... 
  <Show Dialog="WelcomeForm" Sequence="1007">Installed="" AND NOT 
RESUME</Show> ... 
</InstallUISequence> 

However, this does not work and on XP the path resolves to c:\Program 
Files\[Manufacturer]\[ProductName] 

Thanks 

Umesh 





Vishwajit Walke wrote: 

> 
> Thanks Nick. It worked for me !! 
> 
> -Vishwajit 
> 
> -----Original Message----- 
> From: Nick Ramirez [mailto:[hidden email]] 
> Sent: Thursday, September 16, 2010 7:31 PM 
> To: [hidden email] 
> Subject: Re: [WiX-users] How to refer WIX properties within .wxs files 
> 
> 
> Oops. 
> 
> Replace Value="[VirtualDirectoriesdir]INSTALL_SHAREPOINT_PORT" 
> 
> with 
> 
> Value="[VirtualDirectoriesdir][INSTALL_SHAREPOINT_PORT]" 
> -- 
> View this message in context: 
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-r
> efer-WIX-properties-within-wxs-files-tp5537053p5538585.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 
> [hidden email] 
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> READER BEWARE: Unencrypted, unsigned Internet e-mail is inherently 
> insecure. 
> 
> Internet messages may be corrupted, incomplete, misdirected or may 
> incorrectly identify the sender. Therefore, nothing in this message or 

> attachments may be considered legally binding. 
> 
> THIS MESSAGE IS ONLY INTENDED FOR THE USE OF THE INDIVIDUAL OR ENTITY 
> TO WHICH IT IS ADDRESSED AND MAY BE PRIVILEGED. 
> 
> If you are not the intended recipient or their authorized agent, you 
> may not forward or copy this information and must delete or destroy 
> all copies of this message and attachments received. 
> 
> If you have received this communication in error, please notify 
> Matrikon Inc. by telephone at (780) 448-1010 or emailing 
> [hidden email]. 
> 
> ---------------------------------------------------------------------- 
> -------- 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 
> [hidden email] 
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-ref
er-WIX-properties-within-wxs-files-tp5537053p5750657.html 
Sent from the wix-users mailing list archive at Nabble.com. 

------------------------------------------------------------------------ 
------ 
Beautiful is writing same markup. Internet Explorer 9 supports standards 
for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3. 
Spend less time writing and  rewriting code and more time creating great 
experiences on the web. Be a part of the beta today 
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________ 
WiX-users mailing list 
[hidden email] 
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------ 
Beautiful is writing same markup. Internet Explorer 9 supports 
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3. 
Spend less time writing and  rewriting code and more time creating great 
experiences on the web. Be a part of the beta today 
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________ 
WiX-users mailing list 
[hidden email] 
https://lists.sourceforge.net/lists/listinfo/wix-users





View message @ 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-refer-WIX-properties-within-wxs-files-tp5537053p5751224.html
To unsubscribe from How to refer WIX properties within .wxs files, click here.  
                                          
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-refer-WIX-properties-within-wxs-files-tp5537053p5751447.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to