Skip to content

Instantly share code, notes, and snippets.

@thattommyhall
Created February 10, 2010 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thattommyhall/300487 to your computer and use it in GitHub Desktop.
Save thattommyhall/300487 to your computer and use it in GitHub Desktop.
:: USES UNICA from http://www.gourami.eu/products/unica
:: and filever from the supportkit
@echo off
::
set version=
if not exist "C:\Program Files\Citrix\ICA Client\pnagent.exe" goto install
:checkversion
for /f "Tokens=5" %%a in ('\\dc01-nacifs-01\cifs\XenAppClient11.2\filever.exe "C:\Program Files\Citrix\ICA Client\pnagent.exe"') do set version=%%a
::echo %version%
if %version% == 11.2.0.31560 goto :end
:install
regedit /s \\dc01-nacifs-01\cifs\XenAppClient11.2\pnagent.reg
\\dc01-nacifs-01\cifs\XenAppClient11.2\unica.exe \\dc01-nacifs-01\cifs\XenAppClient11.2\CitrixOnlinePluginFull.exe, "Replacing Citrix Client-You may be prompted to remove files-Please click next or ok if so-Call IS if you are unsure or something goes wrong",\\dc01-nacifs-01\cifs\XenAppClient11.2\logs
regedit /s \\dc01-nacifs-01\cifs\XenAppClient11.2\pnagent.reg
:end
set version=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment