small fixes

This commit is contained in:
Dariy.Nurgaleev
2020-03-20 01:54:56 +07:00
parent 33fd9bde2e
commit 1efd5a626f
2 changed files with 2 additions and 2 deletions

View File

@@ -171,7 +171,7 @@ function Start-DownloadWithRetry
[string] $Name,
[int] $retries = 20
)
$FilePath = Join-Path $DownloadPath "\" $Name
$FilePath = Join-Path $DownloadPath $Name
#Default retry logic for the package.
while($retries -gt 0)
{

View File

@@ -62,7 +62,7 @@ $installerUrl = "https://go.microsoft.com/fwlink/?linkid=866658"
$downloadPath = "${env:Temp}"
$setupPath = Join-Path $downloadPath "SQLEXPR_x64_ENU"
Set-Location -Path $downloadPath
$installerPath = Start-DownloadWithRetry -Url "https://go.microsoft.com/fwlink/?linkid=866658" -Name SQL2019-SSEI-Expr.exe
$installerPath = Start-DownloadWithRetry -Url "https://go.microsoft.com/fwlink/?linkid=866658" -Name "SQL2019-SSEI-Expr.exe"
Download-FullSQLPackage -InstallerPath $installerPath
Unpack-SQLInstaller -InstallPath "$setupPath.exe"
Start-Installer -InstallPath "$setupPath/SETUP.exe"