From b578e6921cfdb942ec143d6e2e3ffb2a33e051a1 Mon Sep 17 00:00:00 2001 From: Matthew Prock <122550757+map588@users.noreply.github.com> Date: Thu, 2 Apr 2026 13:45:07 -0400 Subject: [PATCH 1/2] Expand-Archive has no flag "-DestinationPath", changed to "-OutputPath" --- install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index 5c25f551..76691e9d 100644 --- a/install.ps1 +++ b/install.ps1 @@ -75,7 +75,7 @@ try { # Extract Write-Host "Extracting..." -Expand-Archive -Path "$TmpDir\$Archive" -DestinationPath $TmpDir -Force +Expand-Archive -Path "$TmpDir\$Archive" -OutputPath $TmpDir -Force $DlBin = Join-Path $TmpDir $BinName if (-not (Test-Path $DlBin)) { From 3c1acbd795d042a65ff9f30f060a3673e0962a1d Mon Sep 17 00:00:00 2001 From: Matthew Prock <122550757+map588@users.noreply.github.com> Date: Thu, 2 Apr 2026 13:49:07 -0400 Subject: [PATCH 2/2] Update install.ps1 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- install.ps1 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index 76691e9d..ea86109d 100644 --- a/install.ps1 +++ b/install.ps1 @@ -75,7 +75,19 @@ try { # Extract Write-Host "Extracting..." -Expand-Archive -Path "$TmpDir\$Archive" -OutputPath $TmpDir -Force +$expandParams = @{ + Path = "$TmpDir\$Archive" + Force = $true +} +$expandCmd = Get-Command Expand-Archive -ErrorAction Stop +if ($expandCmd.Parameters.ContainsKey('DestinationPath')) { + $expandParams['DestinationPath'] = $TmpDir +} elseif ($expandCmd.Parameters.ContainsKey('OutputPath')) { + $expandParams['OutputPath'] = $TmpDir +} else { + throw "Expand-Archive does not support DestinationPath or OutputPath parameters." +} +Expand-Archive @expandParams $DlBin = Join-Path $TmpDir $BinName if (-not (Test-Path $DlBin)) {