From 274c02da7399a1e846eb02b418bcf4b80292e820 Mon Sep 17 00:00:00 2001 From: Jan Egil Ring Date: Wed, 30 Oct 2024 06:16:23 +0100 Subject: [PATCH 1/3] Remove pindown for WinGet modules Signed-off-by: Jan Egil Ring --- azure_jumpstart_arcbox/artifacts/WinGet.ps1 | 4 ++-- azure_jumpstart_hcibox/artifacts/PowerShell/WinGet.ps1 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/azure_jumpstart_arcbox/artifacts/WinGet.ps1 b/azure_jumpstart_arcbox/artifacts/WinGet.ps1 index b685bbdf6..64510335a 100644 --- a/azure_jumpstart_arcbox/artifacts/WinGet.ps1 +++ b/azure_jumpstart_arcbox/artifacts/WinGet.ps1 @@ -8,8 +8,8 @@ $logFilePath = Join-Path -Path $Env:ArcBoxLogsDir -ChildPath ('WinGet-provisioni Start-Transcript -Path $logFilePath -Force -ErrorAction SilentlyContinue # 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-PSResource -Name Microsoft.WinGet.Client -Scope AllUsers -Quiet -AcceptLicense -TrustRepository +Install-PSResource -Name Microsoft.WinGet.DSC -Scope AllUsers -Quiet -AcceptLicense -TrustRepository # Install DSC resources required for ArcBox Install-PSResource -Name DSCR_Font -Scope AllUsers -Quiet -AcceptLicense -TrustRepository diff --git a/azure_jumpstart_hcibox/artifacts/PowerShell/WinGet.ps1 b/azure_jumpstart_hcibox/artifacts/PowerShell/WinGet.ps1 index 7dbdd1612..fe9f430b3 100644 --- a/azure_jumpstart_hcibox/artifacts/PowerShell/WinGet.ps1 +++ b/azure_jumpstart_hcibox/artifacts/PowerShell/WinGet.ps1 @@ -7,8 +7,8 @@ $logFilePath = Join-Path -Path $Env:HCIBoxLogsDir -ChildPath ('WinGet-provisioni Start-Transcript -Path $logFilePath -Force -ErrorAction SilentlyContinue # 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-PSResource -Name Microsoft.WinGet.Client -Scope AllUsers -Quiet -AcceptLicense -TrustRepository +Install-PSResource -Name Microsoft.WinGet.DSC -Scope AllUsers -Quiet -AcceptLicense -TrustRepository # Install DSC resources required for ArcBox Install-PSResource -Name DSCR_Font -Scope AllUsers -Quiet -AcceptLicense -TrustRepository From b202d0ff4177dc521cd22010990ecb85eea6caf8 Mon Sep 17 00:00:00 2001 From: Jan Egil Ring Date: Fri, 1 Nov 2024 21:07:57 +0100 Subject: [PATCH 2/3] Updated WinGet installation syntax Signed-off-by: Jan Egil Ring --- azure_jumpstart_arcbox/artifacts/WinGet.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure_jumpstart_arcbox/artifacts/WinGet.ps1 b/azure_jumpstart_arcbox/artifacts/WinGet.ps1 index 64510335a..b3f1cb71b 100644 --- a/azure_jumpstart_arcbox/artifacts/WinGet.ps1 +++ b/azure_jumpstart_arcbox/artifacts/WinGet.ps1 @@ -17,7 +17,9 @@ Install-PSResource -Name HyperVDsc -Scope AllUsers -Quiet -AcceptLicense -TrustR Install-PSResource -Name NetworkingDsc -Scope AllUsers -Quiet -AcceptLicense -TrustRepository # Install WinGet CLI -$null = Repair-WinGetPackageManager -AllUsers +$null = Repair-WinGetPackageManager -AllUsers -Force -Latest + +Get-WinGetVersion Write-Header 'Installing WinGet packages and DSC configurations' $winget = Join-Path -Path $env:LOCALAPPDATA -ChildPath Microsoft\WindowsApps\winget.exe From 151d37accefe2b91e87c3521c9ff2d5ce891291c Mon Sep 17 00:00:00 2001 From: Jan Egil Ring Date: Fri, 1 Nov 2024 21:20:46 +0100 Subject: [PATCH 3/3] Updated WinGet installation syntax Signed-off-by: Jan Egil Ring --- azure_jumpstart_hcibox/artifacts/PowerShell/WinGet.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure_jumpstart_hcibox/artifacts/PowerShell/WinGet.ps1 b/azure_jumpstart_hcibox/artifacts/PowerShell/WinGet.ps1 index fe9f430b3..68f4701f3 100644 --- a/azure_jumpstart_hcibox/artifacts/PowerShell/WinGet.ps1 +++ b/azure_jumpstart_hcibox/artifacts/PowerShell/WinGet.ps1 @@ -16,7 +16,9 @@ Install-PSResource -Name HyperVDsc -Scope AllUsers -Quiet -AcceptLicense -TrustR Install-PSResource -Name NetworkingDsc -Scope AllUsers -Quiet -AcceptLicense -TrustRepository # Install WinGet CLI -$null = Repair-WinGetPackageManager -AllUsers +$null = Repair-WinGetPackageManager -AllUsers -Force -Latest + +Get-WinGetVersion Write-Output 'Installing WinGet packages and DSC configurations' $winget = Join-Path -Path $env:LOCALAPPDATA -ChildPath Microsoft\WindowsApps\winget.exe