From 3674469663a99e81d0ebfaadb8acdc7db5ec52b6 Mon Sep 17 00:00:00 2001 From: "Dariy.Nurgaleev" Date: Tue, 17 Mar 2020 21:56:27 +0700 Subject: [PATCH] added debug messages --- images/win/scripts/Installers/Install-SQLExpress.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/images/win/scripts/Installers/Install-SQLExpress.ps1 b/images/win/scripts/Installers/Install-SQLExpress.ps1 index 113fe1e9..c9bd3c8c 100644 --- a/images/win/scripts/Installers/Install-SQLExpress.ps1 +++ b/images/win/scripts/Installers/Install-SQLExpress.ps1 @@ -23,8 +23,9 @@ function Start-DownloadSQLExpress { [String]$InstallerUrl, [String]$InstallerPath ) - Write-Host "Download web-installer" + Write-Host "Download SQL Express web-installer from: $InstallerUrl" (New-Object System.Net.WebClient).DownloadFile($InstallerUrl, $InstallerPath) + Write-Host "SQL Express has been successfully downladed from the link: $InstallerUrl" } $installerUrl = "https://go.microsoft.com/fwlink/?linkid=866658" @@ -37,7 +38,7 @@ $installArgs = ("/Q", "/IACCEPTSQLSERVERLICENSETERMS", "/Action=Install", "/INST #Download installer for SQL Express Start-DownloadSQLExpress -InstallerUrl $installerUrl -InstallerPath $installerPath #Download full SQL Express package -Start-Task -InstallPath $installerPath -Arguments $downloadArgs -SuccessMessage "Downloaded package from: $installerUrl . To path: $installerPath " +Start-Task -InstallPath $installerPath -Arguments $downloadArgs -SuccessMessage "Downloaded full package. To path: $installerPath " #Unpack SQL Express Installer Start-Task -InstallPath "$setupPath.exe" -Arguments $unpackArgs -SuccessMessage "Unpacked package to directory: $setupPath" #Start SQL Express installer silently