From 373dfa68c84c97efd6a61c1c63acec37f9f67d0f Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Mon, 30 Oct 2023 21:21:45 -0700 Subject: [PATCH] add check for windows 95 --- setup/dotnet95.nsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/setup/dotnet95.nsi b/setup/dotnet95.nsi index fa5fcc3..f9d68fb 100644 --- a/setup/dotnet95.nsi +++ b/setup/dotnet95.nsi @@ -30,6 +30,17 @@ OutFile "dotnet95.exe" Section +### Ensure we're on Windows 95 ### +ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber +StrCpy $R1 $R0 3 +StrCmp $R1 "4.0" +3 0 +MessageBox MB_OK "This installer only works on Windows 95. Please use the original installer for newer operating systems." +Abort + +SectionEnd + +Section + ### Check for MSIE501 ### # Require version 5.00.2919.6306, or 0x00050000 (327680) 0x0B6718A2 (191305890) converted to words @@ -39,6 +50,10 @@ IntCmp $R1 191305890 +3 0 +3 MessageBox MB_OK ".NET Framework 2.0 requires Internet Explorer 5.01" Abort +SectionEnd + +Section + SetOutPath $PROGRAMFILES File /r "..\bin\dotnetfx20\Program Files\*"