From 418503d6a2cc4d58e49e7979877f8b80c8d92ee2 Mon Sep 17 00:00:00 2001 From: Jan Egil Ring Date: Mon, 23 Sep 2024 14:39:36 +0200 Subject: [PATCH] Update WinGet.ps1 to install specific versions of Microsoft.WinGet.Client and Microsoft.WinGet.DSC Signed-off-by: Jan Egil Ring --- azure_jumpstart_arcbox/artifacts/WinGet.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/azure_jumpstart_arcbox/artifacts/WinGet.ps1 b/azure_jumpstart_arcbox/artifacts/WinGet.ps1 index f0154e8eda..b685bbdf68 100644 --- a/azure_jumpstart_arcbox/artifacts/WinGet.ps1 +++ b/azure_jumpstart_arcbox/artifacts/WinGet.ps1 @@ -7,8 +7,9 @@ $logFilePath = Join-Path -Path $Env:ArcBoxLogsDir -ChildPath ('WinGet-provisioni Start-Transcript -Path $logFilePath -Force -ErrorAction SilentlyContinue -# Install WinGet DSC resource - also installs Microsoft.WinGet.Client as implicit dependency -Install-PSResource -Name Microsoft.WinGet.DSC -Scope AllUsers -Quiet -AcceptLicense -TrustRepository -Prerelease +# Install WinGet PowerShell modules +Install-PSResource -Name Microsoft.WinGet.Client -Scope AllUsers -Quiet -AcceptLicense -TrustRepository -Version 1.8.1911 +Install-PSResource -Name Microsoft.WinGet.DSC -Scope AllUsers -Quiet -AcceptLicense -TrustRepository -Prerelease -Version 1.8.1911-alpha # Install DSC resources required for ArcBox Install-PSResource -Name DSCR_Font -Scope AllUsers -Quiet -AcceptLicense -TrustRepository