First published on MSDN on Jun 21, 2018
Before you begin:
The Official SQL Server SSDT Doc contains updated information on these steps. I am keeping this blog as a reference at this point, though it is updated as well
Here is a request that came up recently:
"When installing SSDT manually it downloads a shell copy of Visual Studio 2017 from the Internet. However, if I get the offline copy of SSDT for VS2017 it does not include the Shell copy of VS2017 so the install fails because no Visual Studio 2017 instance is present. I need this for an internal network installation either via SCCM or wide unattended distribution."
This request makes sense for a lot of large enterprises where internet access may be restricted for security considerations.
Steps to accomplish this:
The overall approach is to download the required files on a computer that does have internet access. Then later use those bits on an internal network to install on multiple computers that do not have internet access.
1. Download SSDT standalone installer for VS 2017 (pick a language of your choice from the list)
2. Download Visual Studio Shell (vs_sql.exe) also known as VS SQL SKU
3. From a Command Prompt go to the folder where vs_sql.exe was downloaded and execute the following command on a machine with internet connection so you can download all the bits required for a later use offline. Using the --layout option is the key. For more details, see https://docs.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studi...
vs_sql.exe --layout c:\vs2017offline --lang en-US
Note: Above is for US English only ~1GB of files as an example.
3.1 If you need ALL languages downloaded you can use this command
vs_sql.exe --layout c:\vs2017offline
Note: all languages files add up to about ~3.9GB
4. Now, that you have all the necessary bits downloaded you can copy them to a network location or media so you can use them for offline (internal) installation
5. Next, to install offline, run this command which will install VS2017 Shell and SQL Server Data Project
5.1 For no-GUI install, you can use
vs_setup.exe --NoWeb --wait --norestart --quiet
6. Run this for an interactive/GUI installation (be sure to select SSIS/SSRS/SSAS)
6.1 For an unattended installation to all VS Instances run
SSDT-Setup-ENU.exe /INSTALLALL[:vsinstances] /passive /log log.txt
6.2 For an unattended installation to a specific VS Instance, you can query the instance ID of the desired VS instance
cd C:\Program Files (x86)\Microsoft Visual Studio\Installer C:\Program Files (x86)\Microsoft Visual Studio\Installer> vswhere.exe -all
Then run this command by replacing the VS_INSTANCE_ID_HERE with your instanceID (it will look something like this: 49cf420b)
SSDT-Setup-ENU.exe /INSTALLALL[:VS_INSTANCE_ID_HERE] /passive
Note: For detailed command options, you can run
You will see on that screen the following:
Thanks to Paritosh Soni for the contribution on vswhere.exe and installing for a specific instanceID, testing and helping improve this post overall.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.