Most of the virtual machines I build are not connected to the internet due to some corporate restrictions my company has enforced. Therefore, I always need to do offline installations of all of my software. Now, I do build a lot of SharePoint farms and by a lot I mean, A LOT. I probably spin off a new farm every two days or so for various purposes, so for me having a repeatable installation process is key. The first thing I did when SharePoint 2016 IT Preview came out on August 24th 2015 was to download all of the prerequisites components and write a PowerShell script that would automatically go and install them offline.
For SharePoint 2016, the prerequisites are almost essentially the same as they were for SharePoint 2013, with one or two differences (e.g. .Net Framework 4.5.2). The following is a list of all of the SharePoint 2016 Prerequisites components you would need to download if you were to do an offline installation. Note, that if your virtual machine is connected to the internet, the prerequisite installer module of the SharePoint 2016 media will automatically take care of downloading and installing the bits for you, so you don’t need to manually download them all.
- SQL Client (SQLnCli.msi)
- Microsoft Identity Extension (MicrosoftIdentityExtensions-64.msi)
- Microsoft Sync Framework 1.0 SP1 (Synchronization.msi)Extract the appropriate file from the ZIP package.
- AppFabric 1.1 (WindowsServerAppFabricSetup_x64.exe)
- Cumulative Update 7 (KB3092423) for Microsoft AppFabric 1.1 for Windows Server (AppFabric-KB3092423-x64-ENU.exe)
- Active Directory Rights Management Services Client 2.1 (setup_msipc_x64.exe)
- Windows Communications Framework Data Services 5.6.0 (WcfDataServices56.exe)
- .NET Framework 4.6 (NDP453-KB2969351-x86-x64-AllOS-ENU.exe)
- Visual C++ 2012 Redistributable Package (vcredist_x64.exe)
- Visual C++ 2015 Redistributable Package (vc_redist.x64.exe)
The way my script works is that it requires you to download all of the prerequisites components listed above and have them placed in a new folder called “prereqs” at the root of the server’s C:\ drive (e.g. C:\prereqs\). Then, making sure the SharePoint 2016 installation media is loaded (and in my case on drive D:), execute the following two lines of PowerShell code:
$SharePoint2016Path = "C:\Prereqs" Start-Process "D:\PrerequisiteInstaller.exe" –ArgumentList "/SQLNCli:$SharePoint2016Path\sqlncli.msi /IDFX11:$SharePoint2016Path\MicrosoftIdentityExtensions-64.msi /Sync:$SharePoint2016Path\Synchronization.msi /AppFabric:$SharePoint2016Path\WindowsServerAppFabricSetup_x64.exe /MSIPCClient:$SharePoint2016Path\setup_msipc_x64.exe /WCFDataServices56:$SharePoint2016Path\WcfDataServices.exe /DotNetFx:$SharePoint2016Path\NDP453-KB2969351-x86-x64-AllOS-ENU.exe /MSVCRT11:$SharePoint2016Path\vcredist_x64.exe /MSVCRT14:$SharePoint2016Path\vc_redist.x64.exe /KB3092423:$SharePoint2016Path\AppFabric-KB3092423-x64-ENU.exe"
Executing the above lines of PowerShell will automatically launch the SharePoint 2016 Prerequisites installer application:
From there you can simply click Next on the wizard to initiate the installation sequence. Please note that you may be asked to reboot the server once or twice during the installation. After a reboot, the prerequisites installer should automatically continue its execution where it left.