如何通过脚本检测64位平台 [英] how to detect 64bit platform by script
本文介绍了如何通过脚本检测64位平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否存在用于检测64个平台的代码,例如
is there code to detect 64 platform e.g.
if X86 then ...
if X64 then ...
推荐答案
是.
使用
if IsWin64 then
// Do sth
else
// Do sth else
还有一个Is64BitInstallMode
功能.实际上,32位设置可以在64位OS上运行.因此,Is64BitInstallMode
表示IsWin64
,但IsWin64
并不表示Is64BitInstallMode
.
There is also a Is64BitInstallMode
function. Indeed, a 32-bit setup can run on a 64-bit OS. Hence, Is64BitInstallMode
implies IsWin64
, but IsWin64
does not imply Is64BitInstallMode
.
这篇关于如何通过脚本检测64位平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文