![]() |
 |
# Download the installer $InstallerPath = "$env:TEMP\$($WebView2.Filename)" Invoke-WebRequest -Uri $WebView2.Uri -OutFile $InstallerPath
Most modern Windows 10 and Windows 11 installations already come with the WebView2 Runtime pre-installed. You may want to add a check at the beginning of your script to skip the download if it is already present: install webview2 powershell
: This script requires elevated permissions to trigger a per-machine installation. install webview2 powershell