惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
量子位
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
雷峰网
雷峰网
I
InfoQ
罗磊的独立博客
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
博客园 - 三生石上(FineUI控件)
The GitHub Blog
The GitHub Blog
K
Kaspersky official blog
P
Privacy & Cybersecurity Law Blog
S
SegmentFault 最新的问题
T
Threat Research - Cisco Blogs
H
Help Net Security
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
CERT Recently Published Vulnerability Notes
WordPress大学
WordPress大学
T
Tenable Blog
T
The Blog of Author Tim Ferriss
C
Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - Franky
A
Arctic Wolf
T
Threatpost
Scott Helme
Scott Helme
C
Cybersecurity and Infrastructure Security Agency CISA
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
The Exploit Database - CXSecurity.com
G
GRAHAM CLULEY
Security Latest
Security Latest
Spread Privacy
Spread Privacy
L
LINUX DO - 热门话题
V
Vulnerabilities – Threatpost
P
Privacy International News Feed
S
Schneier on Security
Latest news
Latest news
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com

博客园 - DingJun

Javascript 继承方法3 Javascript 继承方法2 Javascript 继承方法1 Call web service from excel Cannot load type (加载页面出错) 几个主流的浏览器引擎及判定 防止数据库日志文件增长 配置发布数据库服务器时碰到错误18483 一些有关。NET界面处理与多线程的文章 不可恢复的生成错误 修改dataConfiguration.config文件 SQL Server 使用外部连接 在.NET下利用目录服务操纵本机用户和用户组 System.windows.forms.datagrid控件使用技巧 读取配置文件中的自定义节 区域设置与格式化(1) 默认的 IIS MIME 类型关联 在.NET中使用XPath查找指定元素时遇到的麻烦(以dataConfiguration.config为例) 使用Data access block
在.Net安装项目中如何判断操作系统的版本
DingJun · 2005-08-18 · via 博客园 - DingJun

在ASP.NET Web应用程序做部署时,不仅需要判断IIS的版本,有时还需要判断操作系统的版本,以下步骤可以判断操作系统的版本信息。

限制只能在2000 Server或更高版本的系统上安装,不能在2000 profession上安装。
1,添加一个启动条件。
2,设置Condition属性的值为:VersionNT>=500 And MsiNTProductType=3

参考资料:


Operating System Property Values

The following table displays values for selected operating system properties, including Microsoft Windows Server 2003 family, Windows XP, Windows 2000, Microsoft Windows NT version 4.0, Windows Millennium Edition (Windows Me), Windows 98, and Windows 95. For more information, see Released Versions of Windows Installer.

System Version9X VersionNT WindowsBuild ServicePackLevel
Windows 95 (Gold) 400   950  
Windows 95 + OSR 400      
Windows 95 + OSR2 400      
Windows 95 + OSR2.5 400   1111  
Windows 98 (Gold) 410   1998  
Windows 98 Second Edition 410   2222  
Windows Me 490   3000.1  
Windows NT 4.0 (Gold)   400 1381  
Windows NT 4.0 + Service Pack 1   400 1381 1
Windows NT 4.0 + Service Pack 2   400 1381 2
Windows NT 4.0 + Service Pack 3   400 1381 3
Windows NT 4.0 + Service Pack 4   400 1381 4
Windows NT 4.0 + Service Pack 5   400 1381 5
Windows NT 4.0 + Service Pack 6   400 1381 6
Windows 2000   500 2195  
Windows 2000 + Service Pack 1   500 2195 1
Windows XP   501 2600  
Windows XP + Service Pack 1   501 2600 1
Windows Server 2003 family   502 Greater than 2600  

MsiNTProductType Property

The installer sets the MsiNTProductType property for Windows NT, Windows 2000, and later operating systems. This property indicates the Windows product type.

For operating systems earlier than Windows 2000, the installer sets the following values.

Value Meaning
1 Windows NT work station
2 Windows NT domain controller
3 Windows NT server

For Windows 2000 and later operating systems the installer sets the following values. Note that values are the same as of the wProductType field of the OSVERSIONINFOEX structure.

Value Meaning
1 Windows 2000 Professional and later
2 Windows 2000 domain controller and later
3 Windows 2000 Server and later

Remarks

This property is only available with Windows Installer version 2.0 and later.