Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Preconfigured Citrix Receiver

$
0
0

I am a newbie with Autoit - the following script works for me but I just wanted to find out if there was anything wrong with it (I skipped pasting some of the additional registry key settings in the middle of the script):

 

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=C:\ICONS\Receiver.ico
#AutoIt3Wrapper_Outfile=Receiver_3_4.exe
#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

$M = MsgBox(68,"Citrix Receiver 3.4.0.295 Install","The 32 bit Citrix Receiver version 3.4.0.295 will be installed. Do you want to continue?")
If $M = 7 Then
 Exit
ElseIf $M = 6 Then
    $U = MsgBox(52,"Citrix Receiver 3.4.0.295 Install","Have all previous Citrix clients been uninstalled?")
 If $U = 7 Then
 Exit
 Else
 RegDelete("HKEY_CURRENT_USER\SOFTWARE\Citrix\ICAClient")
 RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\ICAClient")
 SplashTextOn('Citrix Receiver 3.4.0.295 Install', 'Please wait.....installation in progress. Upon completion, a reboot screen will appear', 300, 80)
 Sleep(8000)
 FileInstall("U:\Citrix\Clients\Receiver_3_4\CitrixReceiver.exe", @TempDir & "\")
 FileInstall("U:\Citrix\Clients\Receiver_3_4\ProgressNotification.dll", @TempDir & "\")
 RunWait(@TempDir & "\" & "CitrixReceiver.exe /silent /noreboot /includeSSON /ALLOWADDSTORE=N ADDLOCAL=ReceiverInside,ICA_Client,SSON ENABLE_DYNAMIC_CLIENT_NAME=Yes ENABLE_SSON=Yes")
 FileMove("C:\Program Files\Citrix\ICA Client\ProgressNotification.dll", "C:\Program Files\Citrix\ICA Client\ProgressNotification.dll.old")
 FileMove("C:\Program Files\Citrix\ICA Client\Receiver\ProgressNotification.dll", "C:\Program Files\Citrix\ICA Client\Receiver\ProgressNotification.dll.old")
 FileCopy(@TempDir & "\*.dll", "C:\Program Files\Citrix\ICA Client\", 1)
 FileCopy(@TempDir & "\*.dll", "C:\Program Files\Citrix\ICA Client\Receiver\", 1)
 SplashOff()
 EndIf
EndIF

# *** Connection Center Settings *****
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\ICA Client\Engine\Configuration\Advanced\Modules\WFClient", "TWISeamlessFlag", "REG_SZ", "1")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\ICA Client", "NotificationDelay", "REG_DWORD", "00000000")

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\ICA Client\Client Selective Trust\oidInternetRegion", "className", "REG_SZ", "Region")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\ICA Client\Client Selective Trust\oidInternetRegion", "isRoot", "REG_SZ", "true")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\ICA Client\Client Selective Trust\oidInternetRegion", "stereotype", "REG_SZ", "DbObject")

FileDelete(@TempDir & "\" & "CitrixReceiver.exe")
FileDelete(@TempDir & "\" & "ProgressNotification.dll")

$E = MsgBox(36,"Citrix Receiver 3.4.0.295 Install","32 bit Citrix Receiver version 3.4.0.295 installation requires a reboot. Do you want to reboot

now?")
If $E = 6 Then
Shutdown(6) ;Force a reboot
ElseIf $E = 7 Then
 Exit
EndIf

 

 

Thanks in Advance!

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>