added mkdir instetad of md

This commit is contained in:
Dariy.Nurgaleev
2020-03-25 03:22:40 +07:00
parent d9c166b793
commit 0bf06144d7

View File

@@ -70,7 +70,7 @@ $installerUrl = "https://go.microsoft.com/fwlink/?linkid=866658"
$downloadPath = "C:\SQLInstall" $downloadPath = "C:\SQLInstall"
$setupPath = Join-Path $downloadPath "SQLEXPR_x64_ENU" $setupPath = Join-Path $downloadPath "SQLEXPR_x64_ENU"
#Create directory for temporary files #Create directory for temporary files
md $downloadPath mkdir $downloadPath
Set-Location -Path $downloadPath Set-Location -Path $downloadPath
$installerPath = Start-DownloadWithRetry -Url $installerUrl -DownloadPath $downloadPath -Name "SQL2019-SSEI-Expr.exe" $installerPath = Start-DownloadWithRetry -Url $installerUrl -DownloadPath $downloadPath -Name "SQL2019-SSEI-Expr.exe"
Download-FullSQLPackage -InstallerPath $installerPath -DownloadPath $downloadPath Download-FullSQLPackage -InstallerPath $installerPath -DownloadPath $downloadPath
@@ -78,4 +78,4 @@ Unpack-SQLInstaller -InstallPath "$setupPath.exe"
$resultPath = Join-Path $setupPath "SETUP.exe" $resultPath = Join-Path $setupPath "SETUP.exe"
Start-Installer -InstallerPath $resultPath Start-Installer -InstallerPath $resultPath
#Cleanup folder with installation packages. #Cleanup folder with installation packages.
Remove-Item $downloadPath -Recurse Remove-Item $downloadPath -Recurse -Force