mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 15:20:11 +00:00
[Windows] Update Edge installer (#8006)
This commit is contained in:
@@ -1,13 +1,8 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
## File: Install-Edge.ps1
|
## 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
|
# Disable Edge auto-updates
|
||||||
Rename-Item -Path "C:\Program Files (x86)\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe" -NewName "Disabled_MicrosoftEdgeUpdate.exe" -ErrorAction Stop
|
Rename-Item -Path "C:\Program Files (x86)\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe" -NewName "Disabled_MicrosoftEdgeUpdate.exe" -ErrorAction Stop
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user