最新消息:

判断当前win操作系统,系统版本,win7系统

nsis 永恒心锁 1507浏览 0评论
SetCompressor /SOLID lzma
XPStyle on
OutFile "判断当前win操作系统.EXE"
Name "判断当前win操作系统"
Section
ReadRegStr $1 HKLM "SOFTWAREMicrosoftWindows NTCurrentVersion" "CurrentVersion"
StrCmp $1 "" +1 +2
ReadRegStr $1 HKLM "SOFTWAREMicrosoftWindowsCurrentVersion" VersionNumber
ReadRegStr $0 HKLM "SOFTWAREMicrosoftWindows NTCurrentVersion" "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
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » 判断当前win操作系统,系统版本,win7系统

您必须 登录 才能发表评论!