cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Roman1
Level 9

Basic-MSI: MsiSetTargetPath

Hello,
I have create an 32-Bit msi setup.
It contains of about 1000 32-Bit files and one 64-Bit file.

If setup runs on x64 machine,
there is one file, which should be copied into (x64)
c:\Program Files\abc\

In component I have put self defined dirproperty
"TARGET64" which takes c:\Program Files\abc\
by custom action.

If I run setup and open MSI-Log, I can see
that the value of TARGET64="c:\Program Files\abc\"
is being changed autom. to TARGET64="c:\Program Files (x86)\abc\"
It is made by Windows Installer I suppose.
I do not wish it, at all!

So, is there any possibility to put this file into ProgramFiles64 ?
I do not want to build another msi-x64 setup for only one file!
Labels (1)
0 Kudos
(1) Reply
Not applicable

Hi, Roman

You can set [ProgramFiles64Folder] as the destination of component that including yours 64-Bit file.

Or you can try the following code:

Disable( WOW64FSREDIRECTION );
TARGET64 = PROGRAMFILES64 ^ "abc";
Enable( WOW64FSREDIRECTION );

BR,
Kevin
0 Kudos