diff --git a/scripts/Windows/Scripts/Software.ps1 b/scripts/Windows/Scripts/Software.ps1 index 10982563..9a4f9e95 100644 --- a/scripts/Windows/Scripts/Software.ps1 +++ b/scripts/Windows/Scripts/Software.ps1 @@ -15,8 +15,6 @@ $null = New-Module { [hashtable] $Arguments ) - $Arguments ??= @{ }; - if (-not $Name) { $Name = Split-Path -Leaf (Split-Path -Parent ((Get-PSCallStack)[1].ScriptName)); } @@ -33,6 +31,8 @@ $null = New-Module { [hashtable] $Arguments ) + $Arguments ??= @{ }; + $argumentList = @{ installer = $installHandler; arguments = $Arguments;