Detect whether current Windows version is 32 bit or 64 bit

前端 未结 23 2872
抹茶落季
抹茶落季 2020-11-28 03:47

Believe it or not, my installer is so old that it doesn\'t have an option to detect the 64-bit version of Windows.

Is there a Windows DLL call or (even better) an en

23条回答
  •  余生分开走
    2020-11-28 04:34

    Interestingly, if I use

    get-wmiobject -class Win32_Environment -filter "Name='PROCESSOR_ARCHITECTURE'"
    

    I get AMD64 in both 32-bit and 64-bit ISE (on Win7 64-bit).

提交回复
热议问题