With this blog post I want to show you how to install Citrix StoreFront 3.0.1 with all it´s necessary prerequisites from the command line.
If you start the Citrix StoreFront installer via GUI the installer takes care of all the prerequisites on your system. You can see this behaviour in the screenshot:
In enterprise environments it is often not wanted to have installers taking care of prerequisites. I am a fan of total control over the environments I am taking care of. Every component needs to be installed in a controlled way.
Let´s see what we need to install before running the Citrix StoreFront installer to prevent the “uncontrolled” installation of additional Features and Roles.
StoreFront needs a Web Server to be able to run. Some additional Sub-Features are needed as well.
- Web Server (IIS)
- Web Server
- Common HTTP Features
- Default Document
- HTTP Errors
- Static Content
- HTTP Redirection
- Health and Diagnostics
- HTTP Logging
- Request Filtering
- Basic Authentication
- Windows Authentication
- Application Development
- .NET Extensibility 4.5
- Application Initialization
- ASP.NET 4.5
- ISAPI Extensions
- ISAPI Filters
- Management Tools
- IIS Management Console
- IIS Management Scripts and Tools
- .NET Framework 4.5 Features
- .NET Framework 4.5
- ASP.NET 4.5
- WCF Services
- TCP Port Sharing
In order to install them via command line we open a PowerShell console and insert the following commands:
Add-windowsfeature Web-Server Add-windowsfeature Web-Basic-Auth Add-windowsfeature Web-Http-Redirect Add-windowsfeature Web-Windows-Auth Add-windowsfeature Web-App-Dev Add-windowsfeature Web-Net-Ext45 Add-windowsfeature Web-AppInit Add-windowsfeature Web-Asp-Net45 Add-windowsfeature Web-Mgmt-Tools Add-windowsfeature Web-Scripting-Tools Add-windowsfeature NET-Framework-45-Features
Now we have installed all the prerequisites and we can go on with the Citrix StoreFront installation. The parameters are as follows:
CitrixStoreFront-x64.exe[-silent] [-INSTALLDIR installationlocation] [-WINDOWS_CLIENT filelocation\filename.exe] [-MAC_CLIENT filelocation\filename.dmg]
Installation via PowerShell works this way:start-process -FilePath "YOURSOURCESSHARE\CitrixStoreFront-x64.exe" -ArgumentList "-silent" -wait
The file locations of the Windows and Mac client belong IMHO to an additional customizing script for StoreFront. Therefore I won´t add them at this time.
Below you can find my installation script for the Citrix StoreFront server. It assumes you have a Windows Server 2012 R2 in place that is member of a domain and fully patched.
What it does (very simple):
- installs Web Server Features and Roles
- installs Citrix StoreFront 3.0.1
- Reboots the system
Before you use it insert your file share path to the variable $labsources.<# .SYNOPSIS This script installs StoreFront 3.0.1 .DESCRIPTION The following components are installed: - necessary Roles and Features - StoreFront 3.0.1 - no further customization in this script .PARAMETER .NOTES This script was tested on Windows Server 2012 R2 .LINK http://www.RISConsulting.de .AUTHOR Sinisa Sokolic .Date 2015-10-19 #>
# Script Variables
$labsources = "\\FILESERVER\SHARE"
Write-Host "Install: Citrix StoreFront 3.0.1" -ForegroundColor Green
# Part 01 - Prerequisites
Write-Host "Part 01 - Installing Prerequisites..." -ForegroundColor Green
# Install necessary Windows-Features for StoreFront 3.0.1
# Windows-Feature Web-Server
Write-Host "Installing Web-Server" -ForegroundColor Green
# Windows-Feature Web-Basic-Auth
Write-Host "Installing Web-Basic-Auth" -ForegroundColor Green
# Windows-Feature Web-Http-Redirect
Write-Host "Installing Web-Http-Redirect" -ForegroundColor Green
# Windows-Feature Web-Windows-Auth
Write-Host "Installing Web-Windows-Auth" -ForegroundColor Green
# Windows-Feature Web-App-Dev
Write-Host "Installing Web-App-Dev" -ForegroundColor Green
# Windows-Feature Web-Net-Ext45
Write-Host "Installing Web-Net-Ext45" -ForegroundColor Green
# Windows-Feature Web-AppInit
Write-Host "Installing Web-AppInit" -ForegroundColor Green
# Windows-Feature Web-Asp-Net45
Write-Host "Installing Web-Asp-Net45" -ForegroundColor Green
# Windows-Feature Web-Mgmt-Tools
Write-Host "Installing Web-Mgmt-Tools" -ForegroundColor Green
# Windows-Feature Web-Scripting-Tools
Write-Host "Installing Web-Scripting-Tools" -ForegroundColor Green
# Windows-Feature NET-Framework-45-Features
Write-Host "Installing NET-Framework-45-Features" -ForegroundColor Green
Write-Host "Finished Installing Prerequisites..." -ForegroundColor Green
Write-Host "Part 02 - Installing Software..." -ForegroundColor Green
# Install Citrix StoreFront 3.0.x
Write-Host "Installing StoreFront..." -ForegroundColor Green
start-process -FilePath "$labsources\XenDesktop_76\StoreFront_30\CitrixStoreFront-x64.exe" -ArgumentList "-silent" -wait
# Reboot system
Write-Host -ForegroundColor Green “Rebooting System..."
Restart-Computer -ComputerName $env:COMPUTERNAME
I hope this is useful for you.
All information without warranty.