脚本:判断当前win操作系统版本

优质
小牛编辑
134浏览
2023-12-01
引用脚本的内容:

/*判断当前win操作系统版本 By:Ansifa*/
SetCompressor /SOLID lzma
XPStyle on
OutFile "判断当前win操作系统.EXE"
Name "判断当前win操作系统"
Section
ReadRegStr $1 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" "CurrentVersion"
StrCmp $1 "" +1 +2
ReadRegStr $1 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" "CSDVersion"
StrCmp $1 "4.9" +1 +2
StrCpy $1 "98"
StrCmp $1 "5.0" +1 +2
StrCpy $1 "2000"
StrCmp $1 "5.1" +1 +2
StrCpy $1 "XP"
StrCmp $1 "5.2" +1 +2
StrCpy $1 "2003"
StrCmp $1 "6.0" +1 +2
StrCpy $1 "Vista"
StrCmp $1 "6.1" +1 +2
StrCpy $1 "7"
StrCpy $0 "$1 $0"
MessageBox MB_ICONINFORMATION|MB_OK '系统是:$1;补丁包是:$0'
SectionEnd