Skip to content

Commit 4ea1293

Browse files
authored
Update NetWebView2Lib.au3
1 parent 7ea77ed commit 4ea1293

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

NetWebView2Lib.au3

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ Func _NetWebView2_IsAlreadyInstalled()
326326
$sResult = RegRead('HKEY_CURRENT_USER\Software\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}', 'pv')
327327
$iExtended = 2
328328
EndIf
329-
Return SetError(@error, $iExtended, $sResult)
329+
If @AutoItX64 Then $iExtended += 10
330+
Return SetError(($sResult = ''), $iExtended, $sResult)
330331

331332
#cs The two registry locations to inspect on 64-bit Windows: https://learn.microsoft.com/pl-pl/microsoft-edge/webview2/concepts/distribution?tabs=dotnetcsharp#detect-if-a-webview2-runtime-is-already-installed
332333
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}
@@ -2146,3 +2147,4 @@ EndFunc ;==>__NetWebView2_Events__OnScreenCaptureStarting
21462147
#EndRegion ; NetWebView2Lib UDF - === EVENT HANDLERS === #TODO
21472148

21482149
#EndRegion ; NetWebView2Lib UDF - === EVENT HANDLERS ===
2150+

0 commit comments

Comments
 (0)