Skip to content

Commit 0a200a1

Browse files
authored
v2.0.0-stable
1 parent d546ada commit 0a200a1

8 files changed

Lines changed: 12 additions & 3 deletions
-59.1 KB
Binary file not shown.
-608 Bytes
Binary file not shown.

bin/Microsoft.Web.WebView2.Wpf.dll

-144 Bytes
Binary file not shown.

bin/NetWebView2Lib.dll

7.5 KB
Binary file not shown.

bin/NetWebView2Lib.tlb

1.33 KB
Binary file not shown.

bin/Register_web2.au3

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#Tidy_Parameters=/reel
66

77
#include <MsgBoxConstants.au3>
8+
#include <Misc.au3>
89
#include "..\NetWebView2Lib.au3"
910

1011
_Register()
@@ -21,13 +22,21 @@ Func _Register()
2122
Local $sLog = "Registration Report:" & @CRLF & "--------------------" & @CRLF
2223

2324
; === Check for WebView2 Runtime ===
25+
Local $sMinReq = "128.0.2739.15" ; Updated for Full API Compatibility with SDK 1.0.2739.15
26+
Local $bNeedUpdated = False
2427
Local $sWV2Version = WebView2Exist()
2528

2629
If $sWV2Version <> "" Then
27-
$sLog &= "[+] WebView2 Runtime: Found (" & $sWV2Version & ")" & @CRLF
28-
Else
30+
If _VersionCompare($sWV2Version, $sMinReq) < 0 Then
31+
$bNeedUpdated = True
32+
Else
33+
$sLog &= "[+] WebView2 Runtime: Found (" & $sWV2Version & ")" & @CRLF
34+
EndIf
35+
EndIf
36+
37+
If $sWV2Version = "" Or $bNeedUpdated Then
2938
Local $sUrl = "https://go.microsoft.com/fwlink/p/?LinkId=2124703"
30-
$sLog &= "[-] WebView2 Runtime: NOT FOUND" & @CRLF
39+
$sLog &= ($bNeedUpdated ? "[!] WebView2 Runtime: Found (" & $sWV2Version & ") is too old. Requires " & $sMinReq : "[-] WebView2 Runtime: NOT FOUND") & @CRLF
3140

3241
; Ask the user to install
3342
Local $iAnswer = MsgBox($MB_YESNO + $MB_ICONEXCLAMATION, "Runtime Missing", _
5.02 KB
Binary file not shown.
-4.61 KB
Binary file not shown.

0 commit comments

Comments
 (0)