User Tools

Site Tools


userspace:citrix_online_plugin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

userspace:citrix_online_plugin [2011/12/12 09:41]
Spoxs created
userspace:citrix_online_plugin [2021/08/23 08:37]
Line 1: Line 1:
-=== Citrix Online Plugin 12.1 === 
  
-Dieses Plugin installiert das Citrix Online Plugin als Fullinstallation. 
-Dazu wird der Citrix Client entsprechend mit Signle Sign On an der eigenen Citrix Farm aktiviert, ICA Dateien mit dem Plugin verknüpft. 
- 
-Getestet auf Windows XP 32-Bit und Windows 7 64-Bit 
- 
-Fragen an //[[frank.hietzig@reinert.de|Spoxs]]// 
- 
-Meine Verzeichnisstruktur: 
-<code> 
- files\citrix.png 
- files\CitrixOnlinePluginFull.exe 
- setup.ins 
- uninstall.ins 
-</code> 
- 
-==== setup.ins ==== 
-<code winst> 
- 
-[Actions] 
-requiredWinstVersion >= "4.10.8.6" 
- 
-DefVar $LogDir$ 
-DefVar $ProductId$   
-DefVar $MinimumSpace$ 
-DefVar $InstallDir32$ 
-DefVar $ExitCode$ 
-DefVar $INST_SystemType$ 
-DefVar $INST_architecture$ 
-DefVar $OSVersion$ 
-DefVar $INST_MsVersion$ 
- 
-;#############################################################  
-;########## Set Varaibles ########## 
-;############################################################# 
- 
-Set $INST_SystemType$ = GetSystemType 
-set $INST_architecture$ = GetProductProperty("install_architecture","system specific") 
-Set $LogDir$ = "%SystemDrive%\tmp" 
-Set $ProductId$        = "citrix-plugin" 
-Set $MinimumSpace$    = "100 MB" 
-Set $InstallDir32$      = "%ProgramFiles32Dir%\Citrix" 
-; OS Version: 5.0 = W2K; 5.1 = XP; 5.2 = XP64,W2k3,W2k3R2; 6.0 = Vista,W2k8; 6.1 = W7,W2k8R2 
-Set $OSVersion$ = "5.1" 
-Set $INST_MsVersion$ = GetMSVersionInfo 
- 
- 
-;#############################################################  
-;########## Check Systemrequirements ########## 
-;############################################################# 
- 
-if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$)) 
- LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$ 
- isFatalError 
- ; Stop process and set installation status to failed 
-else 
- comment "Show product picture" 
- ShowBitmap "%ScriptPath%\files\citrix.png" $ProductId$ 
-endif 
- 
-if $INST_MsVersion$ < $OSVersion$ 
- LogError "The OS Version is not required for $ProductID$"  
- isFatalError 
- ; Stop process and set installation status to failed 
-endif 
-  
-;#############################################################  
-;########## Start Installation Script ########## 
-;############################################################# 
-  
-Winbatch_install 
-  
-Sub_check_exitcode 
-  
-;#############################################################  
-;########## Installation Script ########## 
-;############################################################# 
- 
-[Winbatch_install] 
-"%ScriptPath%\files\CitrixOnlinePluginFull.exe" /silent ADDLOCAL="ICA_Client,PN_Agent,SSON,Flash,USB,DesktopViewer" ENABLE_SSON="Yes" SERVER_LOCATION="http://citrix.your-domain.tld" 
- 
-[Sub_check_exitcode] 
-comment "Test for installation success via exit code" 
-set $ExitCode$ = getLastExitCode 
-; informations to exit codes see 
-; http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx 
-; http://msdn.microsoft.com/en-us/library/aa368542.aspx 
-if ($ExitCode$ = "0") 
- comment "Looks good: setup program gives exitcode zero" 
-else 
- comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ 
- if ($ExitCode$ = "1605") 
- comment "ERROR_UNKNOWN_PRODUCT 1605 This action is only valid for products that are currently installed." 
- comment "Uninstall of a not installed product failed - no problem" 
- else 
- if ($ExitCode$ = "1641") 
- comment "looks good: setup program gives exitcode 1641" 
- comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart. This message is indicative of a success." 
- else 
- if ($ExitCode$ = "3010") 
- comment "looks good: setup program gives exitcode 3010" 
- comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 A restart is required to complete the install. This message is indicative of a success." 
- else 
- logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$ 
- isFatalError 
- endif 
- endif 
- endif 
-endif  
-;#############################################################  
-;########## End of Script ########## 
-;############################################################# 
-</code> 
- 
- 
-==== unistall.ins ==== 
-<code winst> 
- 
-[Actions] 
-requiredWinstVersion >= "4.10.8.6" 
- 
-;############################################################# 
-;######### define Variables ########## 
-;############################################################# 
- 
-DefVar $MsiId32$ 
-DefVar $UninstallProgram$ 
-DefVar $LogDir$ 
-DefVar $ExitCode$ 
-DefVar $ProductId$ 
-DefVar $InstallDir32$ 
-DefVar $Bitmap$ 
-DefVar $MsiId64$ 
- 
-;############################################################# 
-;######### Please Set Variables ########## 
-;############################################################# 
- 
-Set $ProductId$        = "citrix-plugin" 
-Set $InstallDir32$      = "%ProgramFiles32Dir%\Citrix" 
-Set $Bitmap$ = "%scriptpath%\files\citrix.png" 
-Set $LogDir$ = "%SystemDrive%\tmp" 
-Set $MsiId32$ = "C:\ProgramData\Citrix\Citrix Online Plug-in\TrolleyExpress.exe" 
- 
-;############################################################# 
-;######### starting deinstall script ########## 
-;############################################################# 
- 
-comment "Show product picture" 
-ShowBitmap $Bitmap$ $ProductId$ 
- 
-;#############################################################  
-;########## Start uninstall script ########## 
-;############################################################# 
- 
-Winbatch_uninstall 
-Sub_check_exitcode 
- 
-;#############################################################  
-;########## Installation Script ########## 
-;############################################################# 
- 
-[Winbatch_uninstall] 
-"$MsiId32$" /uninstall /cleanup /silent 
- 
-[Sub_check_exitcode] 
-comment "Test for installation success via exit code" 
-set $ExitCode$ = getLastExitCode 
-; informations to exit codes see 
-; http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx 
-; http://msdn.microsoft.com/en-us/library/aa368542.aspx 
-if ($ExitCode$ = "0") 
- comment "Looks good: setup program gives exitcode zero" 
-else 
- comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ 
- if ($ExitCode$ = "1605") 
- comment "ERROR_UNKNOWN_PRODUCT 1605 This action is only valid for products that are currently installed." 
- comment "Uninstall of a not installed product failed - no problem" 
- else 
- if ($ExitCode$ = "1641") 
- comment "looks good: setup program gives exitcode 1641" 
- comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart. This message is indicative of a success." 
- else 
- if ($ExitCode$ = "3010") 
- comment "looks good: setup program gives exitcode 3010" 
- comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 A restart is required to complete the install. This message is indicative of a success." 
- else 
- logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$ 
- isFatalError 
- endif 
- endif 
- endif 
-endif  
-;#############################################################  
-;########## End of Script ########## 
-;############################################################# 
-</code> 
userspace/citrix_online_plugin.txt · Last modified: 2021/08/23 08:37 (external edit)