diff --git a/bucket/webview2.json b/bucket/webview2.json index 751962d86c7f4f..b99b558ab8f9dd 100644 --- a/bucket/webview2.json +++ b/bucket/webview2.json @@ -27,6 +27,15 @@ "env_set": { "WEBVIEW2_BROWSER_EXECUTABLE_FOLDER": "$dir" }, + "installer": { + "script": [ + "$path = \"$dir\\$([System.IO.Path]::GetFileNameWithoutExtension($fname))\"", + "reg.exe add \"HKCU\\SOFTWARE\\Microsoft\\EdgeUpdate\\ClientState\\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}\" /v \"EBWebView\" /t \"REG_SZ\" /d \"$dir\" /f | Out-Null" + ] + }, + "uninstaller": { + "script": "reg.exe delete \"HKCU\\SOFTWARE\\Microsoft\\EdgeUpdate\\ClientState\\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}\" /v \"EBWebView\" /f | Out-Null" + }, "checkver": { "url": "https://developer.microsoft.com/en-us/Microsoft-edge/webview2/", "script": [ @@ -58,4 +67,4 @@ } } } -} +} \ No newline at end of file