With this blog post, I want to show you how to install Citrix StoreFront 3.0.1 with all its 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 behavior 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.
Prerequisites
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
- Security
- 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 the 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:
StoreFront Installation
CitrixStoreFront-x64.exe [fusion_builder_container hundred_percent="yes" overflow="visible"][fusion_builder_row][fusion_builder_column type="1_1" background_position="left top" background_color="" border_size="" border_color="" border_style="solid" spacing="yes" background_image="" background_repeat="no-repeat" padding="" margin_top="0px" margin_bottom="0px" class="" id="" animation_type="" animation_speed="0.3" animation_direction="left" hide_on_mobile="no" center_content="no" min_height="none"][-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 a 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
Add-windowsfeature Web-Server
# Windows-Feature Web-Basic-Auth
Write-Host “Installing Web-Basic-Auth” -ForegroundColor Green
Add-windowsfeature Web-Basic-Auth
# Windows-Feature Web-Http-Redirect
Write-Host “Installing Web-Http-Redirect” -ForegroundColor Green
Add-windowsfeature Web-Http-Redirect
# Windows-Feature Web-Windows-Auth
Write-Host “Installing Web-Windows-Auth” -ForegroundColor Green
Add-windowsfeature Web-Windows-Auth
# Windows-Feature Web-App-Dev
Write-Host “Installing Web-App-Dev” -ForegroundColor Green
Add-windowsfeature Web-App-Dev
# Windows-Feature Web-Net-Ext45
Write-Host “Installing Web-Net-Ext45” -ForegroundColor Green
Add-windowsfeature Web-Net-Ext45
# Windows-Feature Web-AppInit
Write-Host “Installing Web-AppInit” -ForegroundColor Green
Add-windowsfeature Web-AppInit
# Windows-Feature Web-Asp-Net45
Write-Host “Installing Web-Asp-Net45” -ForegroundColor Green
Add-windowsfeature Web-Asp-Net45
# Windows-Feature Web-Mgmt-Tools
Write-Host “Installing Web-Mgmt-Tools” -ForegroundColor Green
Add-windowsfeature Web-Mgmt-Tools
# Windows-Feature Web-Scripting-Tools
Write-Host “Installing Web-Scripting-Tools” -ForegroundColor Green
Add-windowsfeature Web-Scripting-Tools
# Windows-Feature NET-Framework-45-Features
Write-Host “Installing NET-Framework-45-Features” -ForegroundColor Green
Add-windowsfeature NET-Framework-45-Features
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 is without warranty.
Cheers,
Sinisa