SSL
Posts: 179
Joined: 2014-01-05
|
Have created a mixed install wix setup project, that installs per user or per machine, the 1 issue I have is the installer always points to x86 program files, when I select per machine install, can I change this to x64 program files.
I have set Platform="x64" in Product.wxs, but this makes no difference. |
|
Andrei Smolin
Add-in Express team
Posts: 19138
Joined: 2006-05-11
|
Hello Tom,
When the installer requests the underlying Microsoft Installer API for the path to Program Files, the x86 or x64 variant of Program Files is returned depending on the bitness of the installer. In your case, the installer bitness is strictly x86; whence you get Program Files (x86) on 64bit machines. This is by design from Add-in Express. This allows using the same installer on 32bit and 64bit machines.
Also note that your add-in should be built for the Any CPU platform as this allows your add-in to be loaded in Office 32bit and 64bit.
Andrei Smolin
Add-in Express Team Leader |
|
SSL
Posts: 179
Joined: 2014-01-05
|
Hi Andrei,
Yep, I understand.
I also tried a per machine wix project, with a target patform of x64, which allowed to to target Program Files Director, rather then Program Files (x86).
So I thought the mixed install would let me do the same.
My project has always been AnyCPU. |
|
Andrei Smolin
Add-in Express team
Posts: 19138
Joined: 2006-05-11
|
Hello Tom,
Now I see. You need to set the Platform attribute of the Package element to "x64" and also set the attribute Win64="yes" on the RegistrySearch which sets the PROGRAMFILES_DIRPATH property.
Andrei Smolin
Add-in Express Team Leader |
|