Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Program file" is replaced by "Program file (x86)" #5305

Closed
maliutin opened this issue May 23, 2016 · 1 comment
Closed

"Program file" is replaced by "Program file (x86)" #5305

maliutin opened this issue May 23, 2016 · 1 comment
Labels

Comments

@maliutin
Copy link

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.

@robmen
Copy link
Member

robmen commented May 23, 2016

For support, please contact wix-users@lists.wixtoolset.org

@robmen robmen closed this as completed May 23, 2016
@robmen robmen added the support label Jun 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants