From 739bbe26b5fe02c59b7874ba828a5d158fef9347 Mon Sep 17 00:00:00 2001 From: "Dariy.Nurgaleev" Date: Tue, 24 Mar 2020 17:23:59 +0700 Subject: [PATCH] add comments for all steps --- images/win/scripts/Installers/Install-SQLExpress.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/win/scripts/Installers/Install-SQLExpress.ps1 b/images/win/scripts/Installers/Install-SQLExpress.ps1 index 7e34a9bf..27d19147 100644 --- a/images/win/scripts/Installers/Install-SQLExpress.ps1 +++ b/images/win/scripts/Installers/Install-SQLExpress.ps1 @@ -66,12 +66,13 @@ function Start-Installer { $installerUrl = "https://go.microsoft.com/fwlink/?linkid=866658" $downloadPath = "C:\SQLInstall" $setupPath = Join-Path $downloadPath "SQLEXPR_x64_ENU" +#Create directory for temporary files md $downloadPath Set-Location -Path $downloadPath $installerPath = Start-DownloadWithRetry -Url "https://go.microsoft.com/fwlink/?linkid=866658" -DownloadPath $downloadPath -Name "SQL2019-SSEI-Expr.exe" Download-FullSQLPackage -InstallerPath $installerPath -DownloadPath $downloadPath Unpack-SQLInstaller -InstallPath "$setupPath.exe" $resultPath = Join-Path $setupPath "SETUP.exe" -Write-Host $resultPath Start-Installer -InstallerPath $resultPath +#Cleanup folder with installation packages. Remove-Item $downloadPath -Recurse \ No newline at end of file