From b084d6241b18f131e3089d4b924dd3733a22ddf6 Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev Date: Fri, 6 Nov 2020 02:52:23 +0300 Subject: [PATCH] Always install latest version --- images/win/scripts/Installers/Install-WinAppDriver.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/images/win/scripts/Installers/Install-WinAppDriver.ps1 b/images/win/scripts/Installers/Install-WinAppDriver.ps1 index b33ff907..a2a1dd3d 100644 --- a/images/win/scripts/Installers/Install-WinAppDriver.ps1 +++ b/images/win/scripts/Installers/Install-WinAppDriver.ps1 @@ -3,8 +3,9 @@ ## Desc: Install Windows Application Driver (WinAppDriver) #################################################################################### -$InstallerName = "WindowsApplicationDriver_1.2.1.msi" -$InstallerUrl = "https://github.com/Microsoft/WinAppDriver/releases/download/v1.2.1/${InstallerName}" +$LatestReleaseUrl = 'https://api.github.com/repos/microsoft/WinAppDriver/releases/latest' +$InstallerUrl = (Invoke-RestMethod -Uri $LatestReleaseUrl).assets.browser_download_url +$InstallerName = "WindowsApplicationDriver.msi" [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Binary -Url $InstallerUrl -Name $InstallerName