mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 22:22:53 +03:00
865aff8c9d
Fixes #7677
22 lines
710 B
PowerShell
22 lines
710 B
PowerShell
$url = $args[0]
|
|
|
|
Write-Host "Downloading Microsoft Edge Dev"
|
|
$wc = New-Object net.webclient
|
|
$msiInstaller = "$env:temp\microsoft-edge-dev.msi"
|
|
$wc.Downloadfile($url, $msiInstaller)
|
|
|
|
Write-Host "Installing Microsoft Edge Dev"
|
|
$arguments = "/i `"$msiInstaller`" /quiet"
|
|
Start-Process msiexec.exe -ArgumentList $arguments -Wait
|
|
Remove-Item $msiInstaller
|
|
|
|
$suffix = "\\Microsoft\\Edge Dev\\Application\\msedge.exe"
|
|
if (Test-Path "${env:ProgramFiles(x86)}$suffix") {
|
|
(Get-Item "${env:ProgramFiles(x86)}$suffix").VersionInfo
|
|
} elseif (Test-Path "${env:ProgramFiles}$suffix") {
|
|
(Get-Item "${env:ProgramFiles}$suffix").VersionInfo
|
|
} else {
|
|
write-host "ERROR: failed to install Microsoft Edge"
|
|
exit 1
|
|
}
|