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