It also uninstall previous version of Receiver using the Receiver Cleanup Utility. You need admins rights to run this script. This script works under the system account but remains invisible for the logged in user. This seems to be a known issue with PoSHAppDeployToolkit and will most likely be fixed in the future. A copy of the last Citrix_HDX_RealTime_Media_Engine.msi in the Files folder A copy of the last Citrix Receiver named Receiver- #Version.exe in the Files folder A copy of ReceiverCleanupUtility.exe in the Files folder Here’s what you need to get the script working: I also created a script that works for non-admin users but it is more limited since SSO wont work, Cleanup utility won’t run and the HDX RealTime Media Engine plugin will not install. Try " -RunLevel HighestAvailable -Wait -PassThruĮxecute-Process -Path "Receiver-$appVersion.exe" -Parameters $appInstallParameters # Set the script execution policy for this process I added the script at computer shutdown in a GPO and it works like a charm.
Please wait.'Įxecute-MSI -Action Install -Path 'Citrix_HDX_RealTime_Media_Engine.msi' -Parameters '/qn' Show-InstallationProgress -StatusMessage 'Installing Citrix Lync Optimization Pack. Set-RegistryKey -Key 'HKLM\SOFTWARE\Policies\Citrix' -Name 'EnableFTU' -Value 0 -Type DWord # Suppress the Add Account Window in Citrix Receiver.
# Show Progress Message (with the default message) Show-InstallationWelcome -CloseApps $appCloseApps -Silent # Show Welcome Message, close apps with a 60 second countdown before automatically closing Show-InstallationRestartPrompt -Countdownseconds 5 -CountdownNoHideSeconds 5ĮlseIf ($deploymentType -ieq 'Uninstall') Remove-File -Path "$envTemp\ReceiverCleanupUtility.exe" Set-RegistryKey -Key 'HKLM\SOFTWARE\Citrix\AuthManager' -Name 'ConnectionSecurityMode' -Value 'Any' -Type String Set-RegistryKey -Key 'HKLM\SOFTWARE\Citrix\Dazzle' -Name 'SilentlyUninstallRemovedResources' -Value 'true' -Type String Set-RegistryKey -Key 'HKLM\SOFTWARE\Citrix\Dazzle' -Name 'DontWarnOfRemovedResources' -Value 'true' -Type String Set-RegistryKey -Key 'HKLM\SOFTWARE\Wow6432Node\Citrix\AuthManager' -Name 'ConnectionSecurityMode' -Value 'Any' -Type String Set-RegistryKey -Key 'HKLM\SOFTWARE\Wow6432Node\Citrix\Dazzle' -Name 'SilentlyUninstallRemovedResources' -Value 'true' -Type String Set-RegistryKey -Key 'HKLM\SOFTWARE\Wow6432Node\Citrix\Dazzle' -Name 'DontWarnOfRemovedResources' -Value 'true' -Type String # Prevent dialog boxes when resources are removed from the server.