Thanks, Peter! It solved my problem.

Regards!
 -ofox

----- Original Message -----
> From: "Peter Shirtcliffe" <pshirtcli...@sdl.com>
> To: "General discussion for Windows Installer XML toolset." 
> <wix-users@lists.sourceforge.net>
> Sent: Friday, November 16, 2012 6:14:05 PM
> Subject: Re: [WiX-users] ProgramFiles64Folder and ProgramFilesFolder in wix
> 
> ProgramFilesFolder is a Windows Installer property. It is evaluated
> at
> runtime which requires square brackets around it and that will only
> work
> where the type of the attribute it appears in is "formatted". The
> type of the
> Value attribute of Property is just "string".
> 
> You'll need
> <SetProperty Id="DEST"
> Value="[$(var.PlatformProgramFilesFolder)]sub_dir1\sub_dir2\sub_dir3"
> />
> Instead of Property.
> 
> -----Original Message-----
> From: Kun Shi (ofox) [mailto:s...@vmware.com]
> Sent: 16 November 2012 09:02
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] ProgramFiles64Folder and ProgramFilesFolder in
> wix
> 
> Howdy,
> 
> I met an issue that really drives me crazy. The wix codes are as
> follows, but
> DEST has value of ProgramFilesFoldersub_dir1\sub_dir2\sub_dir3. It
> looks like
> that ProgramFilesFolder doesn't get replaced with real values(i.e.,
> C:\Program Files\). My understanding is ProgramFilesFolder and
> ProgramFiles64Folder are built-in properties. I tried x86 and x64
> build in VS
> 2010 and I'm using a Win8 VM on Mac(does it matter?). Do you see any
> problem
> of my codes? It might be a tiny mistake, but I just don't know about
> it.
> Thanks a lot!
> 
> <?if $(var.Platform) = x64 ?> <!-- ofox: I also tried var.BUILDARCH
> w/o luck
> -->
>   <?define PlatformProgramFilesFolder = 'ProgramFiles64Folder' ?>
>   <?elseif
> $(var.Platform) = x86 ?>
>   <?define PlatformProgramFilesFolder = 'ProgramFilesFolder' ?>
>   <?else?>
>   <?define PlatformfProgramFilesFolder = "unknown"?> <?endif?>
> 
> <?define target_dir =
> "$(var.PlatformProgramFilesFolder)sub_dir1\sub_dir2\sub_dir3" ?> ...
> <Property Id='DEST' Value='$(var.target_dir)'/> ...
> <CopyFile Id="copyFile" FileId="WebClientPackage"Delete="no"
> DestinationProperty="DEST"/>
> 
> -----------------------------------------------------------------------------
> -
> Monitor your physical, virtual and cloud infrastructure from a single
> web
> console. Get in-depth insight into apps, servers, databases, vmware,
> SAP,
> cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> 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.
> 
> 
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases,
> vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to