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.
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):
Before you use it insert your file share path to the variable $labsources.
# 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-FeaturesWrite-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.
Cheers,
Sinisa