The following tutorial shows how to install DS Server using PowerShell.
Download the ZIP file from the online store (DS-0300-XB.zip) that contains all the required files for your private DS Server installation.
Create a file named Install-DSServer.ps1, open it using any editor and paste the following content into it:
# Unzip the application to "C:\DocumentServices"
Expand-Archive -Path DS-0300-XB.zip -DestinationPath C:\DocumentServices
# Install IIS
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServer
Enable-WindowsOptionalFeature -Online -FeatureName IIS-CommonHttpFeatures
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebSockets
# Download and install Visual C++ Redistributable Packages for Visual Studio 2013
Invoke-WebRequest -OutFile vc_redist.x64.exe https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe
Start-Process "vc_redist.x64.exe" -ArgumentList "/passive" -wait -Passthru
del vc_redist.x64.exe
# Download and install Visual C++ Redistributable Packages for Visual Studio 2015
Invoke-WebRequest -OutFile vc_redist.x64.exe https://download.microsoft.com/download/6/A/A/6AA4EDFF-645B-48C5-81CC-ED5963AEAD48/vc_redist.x64.exe
Start-Process "vc_redist.x64.exe" -ArgumentList "/passive" -wait -Passthru
del vc_redist.x64.exe
# Install ASP.NET Core Runtime
# Checksum and direct link from: https://dotnet.microsoft.com/permalink/dotnetcore-current-windows-runtime-bundle-installer
Invoke-WebRequest -OutFile dotnet-hosting-6.0.9-win.exe https://download.visualstudio.microsoft.com/download/pr/eaa3eab9-cc21-44b5-a4e4-af31ee73b9fa/d8ad75d525dec0a30b52adc990796b11/dotnet-hosting-6.0.9-win.exe
Start-Process "dotnet-hosting-6.0.9-win.exe" -ArgumentList "/passive" -wait -Passthru
Remove-Item -Force dotnet-hosting-6.0.9-win.exe
# Install ASP.NET Desktop Runtime
# Checksum and direct link from: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-6.0.9-windows-x64-installer
Invoke-WebRequest -OutFile windowsdesktop-runtime-6.0.9-win-x64.exe https://download.visualstudio.microsoft.com/download/pr/fe8415d4-8a35-4af9-80a5-51306a96282d/05f9b2a1b4884238e69468e49b3a5453/windowsdesktop-runtime-6.0.9-win-x64.exe;
Start-Process "windowsdesktop-runtime-6.0.9-win-x64.exe" -ArgumentList "/passive" -wait -Passthru;
Remove-Item -Force windowsdesktop-runtime-6.0.9-win-x64.exe;
# Create a new IIS ApplicationPool
$appPoolName = 'DocumentServices'
New-WebAppPool $appPoolName
Import-Module WebAdministration
$appPool = Get-Item IIS:\AppPools\$appPoolName
$appPool.managedRuntimeVersion = ''
$appPool | set-item
$appPoolName = 'DocumentServices'
$appName = 'DocumentServices'
New-WebApplication -Name $appName -Site 'Default Web Site' -PhysicalPath C:\DocumentServices -ApplicationPool $appPoolName
Open a PowerShell window with explicit Administrator rights and change the directory to the directory where your downloaded ZIP file is located.
Type in the following command to elevate the execution policy:
Set-ExecutionPolicy -ExecutionPolicy ByPass -Scope Process
Execute the Install-DSServer.ps1 script:
.\Install-DSServer.ps1