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:
Ivan Nosar
2020-01-31 10:43:55 +03:00
committed by GitHub
parent 92abbfe59f
commit 621826b656
6 changed files with 120 additions and 20 deletions

View 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
}