This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
userspace:thinprint [2012/04/28 23:39] frisoft created |
userspace:thinprint [2021/08/23 08:37] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| === ThinPrint Client 8.0 MSI-Package === | === ThinPrint Client 8.0 MSI-Package === | ||
| - | this script deployed the .print Client engine for Citrix. You must defined a product dependency to the Citrix Plugin for hosted solutions | + | this script deployed the .print Client engine for Citrix. You must defined a product dependency to the Citrix Plugin for hosted solutions |
| - | Dieses Script verteilt die .print Client Komponente von ThinPrint. In der Produktdefinition müssen Sie eine Produktabhängigkeit zu den Ctrix Plugin für gehostete Anwendungen erstellen | + | Dieses Script verteilt die .print Client Komponente von ThinPrint. In der Produktdefinition müssen Sie eine Produktabhängigkeit zu den Ctrix Plugin für gehostete Anwendungen erstellen |
| - | testet | + | tested |
| the 64 Bit section is under construction / Die 64 Bit Sektion ist noch in Arbeit | the 64 Bit section is under construction / Die 64 Bit Sektion ist noch in Arbeit | ||
| Line 18: | Line 18: | ||
| the scripts are based of a Solution from forum member // | the scripts are based of a Solution from forum member // | ||
| + | the next steps / die nächsten Schritte | ||
| + | |||
| + | * Imimplement a version-query for the thinprint client / Einbau einer Versionsprüfung für den Thinprint -Client | ||
| + | * Changing the Firewallports / Ändern der Firewallports | ||
| Line 33: | Line 37: | ||
| <code winst> | <code winst> | ||
| [Initial] | [Initial] | ||
| - | LogLevel=9 | + | setLogLevel=9 |
| ; Log Errors in Logfile but don't abort: | ; Log Errors in Logfile but don't abort: | ||
| ExitOnError=false | ExitOnError=false | ||
| Line 46: | Line 50: | ||
| [Actions] | [Actions] | ||
| requiredWinstVersion >= " | requiredWinstVersion >= " | ||
| - | + | ||
| + | DefVar $OS$ | ||
| + | DefVar $NTVersion$ | ||
| + | DefVar $MSOS$ | ||
| + | DefVar $Systemtype$ | ||
| DefVar $MsiId32$ | DefVar $MsiId32$ | ||
| DefVar $UninstallProgram32$ | DefVar $UninstallProgram32$ | ||
| Line 71: | Line 80: | ||
| DefVar $Uninst_Prg$ | DefVar $Uninst_Prg$ | ||
| DefVar $InstDest$ | DefVar $InstDest$ | ||
| + | DefVar $RegName$ | ||
| + | DefVar $RegValue$ | ||
| + | DefVar $FireWallRulesPath$ | ||
| + | DefVar $UDPPort$ | ||
| + | DefVar $TCPPort$ | ||
| + | DefVar $TCPRulesname$ | ||
| + | DefVar $UDPRulesName$ | ||
| + | DefVar $TCPRule$ | ||
| + | DefVar $UDPRule$ | ||
| + | DefVar $CompValue$ | ||
| - | Set $INST_SystemType$ = GetSystemType | + | Sub_OS_Detect |
| + | |||
| + | Set $INST_SystemType$ = $Systemtype$ | ||
| set $INST_architecture$ = GetProductProperty(" | set $INST_architecture$ = GetProductProperty(" | ||
| - | + | Set $UDPPort$ = GetProductProperty(" | |
| + | Set $TCPPort$ = GetProductProperty(" | ||
| Set $LogDir$ = " | Set $LogDir$ = " | ||
| - | |||
| ; ---------------------------------------------------------------- | ; ---------------------------------------------------------------- | ||
| ; - Please edit the following values | ; - Please edit the following values | ||
| Line 97: | Line 118: | ||
| Set $Uninst_Cmd$ = "" | Set $Uninst_Cmd$ = "" | ||
| Set $Uninst_Prg$ = "" | Set $Uninst_Prg$ = "" | ||
| + | Set $FirewallRulesPath$ =" | ||
| ; ---------------------------------------------------------------- | ; ---------------------------------------------------------------- | ||
| Line 121: | Line 143: | ||
| comment " | comment " | ||
| - | + | message "Check set for Firewall-Rules" | |
| + | ;Check the System-Version to configure the Firewall | ||
| + | if ($MSOS$ = " | ||
| + | set $FirewallRulesPath$ = " | ||
| + | Set $TCPRulesName$ = $TCPPort$ + ": | ||
| + | Set $TCPRule$ = $TCPPort$ + ": | ||
| + | Set $UDPRulesName$ = $UDPPort$ + ": | ||
| + | Set $UDPRule$ = $UDPPort$ + ": | ||
| + | else | ||
| + | set $FirewallRulesPath$ = " | ||
| + | Set $TCPRulesName$ = " | ||
| + | Set $TCPRule$ = " | ||
| + | Set $UDPRulesName$ = " | ||
| + | Set $UDPRule$ = " | ||
| + | endif | ||
| + | DefVar $RegCheck$ | ||
| + | Set $RegCheck$ = $FirewallRulesPath$+" | ||
| + | set $CompValue$ = GetRegistryStringValue ($RegCheck$) | ||
| + | if not($CompValue$ ="" | ||
| + | message " | ||
| + | Registry_Modify_TP | ||
| + | else | ||
| + | Registry_Add_TP | ||
| + | message "Key created" | ||
| + | endif | ||
| if (($INST_SystemType$ = "x86 System" | if (($INST_SystemType$ = "x86 System" | ||
| Message " | Message " | ||
| Line 161: | Line 208: | ||
| endif | endif | ||
| + | ;add the firewall - rules for ThinPrint | ||
| + | [Registry_Add_TP] | ||
| + | openkey $FirewallRulesPath$ | ||
| + | Add " | ||
| + | Add " | ||
| + | |||
| + | ;if existing predefined rules, delete the rules and add the new rules | ||
| + | [Registry_Modify_TP] | ||
| + | openkey $FirewallRulesPath$ | ||
| + | DeleteVar " | ||
| + | DeleteVar " | ||
| + | Add " | ||
| + | Add " | ||
| + | ;retrieve the data for the system | ||
| + | [Sub_OS_Detect] | ||
| + | Set $OS$ = GetOS | ||
| + | if $OS$ = " | ||
| + | Set $NTVersion$ = GetNTVersion | ||
| + | endif | ||
| + | set $MSOS$ = GetMSVersionInfo | ||
| + | set $Systemtype$ = GetSystemtype | ||
| Line 227: | Line 295: | ||
| endif | endif | ||
| + | [Registry_Add_Firewall] | ||
| + | openkey [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\FirewallRules] | ||
| + | Add " | ||
| [Sub_check_exitcode] | [Sub_check_exitcode] | ||
| Line 260: | Line 330: | ||
| endif | endif | ||
| endif | endif | ||
| + | |||
| + | [XMLPatch_config] | ||
| + | OpenNodeSet | ||
| + | - error_when_no_node_existing false | ||
| + | - warning_when_no_node_existing true | ||
| + | - error_when_nodecount_greater_1 false | ||
| + | - warning_when_nodecount_greater_1 true | ||
| + | - create_when_node_not_existing true | ||
| + | - attributes_strict false | ||
| + | |||
| + | documentroot | ||
| + | all_childelements_with: | ||
| + | elementname: | ||
| + | attribute: " | ||
| + | end | ||
| + | SetAttribute | ||
| </ | </ | ||
| Line 317: | Line 403: | ||
| Set $Uninst_Cmd$ | Set $Uninst_Cmd$ | ||
| ; the correct uninstall command you are looked in the registry under the Hive | ; the correct uninstall command you are looked in the registry under the Hive | ||
| - | ; | + | ; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall |
| ; ---------------------------------------------------------------- | ; ---------------------------------------------------------------- | ||