From 458c46575cad239c735170d2be836b1c77eed113 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 8 Aug 2024 04:29:00 +0200 Subject: [PATCH] Allow custom winget arguments --- scripts/Common/Scripts/Software.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Common/Scripts/Software.ps1 b/scripts/Common/Scripts/Software.ps1 index c0d39ea4..640f5e42 100644 --- a/scripts/Common/Scripts/Software.ps1 +++ b/scripts/Common/Scripts/Software.ps1 @@ -56,6 +56,7 @@ $null = New-Module { function Install-WingetPackage { param( [switch] $Force, + [string[]] $ArgumentList, [Parameter(Position=0)] [string] $Name, [Parameter(ValueFromRemainingArguments = $true)] @@ -72,7 +73,7 @@ $null = New-Module { --accept-source-agreements --accept-package-agreements ` --source winget ` --scope machine ` - --exact --id $name; + --exact --id $name $ArgumentList; } else { Write-Host "Package ``$name`` is already installed" }