removed all mandatory parameters to verify build.
This commit is contained in:
@@ -6,7 +6,6 @@ Import-Module -Name ImageHelpers -Force;
|
|||||||
|
|
||||||
function Download-FullSQLPackage {
|
function Download-FullSQLPackage {
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory)]
|
|
||||||
[String]$InstallerPath,
|
[String]$InstallerPath,
|
||||||
[String]$DownloadPath,
|
[String]$DownloadPath,
|
||||||
[String]$Arguments = ("/MEDIAPATH=$DownloadPath", "/MEDIATYPE=Core","/Action=Download", "/QUIET")
|
[String]$Arguments = ("/MEDIAPATH=$DownloadPath", "/MEDIATYPE=Core","/Action=Download", "/QUIET")
|
||||||
@@ -27,7 +26,6 @@ function Download-FullSQLPackage {
|
|||||||
|
|
||||||
function Unpack-SQLInstaller {
|
function Unpack-SQLInstaller {
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory)]
|
|
||||||
[String]$InstallPath,
|
[String]$InstallPath,
|
||||||
[String]$Arguments = ("/Q", "/IACCEPTSQLSERVERLICENSETERMS")
|
[String]$Arguments = ("/Q", "/IACCEPTSQLSERVERLICENSETERMS")
|
||||||
)
|
)
|
||||||
@@ -48,7 +46,6 @@ function Unpack-SQLInstaller {
|
|||||||
|
|
||||||
function Start-Installer {
|
function Start-Installer {
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory)]
|
|
||||||
[String]$InstallerPath,
|
[String]$InstallerPath,
|
||||||
[String]$Arguments = ("/Q", "/IACCEPTSQLSERVERLICENSETERMS", "/Action=Install", "/INSTANCEID=SQL2019", "/INSTANCENAME=SQL2019", "/SECURITYMODE=SQL", "/SAPWD=P@ssword!!", "/TCPENABLED=1")
|
[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"
|
$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
|
||||||
mkdir $downloadPath
|
md $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
|
||||||
|
|||||||
Reference in New Issue
Block a user