From a5619dace1d43dbd138019e04b62002fea733fd2 Mon Sep 17 00:00:00 2001 From: Shamil Mubarakshin <127750046+shamil-mubarakshin@users.noreply.github.com> Date: Tue, 11 Jul 2023 12:21:46 +0200 Subject: [PATCH] [Windows] Disable Edge auto-updates (#7868) * [win] Disable Edge auto-updates * [win] Edge auto-updates: add terminating condition --- images/win/scripts/Installers/Install-Edge.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/images/win/scripts/Installers/Install-Edge.ps1 b/images/win/scripts/Installers/Install-Edge.ps1 index 317ff050..be100e09 100644 --- a/images/win/scripts/Installers/Install-Edge.ps1 +++ b/images/win/scripts/Installers/Install-Edge.ps1 @@ -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"