This shows you the differences between two versions of the page.
userspace:citrix_online_plugin_made_with_citrix_receiver [2013/12/02 20:59] SisterOfMercy created |
userspace:citrix_online_plugin_made_with_citrix_receiver [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Citrix Online Plugin ====== | ||
- | Adaptation of the opsi-template scripts for the Citrix Online Plugin. \\ | ||
- | The online plugin is not being updated any more, so we have to use Citrix Receiver.\\ | ||
- | Downloadable from the Citrix Receiver site: http:// | ||
- | As Citrix Receiver is loaded with lots of unneeded stuff, we are going to install only one component.\\ | ||
- | Extract the downloaded file with Total Commander, or an other program that can handle compressed .exe files.\\ | ||
- | We need the ICAWebWrapper.msi file, this is the .msi of the Online Plugin.\\ | ||
- | |||
- | What can be an useful tool is InstEd!: http:// | ||
- | With this we make an msi transform to change the title that is shown in the add/remove programs interface in windows. " | ||
- | In InstEd! we choose Tables -> Property, change ProductName to Citrix Online Plug-in 14.1.0.0 (or the version that you are installing).\\ | ||
- | More information about MSI transforms: http:// | ||
- | |||
- | NOTE: have to fix the rest of this wiki entry... some time soon!\\ | ||
- | But this might already help somebody.. \\ | ||
- | |||
- | This is a different version than the one already on here, this includes adding a website to the trusted zone in Internet Settings, and creating a few shortcuts. Only tested this as script, not as complete package. The mozilla-firefox package is not finished yet.\\ | ||
- | |||
- | Shortcuts are made for the https:// | ||
- | |||
- | ==== control file ==== | ||
- | |||
- | <code winst> | ||
- | [Package] | ||
- | version: 1 | ||
- | depends: | ||
- | incremental: | ||
- | |||
- | [Product] | ||
- | type: localboot | ||
- | id: citrix-plugin | ||
- | name: Citrix Online Plugin | ||
- | description: | ||
- | advice: | ||
- | version: 14.1.0.0 | ||
- | priority: -50 | ||
- | licenseRequired: | ||
- | productClasses: | ||
- | setupScript: | ||
- | uninstallScript: | ||
- | updateScript: | ||
- | alwaysScript: | ||
- | onceScript: | ||
- | customScript: | ||
- | userLoginScript: | ||
- | |||
- | [ProductDependency] | ||
- | action: setup | ||
- | requiredProduct: | ||
- | requiredStatus: | ||
- | |||
- | [Changelog] | ||
- | citrix-plugin (14.1.0.0-1) testing; urgency=low | ||
- | |||
- | * Initial package | ||
- | |||
- | </ | ||
- | |||
- | |||
- | ==== setup.ins ==== | ||
- | |||
- | <code winst> | ||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | DefVar $MsiId$ | ||
- | DefVar $UninstallProgram$ | ||
- | DefVar $LogDir$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $ExitCode$ | ||
- | |||
- | Set $LogDir$ = " | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | ; | ||
- | ; therefore please: only lower letters, no umlauts, | ||
- | ; no white space use ' | ||
- | Set $ProductId$ | ||
- | Set $MinimumSpace$ | ||
- | Set $MsiId$ = ' | ||
- | Set $InstallDir$ | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on %SystemDrive%, | ||
- | isFatalError | ||
- | ; Stop process and set installation status to failed | ||
- | else | ||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | if not (GetRegistryStringValue32(" | ||
- | comment "MSI id " + $MsiId$ + " found in registry, starting uninstall" | ||
- | Winbatch_uninstall | ||
- | sub_check_exitcode | ||
- | |||
- | comment " | ||
- | Registry_uninstall_all / | ||
- | Registry_uninstall | ||
- | |||
- | comment " | ||
- | LinkFolder_uninstall | ||
- | endif | ||
- | |||
- | Message " | ||
- | |||
- | comment "Start setup program" | ||
- | Winbatch_install | ||
- | Sub_check_exitcode | ||
- | |||
- | comment "Patch Registry" | ||
- | Registry_install_all / | ||
- | Registry_install | ||
- | |||
- | comment " | ||
- | LinkFolder_install | ||
- | |||
- | endif | ||
- | |||
- | [Winbatch_install] | ||
- | msiexec.exe /qn /i " | ||
- | ; Let's unregister the redirector plugin for all browsers.. Somehow I don't think this works yet. Blame citrix. | ||
- | " | ||
- | |||
- | [Registry_install_all] | ||
- | openkey [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\your-mom.com\subdomain] | ||
- | set " | ||
- | |||
- | [Registry_install] | ||
- | openkey [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix] | ||
- | set " | ||
- | set " | ||
- | |||
- | openkey [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters] | ||
- | set " | ||
- | |||
- | ; Let's get rid of that citrix redirector plugin! | ||
- | deletekey [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\@Citrix.com/ | ||
- | openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\Run] | ||
- | deletevar " | ||
- | |||
- | [LinkFolder_install] | ||
- | set_basefolder common_programs | ||
- | set_subfolder Citrix | ||
- | set_link | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | end_link | ||
- | set_link | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | end_link | ||
- | |||
- | set_basefolder common_desktopdirectory | ||
- | set_subfolder "" | ||
- | set_link | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | end_link | ||
- | |||
- | [Winbatch_uninstall] | ||
- | " | ||
- | |||
- | [Registry_uninstall_all] | ||
- | deletekey [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\your-mom.com\subdomain] | ||
- | |||
- | [Registry_uninstall] | ||
- | deletekey [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix] | ||
- | openkey [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters] | ||
- | deletevar " | ||
- | |||
- | [LinkFolder_uninstall] | ||
- | set_basefolder common_programs | ||
- | delete_subfolder Citrix | ||
- | |||
- | set_basefolder common_desktopdirectory | ||
- | set_subfolder "" | ||
- | delete_element Do not click me | ||
- | |||
- | |||
- | [Sub_check_exitcode] | ||
- | comment "Test for installation success via exit code" | ||
- | set $ExitCode$ = getLastExitCode | ||
- | ; informations to exit codes see | ||
- | ; http:// | ||
- | ; http:// | ||
- | if ($ExitCode$ = " | ||
- | comment "Looks good: setup program gives exitcode zero" | ||
- | else | ||
- | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
- | if ($ExitCode$ = " | ||
- | comment " | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 1641" | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 3010" | ||
- | comment " | ||
- | else | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | </ |