Over the years I have run into some pretty strange issues with Application installs, but one that to this day still trips me up is with the Citrix Plugin.
The installation seems to “hang” until you move and or click the Mouse. Seems weird, but true…
So I went online to see if anyone had already slain this beast and found the following:
While not exactly the same, it gave me a place to start working from.
I took the Source Code example but wanted something that wouldn’t just run once or for a period of time, so I reworked the script so it would move the mouse and click until the process was terminated.
This script requires AutoIt v3. AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It can be obtained from http://www.autoitscript.com.
Just Compile this script and place it as a Application Install just ahead of Citrix Receiver, then place a Reboot after the Citrix Receiver and the installation delays go away.
;Reruns itself and returns - only works when compiled
If $CmdLine = 0 Then
; Rerun ourself and let this copy return to the task sequencer
Run('"' & @AutoItExe & '" rerun')
Local $arrLocation = [[50, 50], [200, 50], [50, 200], [200, 200]]
For $i = 0 to UBound( $arrLocation, 1) - 1
For $j = 0 to UBound($arrLocation, 2) - 1
If $j = 0 Then $x = $arrLocation[$i][$j]
If $j = 1 Then $y = $arrLocation[$i][$j]