From 8875bb35856101c32cfd18e8e0dde671b4cae000 Mon Sep 17 00:00:00 2001 From: "Dariy.Nurgaleev" Date: Thu, 19 Mar 2020 19:00:16 +0700 Subject: [PATCH] removed unnecessary comments from code. --- images/win/scripts/Installers/Install-SQLExpress.ps1 | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/images/win/scripts/Installers/Install-SQLExpress.ps1 b/images/win/scripts/Installers/Install-SQLExpress.ps1 index 292b65b2..693c9303 100644 --- a/images/win/scripts/Installers/Install-SQLExpress.ps1 +++ b/images/win/scripts/Installers/Install-SQLExpress.ps1 @@ -11,7 +11,6 @@ function Download-FullSQLPackage { ) $process = Start-Process -FilePath $InstallerPath -ArgumentList $Arguments -Wait -PassThru $exitCode = $process.ExitCode -# Exit code -2067529716 is added since SQL Unpack procedure returns it on success. if ($exitCode -eq 0) { Write-Host -Object "Full SQL Express package has been successfully downloaded to $InstallerPath : ExitCode: $exitCode" @@ -49,7 +48,6 @@ function Start-Installer { ) $process = Start-Process -FilePath $InstallPath -ArgumentList $Arguments -Wait -PassThru $exitCode = $process.ExitCode -# Exit code -2067529716 is added since SQL Unpack procedure returns it on success. if ($exitCode -eq 0) { Write-Host -Object "SQL Express has been successfully installed: ExitCode: $exitCode" @@ -60,18 +58,13 @@ function Start-Installer { exit $exitCode } } - -#default variables for functions. $installerUrl = "https://go.microsoft.com/fwlink/?linkid=866658" $downloadPath = "${env:Temp}" $setupPath = Join-Path $downloadPath "SQLEXPR_x64_ENU" -#Set default location for proper script execution +#Set default location for installation process Set-Location -Path $downloadPath -#Download installer for SQL Express +#Download installer for SQL Express and return path to it $installerPath = Start-DownloadWithRetry -Url "https://go.microsoft.com/fwlink/?linkid=866658" -Name SQL2019-SSEI-Expr.exe -#Download full SQL Express package Download-FullSQLPackage -InstallerPath $installerPath -#Unpack SQL Express Installer Unpack-SQLInstaller -InstallPath "$setupPath.exe" -#Start SQL Express installer silently Start-Installer -InstallPath "$setupPath/SETUP.exe" \ No newline at end of file