This reuqirement is not possible by default based upon the MSI
concept. An Installer can be either an x86 or x64 one. X86 ones
running on x64 always target the WOW-directories on x64 operating
systems (like e.g. C:\Windows\SysWOW64). So I'd recommend to build a
native x86 and a native x64 installer.

There might be some ugly coding possible to deploy to these folders
with MSI (x64 CA copying files from one location to another) but I'd
highly recommend you not to use this approach as this is not best
practice and leads to other problems difficult to handle...



2010/9/2 David P. Romig, Sr. <d...@tcsc.com>:
> I'm installing a print processor.  On an x86 OS the DLL is supposed to
> be copied to \Windows\System32\spool\prtprocs\W32X86.  But on an x64 OS
> the DLL is supposed to be copied to
> \Windows\System32\spool\prtprocs\x64.
>
> I set a property to the proper location:
>    <Property Id="PlatformFolder"
>        Value="$(env.SystemRoot)\System32\spool\prtprocs\x64" />
>
> In ComponentGroup/Component I have:
>    <CopyFile Id="PrintProcessor"
>        DestinationDirectory="PlatformFolder" />
>
> But WiX always redirects the location.
>    MSI (c) (20:F0) [13:25:26:302]: WIN64DUALFOLDERS:
> 'C:\Windows\SysWOW64\' will substitute 20 characters in
> 'C:\Windows\System32\spool\prtprocs\x64\' folder path. (mask argument =
> 0, the folder pair's iSwapAttrib member = 1).
>    MSI (c) (20:F0) [13:25:26:302]: PROPERTY CHANGE: Modifying
> PlatformFolder property. Its current value is
> 'C:\Windows\System32\spool\prtprocs\x64'. Its new value:
> 'C:\Windows\SysWOW64\spool\prtprocs\x64\'.
>
> How can I avoid WiX's folder redirection?
>
> Dave
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to