[wix-users] "Program file" is replaced by "Program file (x86)"
Carter Young
ecyoung at grandecom.net
Wed May 25 10:06:19 PDT 2016
I think that these 3 links may help:
1. https://technet.microsoft.com/en-us/library/cc749104(v=ws.10).aspx
2.
http://superuser.com/questions/247614/different-path-environment-variable-for-32bit-and-64bit-windows-is-it-possible
3. http://ss64.com/nt/syntax-variables.html <-- See Note 1
As Steven has been trying to point out, you cannot use a 32bit installer
to install to a 64bit location, but as John points out, one can install
a 32 bit version of Office on a 64bit system, which indeed is a bear.
On 05/25/2016 11:06 AM, John Cooper wrote:
> Which I would expect for a 32-bit Office 15.0 on a 64-bit OS. The fun begins when you have to handle the improbable case of both bitnesses of Office 15.0 being installed. :)
>
> --
> John Merryweather Cooper
> Senior Software Engineer | Integration Development Group | Enterprise Notification Service
> Jack Henry & Associates, Inc.® | Lenexa, KS 66214 | Ext: 431050 |JoCooper at jackhenry.com
>
>
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Farrukh Waheed
> Sent: Wednesday, May 25, 2016 7:08 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] "Program file" is replaced by "Program file (x86)"
>
> The e-mail below is from an external source. Please do not open attachments or click links from an unknown or suspicious origin.
>
> And I just found this registry containing the same path:
> HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Common\InstallRoot
>
>
>
> On 25 May 2016 at 17:04, Farrukh Waheed <farrukh1 at gmail.com> wrote:
>
>> On x86 windows, it would be Program Files, while on x64, it would be
>> Program Files (x86).
>> I'm on 64bit Windows 10 and here is the registry on my windows for
>> Word
>>
>> HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Word\Ins
>> tallRoot while registry key
>> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\,
>> doesn't contain InstallRoot.
>>
>> I'm not sure if there is any x64 version of Office (Yeah, I'm not its
>> big fan :p ) , you can define two searches for both locations.
>>
>>
>>
>>
>>
>> On 25 May 2016 at 16:52, Yandex Mail <it-proposition at yandex.com> wrote:
>>
>>> Hi
>>>
>>>
>>>
>>> WiX version: 3.10.3.2917
>>>
>>> Visual Studio version: 2015 Update 2
>>>
>>> .NET version: 3.5
>>>
>>>
>>>
>>> Our program is installed in Windows 10 x64 with MS Word 2013 x86.
>>>
>>> But the base configuration is Windows 8.1 x64 and MS Word 2013 x86.
>>> The windows was updated to version 10.
>>>
>>> This fact is important because after that Word x86 has location
>>> "C:\Program Files\Microsoft Office\root\Office15\". We can see it in
>>> the registry:
>>>
>>> msi-001
>>>
>>>
>>>
>>> Thus, our installer should detect that the user computer has the
>>> installed Word 2013 x86.
>>>
>>> For this we used the standard scenario:
>>>
>>>
>>>
>>> <Property Id="HOSTPATH">
>>>
>>> <RegistrySearch Id="RegSearch_HOSTEXE" Root="HKLM"
>>> Key="SOFTWARE\Microsoft\Office\15.0\Word\InstallRoot" Name="Path"
>>> Type="directory">
>>>
>>> <FileSearch Name="WINWORD.EXE" />
>>>
>>> </RegistrySearch>
>>>
>>> </Property>
>>>
>>> <Condition Message="!(loc.HostConditionMessage)"><![CDATA[Installed
>>> OR HOSTPATH]]></Condition>
>>>
>>>
>>>
>>> And in result this condition does not pass.
>>>
>>> To found the problem I used procmon.exe and found that the installer
>>> looks for WINWORD.EXE in another folder:
>>>
>>> msi-002
>>>
>>> The installer tries to find "C:\Program Files (x86)\Microsoft
>>> Office\root\Office15\" but the registry contains "C:\Program
>>> Files\Microsoft Office\root\Office15\" value.
>>>
>>>
>>>
>>> In result the installer can not find WINWORD.EXE file and the
>>> condition can not pass.
>>>
>>>
>>>
>>>
>>>
>>> ----
>>>
>>> Thanks & Regards
>>>
>>> Leonid Maliutin
>>>
>>>
>>>
>>>
>>>
>>>
>>> ____________________________________________________________________
>>> WiX Toolset Users Mailing List provided by FireGiant
>>> http://www.firegiant.com/
>>>
>>
>>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
>
> NOTICE: This electronic mail message and any files transmitted with it are intended
> exclusively for the individual or entity to which it is addressed. The message,
> together with any attachment, may contain confidential and/or privileged information.
> Any unauthorized review, use, printing, saving, copying, disclosure or distribution
> is strictly prohibited. If you have received this message in error, please
> immediately advise the sender by reply email and delete all copies.
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
>
>
>
More information about the wix-users
mailing list