]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
NSIS installer for KFW 3.0 Beta 3
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 2 Dec 2005 10:27:22 +0000 (10:27 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 2 Dec 2005 10:27:22 +0000 (10:27 +0000)
Add an operating system version check to prevent installation
on Windows 95, 98, ME, and NT 4.0.

ticket: new
component: windows
status: resolved
target_version: 1.4.4
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17532 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/installer/nsis/kfw-fixed.nsi

index eef55917b34524656acbb2c79e9465dbf320ff63..20106a722c53e846f0d8b2f3dccf4e784a490606 100644 (file)
@@ -662,10 +662,13 @@ checkVer:
    Call GetWindowsVersion
    Pop $R0
    StrCmp $R0 "95" wrongVersion
+   StrCmp $R0 "98" wrongVersion
+   StrCmp $R0 "ME" wrongVersion
+   StrCmp $R0 "NT 4.0" wrongVersion
    goto checkIPHLPAPI
 
 wrongVersion:
-   MessageBox MB_OK|MB_ICONSTOP|MB_TOPMOST "MIT ${PROGRAM_NAME} requires Microsoft Windows 98 or higher."
+   MessageBox MB_OK|MB_ICONSTOP|MB_TOPMOST "MIT ${PROGRAM_NAME} requires Microsoft Windows 2000 or higher."
    Abort
 
 checkIPHLPAPI: