I've searched through this forum, but was unable to find a related topic.
My package installs additions (they are platform independant) for a built-in Windows application, that is available in both, x86 and x64 boxes. In order to support cross-platform installations, I've decided to use mixed 32/64-bit package. The problem is that I cannot resolve x64 native variables, like [CommonFiles64Folder], [ProgramFiles64Folder] on x86 machines.
For example, I create a new project and specify application path as: [CommonFilesFolder]\CustomFolder
On x86 platforms this path is correctly resolved to C:\Program Files\Common Files\CustomFolder.
On x64 platforms this path is resolved to C:\Program Files (x86)\Common Files\CustomFolder and this is not what I need. My goal is to install the package to native folder (say, C:\Program Files\Common Files\CustomFolder on either x86 or x64 machine).
If I specify [CommonFiles64Folder] or [ProgramFiles64Folder] in the application path, these variables are correctly resolved on x64 machines, but fails on x86 (they are translated to C:\APPDATA, because they doesn't exist on x86 machines).
The question sounds like this: is there a way to specify application folder depending on machine type? Say, map [APPDIR] to [CommonFilesFolder] on x86 machines and [CommonFiles64Folder] on x64?
thanks in advance!
FOLLOW US
Get the latest news in Application Packaging