File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" , _
You can’t perform that action at this time.
0 commit comments