
Uninstalling and installing Citrix clients automatically
Well, for those who need to uninstall a Citrix client from one or all computers on the network, be it a current customer or an old one to replace it with a new one if possible personalized (We can be guided by this: http://www.bujarra.com/?p=676), there is a utility from a friend of mine called UNICA de Gourami that is totally free and runs by command line. With this program we will be able to uninstall any version of the Citrix client from the version 4.0 to the current one 11.0 o XenApp Plugin. Apart from putting parameters to the command we can put the file to install after a successful uninstallation, another parameter to put a message while performing the process and another to generate a LOG file with the information of what happens.
Lo primero de todo es bajarnos UNICA (uninstall ICA) de su web HTTP://www.gourami.eu y dejarlo en una ruta, sólo es un fichero EXE y una DLL, no hay que instalar nada. Podremos dejarlo en CONTROLADOR_DE_DOMINIONETLOGON, crear una directiva de grupo (GPO) a nivel del directorio activo con un comando de inicio de sesión, para que cuando arranquen los usuarios de tu red se le desinstale el cliente con el comando que les pongamos.
El comando tiene los siguientes parámetros: unica.exe [msiexec /i “ARCHIVO MSI A INSTALAR TRAS LA DESINSTALACIÓN CORRECTA DEL CLIENTE VIEJO”],[“COMENTARIO”],[“ARCHIVO LOG”],
Ex.: srvdcnetlogonunica.exe msiexec /i srvdcnetlogonclientepersonalizado.msi,”Actualizando el cliente Citrix…”,srvdcnetlogonlogs,
Y cuando se ejecute se verá el proceso de desinstalación + instalación del cliente nuevo si nos interesase. Eye, que si queremos que nos instale el nuevo cliente de XenApp habrá que generarlo de forma obligatoria como se indica en el documento anterior, mediante el parámetro /a, ya que si no al usuario le saldrá el asistente de instalación y como que es mejor que se a totalmente transparente para ellos y además configurado mejor que mejor. And that's it!!!