diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index dda31b22..83581d13 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -178,6 +178,10 @@ class Context { } [void] Restore([string]$archivePath, [string]$destinationPath) { + $this.Restore($archivePath, $destinationPath, @()); + } + + [void] Restore([string]$archivePath, [string]$destinationPath, [string[]] $arguments) { if (-not (Test-Path -PathType Leaf $archivePath)) { $archivePath = "$archivePath.001"; } @@ -197,7 +201,7 @@ class Context { Start-Process -WorkingDirectory "$destinationPath" ` -FilePath "7z" ` - -ArgumentList @("x", "$archivePath") ` + -ArgumentList @("x", "$archivePath") + $arguments ` -Wait ` -NoNewWindow; }