系统相关
首页 > 系统相关> > [Inno Setup] 区分Windows版本的一个例子

[Inno Setup] 区分Windows版本的一个例子

作者:互联网

Windows 8.1 和 Windows Server 2012 R2, 大小版本号是相同的,都是6.3,如何区分

 

调用 GetWindowsVersionEx,获取 TWindowsVersion 结构体,其中 ProductType 是 VER_NT_SERVER 的是 Windows Server 2012 R2.

 

The ProductType field can be one of the following values:

  VER_NT_WORKSTATION
  VER_NT_DOMAIN_CONTROLLER
  VER_NT_SERVER

It can also be zero if the product type could not be determined (unlikely). VER_NT_WORKSTATION indicates a non-server edition of Windows (e.g. Workstation, Professional, or Home).

标签:WORKSTATION,VER,R2,Windows,Setup,ProductType,Inno,NT
来源: https://www.cnblogs.com/liujx2019/p/13035572.html