Please refer to the steps below on how to use PowerShell Script to Deploy / Upgrade Citrix Receiver in Windows 7 x64 Machines
- Please download Citrix Receiver 4.9 LTSR – I did try to install Citrix Receiver 4.12 but obviously it seem like having bug with Windows 7 and cannot be installed successfully
- Use the following PowerShell Script to detect whether Citrix Receiver is installed
#Verify Whether Citrix Receiver is installed
if (!(Test-Path "HKLM:\SOFTWARE\Wow6432Node\Citrix")) {
Write-Host -ForegroundColor RED "ICA Client is NOT Installed"
#Install Citrix Online Plug In
cmd /c "\\192.168.1.201\CITRIX$\CitrixOnlinePluginFull.exe /silent"
}
If it is NOT installed previously, it will install Citrix Online Plugin 12.3 Update 4 silently from Network Share Driver which had been End of Support (EOL) to simulate the upgrade from Citrix Online Plugin 12.3 U4 to Citrix Receiver 4.9 LTSR
- Use the following PowerShell Script to detect whether Citrix Receiver is installed and the version is less than 12.4 (Citrix Online Plugin = 12.3)
if ((Test-Path "HKLM:\SOFTWARE\Wow6432Node\Citrix") -and `
((Get-ItemProperty "HKLM:\SOFTWARE\Wow6432Node\Citrix\PluginPackages\XenAppSuite\ICA_Client").version) -lt "12.4") {
#Version of Installed Citrix ICA Client
Write-Host -ForegroundColor Green "Citrix ICA is installed"+ ((Get-ItemProperty "HKLM:\SOFTWARE\Wow6432Node\Citrix\PluginPackages\XenAppSuite\ICA_Client").version)
#Upgrade Existing 12.3 to 4.9 LTSR
cmd /c "\\192.168.1.201\CITRIX$\CitrixReceiverLTSR.exe /silent /RCU"
}
When the Script run silently, it will remove the installed Citrix Online Plugin 12.3 and install Citrix Receiver 4.9 LTSR Automatically
- Assign the PowerShell Script as Computer Startup Script in AD to install / upgrade to Citrix Receiver 4.9 in Windows 7 x64 machines
#Verify Whether Citrix Receiver is installed
if (!(Test-Path "HKLM:\SOFTWARE\Wow6432Node\Citrix")) {
cmd /c "\\192.168.1.201\CITRIX$\CitrixReceiverLTSR.exe /silent"
}
elseif ((Test-Path "HKLM:\SOFTWARE\Wow6432Node\Citrix") -and `
((Get-ItemProperty "HKLM:\SOFTWARE\Wow6432Node\Citrix\PluginPackages\XenAppSuite\ICA_Client").version) -lt "12.4") {
#Upgrade Existing 12.3 to 4.9 LTSR
cmd /c "\\192.168.1.201\CITRIX$\CitrixReceiverLTSR.exe /silent /RCU"
}