[Windows] Disable Edge auto-updates (#7868)

* [win] Disable Edge auto-updates

* [win] Edge auto-updates: add terminating condition
This commit is contained in:
Shamil Mubarakshin
2023-07-11 12:21:46 +02:00
committed by GitHub
parent 4290af9e08
commit a5619dace1

View File

@@ -8,6 +8,9 @@ if (-not (Test-IsWin22)) {
Choco-Install -PackageName microsoft-edge Choco-Install -PackageName microsoft-edge
} }
# Disable Edge auto-updates
Rename-Item -Path "C:\Program Files (x86)\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe" -NewName "Disabled_MicrosoftEdgeUpdate.exe" -ErrorAction Stop
# Install Microsoft Edge WebDriver # Install Microsoft Edge WebDriver
Write-Host "Install Edge WebDriver..." Write-Host "Install Edge WebDriver..."
$EdgeDriverPath = "$($env:SystemDrive)\SeleniumWebDrivers\EdgeDriver" $EdgeDriverPath = "$($env:SystemDrive)\SeleniumWebDrivers\EdgeDriver"