mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Install Microsoft Edge and related web drivers on Windows (#338)
Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
This commit is contained in:
25
images/win/scripts/Installers/Validate-Edge.ps1
Normal file
25
images/win/scripts/Installers/Validate-Edge.ps1
Normal file
@@ -0,0 +1,25 @@
|
||||
################################################################################
|
||||
## File: Validate-Edge.ps1
|
||||
## Desc: Validate Microsoft Edge installation.
|
||||
################################################################################
|
||||
|
||||
$RegistryKey = "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msedge.exe"
|
||||
if (Test-Path $RegistryKey)
|
||||
{
|
||||
$SoftwareName = "Microsoft Edge"
|
||||
$VersionInfo = (Get-Item (Get-ItemProperty $RegistryKey).'(Default)').VersionInfo
|
||||
$VersionInfo
|
||||
$Description = @"
|
||||
_version:_
|
||||
$($VersionInfo.FileVersion)
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
exit 0
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Microsoft Edge is not installed."
|
||||
exit 1
|
||||
}
|
||||
Reference in New Issue
Block a user