Files
runner-images/images/windows/scripts/build/Install-WinAppDriver.ps1
Pavel Iakovenko 7eede67cd0 Validate authenticode signature using the certificate Subject (#12474)
* Use cerificate subject to verify authenticode signature

* Use function instead of script variables

* Switch all places to using Get-MicrosoftPublisher

* Remove SignatureThumbprint

* Use common subject for the Edge driver
2025-06-30 19:33:57 -06:00

17 lines
669 B
PowerShell

####################################################################################
## File: Install-WinAppDriver.ps1
## Desc: Install Windows Application Driver (WinAppDriver)
####################################################################################
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$downloadUrl = Resolve-GithubReleaseAssetUrl `
-Repo "microsoft/WinAppDriver" `
-Version "latest" `
-UrlMatchPattern "WindowsApplicationDriver_*.msi"
Install-Binary `
-Url $downloadUrl `
-ExpectedSubject $(Get-MicrosoftPublisher)
Invoke-PesterTests -TestFile "WinAppDriver" -TestName "WinAppDriver"