[Windows] Update Edge installer (#8006)

This commit is contained in:
Erik Bershel
2023-08-01 09:24:55 +02:00
committed by GitHub
parent 739db6e683
commit c545cacd84

View File

@@ -1,13 +1,8 @@
################################################################################
## File: Install-Edge.ps1
## Desc: Install latest stable version of Microsoft Edge browser
## Desc: Configure Edge browser and install Edge WebDriver
################################################################################
# Installed by default on Windows Server 2022
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