I did find a work around:

<util:RegistrySearch Id="RegistrySearch32" Condition="NOT VersionNT64" 
Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion" 
Value="ProgramFilesDir" Variable="PlatformProgramFilesFolder" />
<util:RegistrySearch Id="RegistrySearch64" Condition="VersionNT64" Root="HKLM" 
Key="SOFTWARE\Microsoft\Windows\CurrentVersion" Value="ProgramFilesDir" 
Variable="PlatformProgramFilesFolder" Win64="yes" />

<Variable Name="InstallFolder" Type="string" 
Value="[PlatformProgramFilesFolder]\ACME\MyApp" />

I think the ideal you be if ProgramFiles64Folder returned ProgramFilesFolder on 
x86 (I think this is how it works in Windows Installer).

Neil


-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: 29 April 2012 08:21
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Burn - Combined x86/x64 package

Nothing in the engine to do that so the BA would have to handle this case.
Unfortunately, there is nothing in wixstdba to handle this case today.
Seems like a bit of a gap given the way ProgramFilesFolder and the 64-bit 
variant works. Feel free to open a bug.

> -----Original Message-----
> From: Neil Sleightholm [mailto:n...@x2systems.com]
> Sent: Dienstag, 24. April 2012 15:01
> To: General toolset. (wix-users@lists.sourceforge.net)
> Subject: [WiX-users] Burn - Combined x86/x64 package
>
> I have created a combined x86 and x64 package by setting the 
> InstallCondition of my MsiPackages to "NOT VersionNT64" or "VersionNT64"
> respectively. This works ok but I can't see how to set the 
> InstallFolder variable so that it is correct for the options dialog in 
> the StdBA (I can set it correctly for the install by just using 2 
> variables but the options dialog references InstallFolder).
>
> Does anyone know how to do this? What I would like is a condition 
> associated with the variable but can't see how to do that.
>
> Thanks
>
> Neil
>
> Neil Sleightholm
> X2 Systems Limited
> n...@x2systems.com<mailto:n...@x2systems.com>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to