欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

Wix判断操作系统

程序员文章站 2023-02-08 13:35:17
version9x = 400
<condition message='windows 95'>version9x = 400</condition>
<condition message='windows 95 osr2.5'>version9x = 400 and windowsbuild = 1111</condition>
<condition message='windows 98'>version9x = 410</condition>
<condition message='windows 98 se'>version9x = 410 and windowsbuild = 2222</condition>
<condition message='windows me'>version9x = 490</condition>
<condition message='windows nt4'>versionnt = 400</condition>
<condition message='windows nt4 spn'>versionnt = 400 and servicepacklevel = n</condition>
<condition message='windows 2000'>versionnt = 500</condition>
<condition message='windows 2000 spn'>versionnt = 500 and servicepacklevel = n</condition>
<condition message='windows xp'>versionnt = 501</condition>
<condition message='windows xp spn'>versionnt = 501 and servicepacklevel = n</condition>
<condition message='windows xp home spn'>versionnt = 501 and msintsuitepersonal and servicepacklevel = n</condition>
<condition message='windows server 2003'>versionnt = 502</condition>
<condition message='windows vista'>versionnt = 600</condition>
<condition message='windows vista sp1'>versionnt = 600 and servicepacklevel = 1</condition>
<condition message='windows server 2008'>versionnt = 600 and msintproducttype = 3</condition>
<condition message='windows 7'>versionnt = 601</condition>
<condition message='windows 8'>versionnt = 602</condition>