Files
runner-images/images/win/scripts/Installers/Windows2016/Install-SSDT.ps1

24 lines
938 B
PowerShell

################################################################################
## File: Install-SSDT.ps1
## Desc: Install SQL Server Data Tools for Windows
################################################################################
Import-Module -Name ImageHelpers -Force
#SSDT for Visual Studio 2017 (15.8.2)
$InstallerURI = 'https://download.microsoft.com/download/D/F/8/DF8B51B9-8E9F-47F3-A27B-33EEDADD8966/SSDT-Setup-ENU.exe'
$InstallerName = 'SSDT-Setup-ENU.exe'
$logFilePath = "$env:TEMP\ssdtlog.txt"
$ArgumentList = ('/install', 'INSTALLALL', '/passive', '/norestart', "/log `"$logFilePath`"")
$exitCode = Install-EXE -Url $InstallerURI -Name $InstallerName -ArgumentList $ArgumentList
if($exitCode -ne 0 -and $exitCode -ne 3010)
{
Write-Host "******** SSDT SETUP LOG START ********"
Write-Host $(Get-Content $logFilePath | Out-String)
Write-Host "******** SSDT SETUP LOG END ********"
}
exit $exitCode