Husband, father, IT dude & blogger wrapped up into one good looking package.
The Curious Place Store
VBScript to Uninstall Citrix Clients
I wrote the following script to assist with the deployment of the Citrix Online Plug-In via. Active Directory (or Group Policy). Citrix had stopped providing the client in .MSI format and Administrators had to find a new way to deploy the clients.
This script takes care of one piece of the new deployment. Back when the script was originally written, it’s purpose was to uninstall any Citrix clients found leaving only “Citrix Online Plugin v12.0”, as that was the new targeted version at the time. However, the script has now been updated to remove ANY clients found. There are notes in the script header on how to modify it to leave a targeted version on the machine. Run this script prior to the installation the Citrix client to make sure you have a clean slate before installing the new client.
Update 1 (5/25/2010): * The original version utilized Win32_Product to enumerate the installed products. It sometimes took 4-5 minutes to enumerate. This was not acceptable as this is a logon script that may run every time the computer is started. The script now searches the registry directly in order to speed up processing. This takes about 5 seconds vs. 4-5 minutes.
Update 2 (6/2/2010): * Fixed a bug that would cause the script to blow up if an installed application had anything other than numbers in it’s version.
Update 3 (8/4/2010): * Improved the Uninstall string parsing. The prior versions sometimes got confused on what was the executable and what were the arguments. This was only an issue where the Citrix client was installed using the .EXE. The .MSI uninstalls were fine.
Added “Citrix Program Neighborhood” as an install title to be removed as it was overlooked.
Added the “Citrix Web ICA Client” to the list of clients to be removed. Unfortunately, CTXSETUP.exe doesn’t have a silent uninstall so users will be prompted if they want to remove. If I get enough requests, I should be able to figure something out using the SendKeys() function.
Update 4 (7/11/2012): * Script is now configured to remove ANY Citrix client found (ie. It is not configured to keep Online Plug-in v12.0 as it once was.)
Per request, I added “Citrix Receiver” as an install title to be removed.
Update 5 (10/19/2012): * The script has been updated to work on 64-bit systems.
Update 5 (10/23/2012): * Added CITRIX XENAPP PLUGIN FOR HOSTED APPS as a client to be removed.