From ee7ea814de8edf2bd0c7fce5130771b439a72690 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Mon, 30 Oct 2023 19:23:04 -0700 Subject: [PATCH] check for msie501 Later I'd like to automatically install it, which we should be able to do with "ie5setup /q", but I'll need to learn a little more about NSIS first to pull that off nicely --- setup/dotnet95.nsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup/dotnet95.nsi b/setup/dotnet95.nsi index 20ac4eb..fa5fcc3 100644 --- a/setup/dotnet95.nsi +++ b/setup/dotnet95.nsi @@ -30,6 +30,15 @@ OutFile "dotnet95.exe" Section +### Check for MSIE501 ### + +# Require version 5.00.2919.6306, or 0x00050000 (327680) 0x0B6718A2 (191305890) converted to words +GetDLLVersion "$SYSDIR\shdocvw.dll" $R0 $R1 +IntCmp $R0 327680 +4 +2 +4 +IntCmp $R1 191305890 +3 0 +3 +MessageBox MB_OK ".NET Framework 2.0 requires Internet Explorer 5.01" +Abort + SetOutPath $PROGRAMFILES File /r "..\bin\dotnetfx20\Program Files\*"