This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Basic-MSI: MsiSetTargetPath
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 10, 2011
08:09 AM
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!
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!
(1) Reply

Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 10, 2011
10:35 AM
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
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
