User Tools

Site Tools


userspace:thinprint

Differences

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

Link to this comparison view

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 and 2 properties with name UDPPort and TCPPort. So you can define the ports for the firewall. The default value are for this program is 4000 for both ports ( program standard)
  
-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 und 2 Produkteigenschften mit dem Namen UDPPort und TCPPort. Damit haben Sie die Möglichkeit, die Firewall-Ports vorzudefinieren. Als Standardeinstellung ist 4000 für beide Ports (Prorgamm-Standard)
  
-testet under Windows 7/32 Bit / Getestet unter Windows 7 32 Bit +tested under Windows 7/32 Bit / Getestet unter Windows 7 32 Bit 
  
 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 //[[hungerharke@gmx.de|Thomas_H]] // / Die Scripte basieren auf einer Lösung vom Forum - Mitglied //[[hungerharke@gmx.de|Thomas_H]]// the scripts are based of a Solution from forum member //[[hungerharke@gmx.de|Thomas_H]] // / Die Scripte basieren auf einer Lösung vom Forum - Mitglied //[[hungerharke@gmx.de|Thomas_H]]//
    
 +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 >= "4.10.8.6" requiredWinstVersion >= "4.10.8.6"
- + 
 +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("install_architecture","system specific") set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
- +Set $UDPPort$ = GetProductProperty("UDPPort","4000"
 +Set $TCPPort$ = GetProductProperty("TCPPort","4000")
    
 Set $LogDir$ = "%SystemDrive%\tmp" Set $LogDir$ = "%SystemDrive%\tmp"
-  
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
 ; - 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$ ="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy"
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
  
Line 121: Line 143:
    
         comment "Installiere ThinPrint Client 8.0 ICA..."         comment "Installiere ThinPrint Client 8.0 ICA..."
- + message "Check set for Firewall-Rules" 
 + ;Check the System-Version to configure the Firewall 
 + if ($MSOS$ = "5.1"
 + set $FirewallRulesPath$ = "[" + $FirewallRulesPath$ + "\DomainProfile\GloballyOpenPorts\List]" 
 + Set $TCPRulesName$ = $TCPPort$ + ":TCP" 
 + Set $TCPRule$ = $TCPPort$ + ":TCP:*:Enabled:ThinClient TCP" 
 + Set $UDPRulesName$ = $UDPPort$ + ":UDP" 
 + Set $UDPRule$ = $UDPPort$ + ":UDP:*:Enabled:ThinClient UDP" 
 + else 
 + set $FirewallRulesPath$ = "[" + $FirewallRulesPath$ + "\FirewallRules]" 
 + Set $TCPRulesName$ = "{15B415D5-76C8-4F51-A346-F84B9D0E040B}" 
 + Set $TCPRule$ = "v2.10|Action=Allow|Active=TRUE|Dir=In|Protocol=6|Profile=Domain|LPort=" + $TCPPort$ + "|Name=Thinprint TCP|" 
 + Set $UDPRulesName$ = "{68A18B74-453D-4C73-BE39-805005537059}" 
 + Set $UDPRule$ = "v2.10|Action=Allow|Active=TRUE|Dir=In|Protocol=17|Profile=Domain|LPort=" + $UDPPort$ + "|Name=Thinprint UDP|" 
 + endif 
 + DefVar $RegCheck$ 
 +        Set $RegCheck$ =  $FirewallRulesPath$+" "+$TCPRulesName$        
 + set $CompValue$ = GetRegistryStringValue ($RegCheck$) 
 + if not($CompValue$ =""
 + message "Schlüssel vorhanden" 
 + Registry_Modify_TP 
 + else 
 + Registry_Add_TP 
 + message "Key created" 
 + endif 
         if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")         if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
                 Message "Installiere " + $ProductId$ + ". Das kann etwas laenger dauern, bitte Geduld..."                 Message "Installiere " + $ProductId$ + ". Das kann etwas laenger dauern, bitte Geduld..."
Line 161: Line 208:
    
 endif endif
 +;add the firewall - rules for ThinPrint
 +[Registry_Add_TP]
 +openkey $FirewallRulesPath$
 +Add "$TCPRulesName$"=REG_SZ:"$TCPRule$"
 +Add "$UDPRulesName$"=REG_SZ:"$UDPRule$"
 +
 +;if existing predefined rules, delete the rules and add the new rules
 +[Registry_Modify_TP]
 +openkey $FirewallRulesPath$
 +DeleteVar "$TCPRulesName$"
 +DeleteVar "$UDPRulesName$"
 +Add "$TCPRulesName$"=REG_SZ:"$TCPRule$"
 +Add "$UDPRulesName$"=REG_SZ:"$UDPRule$"
 +;retrieve the data for the system
 +[Sub_OS_Detect]
 + Set $OS$ = GetOS
 + if $OS$ = "Windows_NT"
 +   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 "$RegName$"=REG_SZ:"$RegValue$"
  
 [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: "PIDKEY"
 +attribute: "Value" value="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
 +end
 +SetAttribute  "Value"  value="$LicenseKey$"
 </code> </code>
  
Line 317: Line 403:
 Set $Uninst_Cmd$        = " /X{4A7DCE09-9A5A-4A75-ACA5-98D13D400816} /quiet" Set $Uninst_Cmd$        = " /X{4A7DCE09-9A5A-4A75-ACA5-98D13D400816} /quiet"
 ; 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
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
    
userspace/thinprint.1335656360.txt.gz · Last modified: 2021/08/23 08:37 (external edit)