mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Windows] Disable Edge auto-updates (#7868)
* [win] Disable Edge auto-updates * [win] Edge auto-updates: add terminating condition
This commit is contained in:
committed by
GitHub
parent
4290af9e08
commit
a5619dace1
@@ -8,6 +8,9 @@ if (-not (Test-IsWin22)) {
|
||||
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
|
||||
Write-Host "Install Edge WebDriver..."
|
||||
$EdgeDriverPath = "$($env:SystemDrive)\SeleniumWebDrivers\EdgeDriver"
|
||||
|
||||
Reference in New Issue
Block a user