Look for the presence of the msedgewebview2.exe executable.
MicrosoftEdgeWebView2RuntimeInstallerX64.exe /quiet /log:"C:\Logs\webview2_install.log"
Exit codes:
Evergreen runtime location:
HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\F3017226-FE2A-4295-8BDF-00C3A9A7E4C5 microsoft edge webview2 runtime offline installer full
Check pv (product version) string value. Look for the presence of the msedgewebview2