Find and delete all versions of Citrix Receiver manually using batch file

Note: you will need msizap.exe. It not available from Microsoft anymore but if you Google it you’ll find it.

@echo off
taskkill /IM AuthManSvr.exe /F > nul 2>&1
taskkill /IM concentr.exe /F > nul 2>&1
taskkill /IM wfcrun32.exe /F > nul 2>&1
taskkill /IM wfica32.exe /F > nul 2>&1
taskkill /IM redirector.exe /F > nul 2>&1
taskkill /IM Receiver.exe /F > nul 2>&1
taskkill /IM SelfService.exe /F > nul 2>&1
taskkill /IM SelfServicePlugin.exe /F > nul 2>&1
taskkill /IM ssonsvr.exe /F > nul 2>&1
taskkill /IM pnamain.exe /F > nul 2>&1
taskkill /IM updater.exe /F > nul 2>&1
taskkill /IM radeobj.exe /F > nul 2>&1

REM Uninstall Citrix XenApp Plugin for Hosted Apps 11.0.0.5357 and delete reg-keys from HKLM\Software\classes.

MsiExec.exe /I{388C130B-0079-46B4-A0D5-DC2DD7A89A7B} /quiet
REM For Citrix XenApp Plugin for Hosted Apps 11.0.0.5357.
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\F3BEEFBEB3E352744A0E731644ECF467” /f
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\B031C88397004B640A5DCDD27D8AA9B7” /f
REM removes web-plugin 11.0.0.5357
MsiExec.exe /I{EBFEEB3F-3E3B-4725-A4E0-376144CE4F76} /quiet

REM Uninstall Citrix Online Plug-In 12.3.0.8 and delete reg-keys from HKLM\Software\classes

“C:\ProgramData\Citrix\Citrix online plug-in – web\TrolleyExpress.exe” /uninstall /cleanup
rmdir “C:\ProgramData\Citrix\Citrix online plug-in – web” /Q /S

reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\1C0AEE1BC1B655A48839E41CC028712D” /f
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\58674D61A657DF64890833ADB6A496AE” /f

REM Remove folder from c: drive
rmdir “C:\Program Files (x86)\Citrix\ICA Client” /Q /S

REM Citrix online plug-in (SSON) 12.3.0.8
MsiExec.exe /I{0F7319A9-083D-40B3-8256-00A6F3C2AAA2} /quiet

REM USB 12.3.0.8
MsiExec.exe /I{133236FE-E2F7-4313-8BF8-A10ACAAA7CB9} /quiet

REM web 12.3.0.8
MsiExec.exe /I{2FC7287D-39DD-4A84-9806-D27D3CCDC51B} /quiet

REM hdx 12.3.0.8
MsiExec.exe /I{57287FDF-27E6-45BC-9DD2-A33545C46C1A} /quiet

REM dv 12.3.0.8
MsiExec.exe /X{6F2FDD50-E0F3-4117-B575-78E77F8D11EF} /quiet

REM Delete regkeys.
REM DV
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\05DDF2F63F0E71145B57877EF7D811FE” /f
REM hdx
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\FDF782756E72CB54D92D3A53544CC6A1” /f
REM pna
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\3D8773198D1E55B4296433805CD41326” /f
REM sson
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\9A9137F0D3803B042865006A3F2CAA2A” /f
REM usb
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\EF6323317F2E3134B88F1AA0ACAAC79B” /f
REM web
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\D7827CF2DD9348A489602DD7C3DC5CB1” /f

REM In version 12.3.0.8 there is a %programdata%-folder so run:
“C:\ProgramData\Citrix\Citrix online plug-in\TrolleyExpress.exe” /uninstall /cleanup
rmdir “C:\ProgramData\Citrix\Citrix online plug-in” /Q /S

REM Uninstall Citrix Receiver 14.4. The ReceiverCleanupUtility.exe removes a lot but we manually remove these reg keys.

REM aero
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\39209FA8EAE95134699BB68CB81B2D64” /f
REM authentication
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\C32044992FE99DC4BBE6CD0198F542B6” /f
REM Citrix inside
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\2E00671D2CFD34240A5726B1CAEE20C5” /f
REM webhelper
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\DDF5F12BD35BE384B9BE4B9AB77F49F2” /f
REM dv
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\FCD2A818A53A67148AE4601FB9F05F71” /f
REM hdx-flash
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\30CA808B063E4CF46AA66C4166225CB5” /f
REM selfservice
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\277BF9E19A51770439C4119C7219D9D7” /f
REM SSON
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\C4B86096242698648B5E511A8E62DB1A” /f
REM USB
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\14355E4666DF3804F94F374E1FA99AEC” /f

REM Online Plug-in 14.4.0.8014.
MsiExec.exe /I{3D6AA3F8-2977-474E-95EB-4058983C4C0F} /quiet
REM online plug-in
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\8F3AA6D37792E47459BE048589C3C4F0” /f

REM If there are any other Citrix-versions this loop will find it and uninstall it. Msizap.exe is already locally stored on our machines in C:\Windows.

del guids.txt
:: Find the text-file. If not – create a new one.

FOR /F “skip=2 tokens=2,*” %%A IN (‘reg.exe query “HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Citrix\PluginPackages\XenAppSuite” /s /v “ProductCode”‘) DO echo %%B>>guids.txt

for /f %%a in (guids.txt) do msiexec.exe /X %%a /quiet

for /f %%a in (guids.txt) do C:\Windows\msizap.exe TWA! %%a

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.