From 8ecd0d93571767ef508c847f25ea101e212a622d Mon Sep 17 00:00:00 2001 From: "Dariy.Nurgaleev" Date: Fri, 27 Mar 2020 12:52:54 +0700 Subject: [PATCH] removed all mandatory parameters to verify build. --- images/win/scripts/Installers/Install-SQLExpress.ps1 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/images/win/scripts/Installers/Install-SQLExpress.ps1 b/images/win/scripts/Installers/Install-SQLExpress.ps1 index 79956502e..e3a6955ed 100644 --- a/images/win/scripts/Installers/Install-SQLExpress.ps1 +++ b/images/win/scripts/Installers/Install-SQLExpress.ps1 @@ -6,7 +6,6 @@ Import-Module -Name ImageHelpers -Force; function Download-FullSQLPackage { param( - [Parameter(Mandatory)] [String]$InstallerPath, [String]$DownloadPath, [String]$Arguments = ("/MEDIAPATH=$DownloadPath", "/MEDIATYPE=Core","/Action=Download", "/QUIET") @@ -27,7 +26,6 @@ function Download-FullSQLPackage { function Unpack-SQLInstaller { param( - [Parameter(Mandatory)] [String]$InstallPath, [String]$Arguments = ("/Q", "/IACCEPTSQLSERVERLICENSETERMS") ) @@ -48,7 +46,6 @@ function Unpack-SQLInstaller { function Start-Installer { param( - [Parameter(Mandatory)] [String]$InstallerPath, [String]$Arguments = ("/Q", "/IACCEPTSQLSERVERLICENSETERMS", "/Action=Install", "/INSTANCEID=SQL2019", "/INSTANCENAME=SQL2019", "/SECURITYMODE=SQL", "/SAPWD=P@ssword!!", "/TCPENABLED=1") ) @@ -70,7 +67,7 @@ $installerUrl = "https://go.microsoft.com/fwlink/?linkid=866658" $downloadPath = "C:\SQLInstall" $setupPath = Join-Path $downloadPath "SQLEXPR_x64_ENU" #Create directory for temporary files -mkdir $downloadPath +md $downloadPath Set-Location -Path $downloadPath $installerPath = Start-DownloadWithRetry -Url $installerUrl -DownloadPath $downloadPath -Name "SQL2019-SSEI-Expr.exe" Download-FullSQLPackage -InstallerPath $installerPath -DownloadPath $downloadPath @@ -78,4 +75,4 @@ Unpack-SQLInstaller -InstallPath "$setupPath.exe" $resultPath = Join-Path $setupPath "SETUP.exe" Start-Installer -InstallerPath $resultPath #Cleanup folder with installation packages. -Remove-Item $downloadPath -Recurse -Force +Remove-Item $downloadPath -Recurse -Force \ No newline at end of file