我怎样才能检查我的X64 Pc上安装了哪个Office Bitness [英] How could I check Which Office Bitness Installed On My X64 Pc

查看:118
本文介绍了我怎样才能检查我的X64 Pc上安装了哪个Office Bitness的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为标题,我需要知道我的x64电脑上安装了哪个办公室位。

我检查了regedit并且没有找到任何提示。



也许我可以找到安装路径,并检查pe头,但它很复杂,我想检查NSIS脚本,所以越容易越好。



有什么提示吗?非常感谢。

as the title,I need to know which office bitness installed on my x64 pc.
I checked regedit and did not find any tip.

Maybe I can find the install path, and check the pe header, but it's Complicated, I want check in NSIS script, so the easier the better.

Any tips? thanks a lot in advance.

推荐答案

如果可执行文件(winword.exe,excel.exe,outlook.exe等)位于%SystemDrive%中\Program Files,你有64位版本。

如果它们位于%SystemDrive%\Program Files(x86)中,你正在处理32位版本。

干杯。





的确,如果改变标准安装路径,这种方法赢了工作。

根据 SO:如何以编程方式检测32位或64位visio版本? [ ^ ],你还有更多的选择:



- 您可以在注册表中检查 HKLM \所以是否存在相应的密钥ftware \ Microsoft &\\Office (64位)或 HKLM \Software \Wow6432Node\Microsoft \ Office (32 -bits)



- 你可以使用 GetBinaryType函数 [ ^ ]

[/ Edit]
If the executable files (winword.exe, excel.exe, outlook.exe, etc.) are located in "%SystemDrive%\Program Files", you have the 64-bits version.
If they are located in "%SystemDrive%\Program Files (x86)", you are dealing with the 32-bits one.
Cheers.


Indeed, if standard installation path is changed, this method won't work.
According to SO: How to programmatically detect 32-bit or 64-bit visio version is installed?[^], you have some more options:

- you can check in the registry whether corresponding keys exist in HKLM\Software\Microsoft\Office (64-bits) or HKLM\Software\Wow6432Node\Microsoft\Office (32-bits)

- you can use the GetBinaryType function[^]
[/Edit]


这篇关于我怎样才能检查我的X64 Pc上安装了哪个Office Bitness的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆