diff --git a/scripts/Windows/Scripts/SoftwarePackage.ps1 b/scripts/Windows/Scripts/SoftwarePackage.ps1 index 91ea1365..abac34ed 100644 --- a/scripts/Windows/Scripts/SoftwarePackage.ps1 +++ b/scripts/Windows/Scripts/SoftwarePackage.ps1 @@ -7,7 +7,7 @@ function Install-SoftwarePackage([Context] $context, [string] $location, [string if (-not ($local.IsPresent)) { Write-Information "Determining the file name of $location"; $tempDir = $context.GetTempDirectory(); - $request = [System.Net.WebRequest]::Create($url); + $request = [System.Net.WebRequest]::Create($location); $request.AllowAutoRedirect = $false; $response = $request.GetResponse(); $fileName = [System.IO.Path]::GetFileName($response.GetResponseHeader("Location"));