Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1512

Edge Webview2 Automatic installation, detect the installed version

$
0
0
Code:

Function CheckSetupOk() As Boolean
    'It takes 10 seconds to check whether the edge runtime component is installed successfully. Is there a faster method?
    Dim WV As cWebView2
    Set WV = New_c.WebView2
    CheckSetupOk = WV.BindTo(Me.hWnd) <> 0
    Set WV = Nothing
End Function

Function DonwSetupTool() As Boolean
Dim URL As String
URL = "https://go.microsoft.com/fwlink/p/?LinkId=2124703"
'xmlhttp download***
'save as :Edge_Webview2RunTime.exe

Dim Size1 As Long
Size1 = FileLen(App.Path & "\Edge_Webview2RunTime.exe")
DonwSetupTool = Size1 > 1024 ^ 2

end function

install used 32 seconds, occupying 444mb of hard disk space
I don’t know if there is a silent installation parameter to prevent him from displaying the download and installation interface

MicrosoftEdgeWebview2Setup.exe /silent /install

check Registry information:
Microsoft Edge WebView2 Runtim(92.0.902.8)
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}
get string value(PV and name)

Can be used with:VB6 WebView2-Binding (Edge-Chromium)-VBForums
https://www.vbforums.com/showthread....Edge-Chromium)

Viewing all articles
Browse latest Browse all 1512

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>