User Tools

Site Tools


userspace:java-ng

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userspace:java-ng [2014/01/20 14:43]
Kevin W. Add Download Link of installable opsi package
userspace:java-ng [2021/08/23 08:37] (current)
Line 1: Line 1:
-====== Java-NG ======+====== Java 8 (EOL) ======
 **Feel free to contact me :)** **Feel free to contact me :)**
  
-Tested with opsi 4.0.3.1\\ +Tested with Debian 9\\ 
-requiredWinstVersion >= 4.10.8.3\\ +Tested with Opsi 4.0.7.45\\ 
-Tested with Windows 7/8 Enterprise x64/x32\\ +Tested with Winst 4.11.6.12\\ 
-Tested with Java 6u24 - 7u51\\ +Tested with Server 2016 x64\\ 
-By [[Kevin.Weis@faw.de|Kevin Weis]] 2014-01-17\\+Tested with 10 Enterprise x64\\ 
 +Tested with 8.1 Pro x64\\ 
 +Tested with 7 Pro x64\\ 
 +Tested with 7 Pro x86\\ 
 +requiredWinstVersion >= 4.11.5\\
  
-Download: [[https://dl.dropboxusercontent.com/u/27159788/static/java_7.0.51-3.opsi | installable opsi package]]\\ +**This package will not receive any updates**
-**First read: [[#Important to know]]**+
  
-<code> +Download[[https://compilenix.org/public/opsi/localboot/java/java_1.8.0.202-4.2.5.opsi All in one installable opsi package]]\\ 
-Tree: +Checksum's and detached pgp signatures: https://compilenix.org/public/opsi/localboot/java/
-|-- UnlimitedJCEPolicy +
-|   |-- local_policy.jar +
-|   `-- US_export_policy.jar +
-|-- autoit3.exe +
-|-- check_uninstall.ins +
-|-delsub.ins +
-|-- java.png +
-|-- javaFullSize.png +
-|-- setup.ins +
-`-- uninstall.ins +
-</code>+
  
-== What is does, and what not == +Source Code[[https://git.compilenix.org/Compilenix/opsi-java | Code repository]]\\ 
- It Does: +Check if you have the JCE installed: [[https://compilenix.org/public/opsi/jceCheck.jar | jceCheck.jar]] [[https://compilenix.org/public/opsi/jceCheck.jar.asc (detached pgp signature)]]\\
-  - Uninstall all versions of Java from 1.6.0.10 until 1.7.0.51 +
-  Handle x64 and x32 install and uninstall (Always install a x32 version of Java) +
-  - Add the JCE Patch to every Java installation; see: [[http://docs.oracle.com/javase/7/docs/technotes/guides/security/SunProviders.html JCE Documentation]]+
  
- It Does Not+All downloads are pgp signed with:\\ 
-  Uninstall Java versions older then 1.6.0.10, because in update 10 was a new installer dropped which uses an other schema of GUID´s at the Windows Registry.+Compilenix <Compilenix@compilenix.org>\\ 
 +Validity: from 2015-01-09 11:29 until forever or revoked\\ 
 +Certificate type: 4,096-bit RSA\\ 
 +Key-ID: E763633D\\ 
 +Fingerprint: CC6047FA5B4449F28940636910B6666EE763633D\\ 
 +https://compilenix.org/public/certificates/pgp/compilenix%40compilenix.org%20%280xE763633D%29.asc
  
 +Download: my [[https://compilenix.org/public/opsi/Winst.xml | Notepad++ Syntax Highlighting]]\\
 +Download: my [[https://marketplace.visualstudio.com/items?itemName=Compilenix.winst | Visual Studio Code Syntax Highlighting]]
  
-== TODO == +===== What it does, and what not ===== 
-  - Use the check_msi-exitcode script from "Der-Matze"[[userspace:check_msi-exitcode]] + It Does: 
-  - May add support for removing older versions until 1.5.0.0 +  - Handle installx64 and x86, JRE and JDK 
-  - Automate get the last entry of "$version7$" ("setup.ins", "uninstall.ins" line: 52) +  - Handle uninstall: x64 and x86, JRE of Java 1.6.0.10 until 1.8.0.151, JDK of Java 1.7.0.0 until Java 8u202 
-  - Add support for installing and uninstalling Java JDK 7/8 +  - Installation of Java 8 
-  - Add Java 8 (future use)+  - Add the JCE Patch to every Java installation; see: [[https://docs.oracle.com/javase/8/docs/technotes/guides/security/SunProviders.html | JCE Documentation]] 
 +  - Use the check_msi-exitcode script from "Der-Matze": [[userspace:check_msi-exitcode]] (modified)
  
-== Important to know == + It Does NOT: 
-This Package expect the installation files NOT at the ScriptPath! They should, for example, be located at:\\ +  - Uninstall Java versions older then 1.6.0.10, because in update 10 was a new installer dropped which uses an other schema of GUID´s at the Windows Registry 
-<code winst> +  - Uninstall Java JDK`s older then 1.7.0.0 
-%ScriptDrive%\Setup_data\java\msi\jre1.7.0_51\jre1.7.0_51.msi +  - Un-/Install Java 9
-%ScriptDrive%\Setup_data\java\msi\jre1.7.0_51_x64\jre1.7.0_51.msi +
-</code> +
-If it fails to find the resources, check your Samba Configuration and move the Setup_data directory or edit the winst script **"setup.ins"** and **"uninstall.ins"** at line **74, 60 and 61**.\\ +
-Note: The variables "exe32" and "exe64" are not in use at the moment.+
  
-===== check_uninstall.ins ===== +===== Notes ===== 
-<code winst check_uninstall.ins> +The package includes the MSI installer for the JRE and JDK x86, because if you want to install Java JRE/JDK x86 on a x64 System the EXE installer will "crash" if it was called in a SYSTEM user context. Calling it by hand will work and my package is designed to manage both cases.
-for $x$ in $version6$ do sub_uninstall_6 +
-for $x$ in $version7$ do sub_uninstall_7+
  
-[sub_uninstall_6] +It "crashes" in a SYSTEM user environment, because the x86 installer of Java would exteact a MSI package on a x86 System into "C:\Windows\**System32**\config\systemprofile\AppData\LocalLow\Sun\Java" and call a MSI file and will install Java.\\ 
-Message "Suche Java 6.0.$x$ x32" +But on a x64 System the Java installer want to extract the MSI package into the same directory. At this point Windows (x64redirect the request to "C:\Windows\**SysWOW64**\config\systemprofile\AppData\LocalLow\Sun\Java"The x86 Java installer does NOT notice the important redirect and still try to call the MSI file and explode with a, File not found, exeption.
-if (($INST_SystemType$ = "x86 System"and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only") +
- if ("$x$" > "24") +
- Set $msi_suffix$ = "FF" +
- else +
- Set $msi_suffix$ = "F0" +
- endif +
-  +
- Set $DisplayName$ = GetRegistryStringValue ("[" + $Path$ + "{26A24AE4-039D-4CA4-87B4-2F832160" + "$x$" + $msi_suffix$ + "}] DisplayName"+
- if not ($DisplayName$ = ""+
- Message "Deinstalliere " + $DisplayName$ + "..." +
- Set $MSI$ = "{26A24AE4-039D-4CA4-87B4-2F832160" + "$x$" + $msi_suffix$ + "}" +
- sub "%scriptpath%\delsub.ins"  +
- endif +
-endif+
  
-if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific"or ($INST_architecture$ = "both"or ($INST_architecture$ = "64 only")) +There is no error-reporting or handling by the Java (EXEinstaller done, but msiexec.exe does report an 1619 (PACKAGE_OPEN_FAILEDexitcode.\\
- if ("$x$" > "23"+
- Set $msi_suffix$ = "FF" +
- else +
- Set $msi_suffix$ = "F0" +
- endif +
-  +
- Set $DisplayName$ = GetRegistryStringValue32 ("[" + $Path_64$ + "{26A24AE4-039D-4CA4-87B4-2F832160" + "$x$" + $msi_suffix$ + "}] DisplayName"+
- if not ($DisplayName$ = ""+
- Message "Deinstalliere " + $DisplayName$ + "..." +
- Set $MSI$ = "{26A24AE4-039D-4CA4-87B4-2F832160" + "$x$" + $msi_suffix$ + "}" +
- sub "%scriptpath%\delsub.ins"  +
- endif +
-  +
- if ("$x$" > "24") +
- Set $msi_suffix$ = "FF" +
- else +
- Set $msi_suffix$ = "F0" +
- endif +
-  +
- Message "Suche Java 6.0.$x$ x64" +
- Set $DisplayName$ = GetRegistryStringValue64 ("[" + $Path$ + "{26A24AE4-039D-4CA4-87B4-2F864160" + "$x$" + $msi_suffix$ + "}] DisplayName"+
- if not ($DisplayName$ = ""+
- Message "Deinstalliere " + $DisplayName$ + "..." +
- set $MSI$ = "{26A24AE4-039D-4CA4-87B4-2F864160" + "$x$" + $msi_suffix$ + "}" +
- sub "%scriptpath%\delsub.ins"  +
- endif +
-endif+
  
 +This happends only on x64 System`s. My package will ever prefer of using the EXE installer, the MSI files were only called in a fallback case!\\
  
 +===== TODO =====
 +  - Add feature; Install X.509 (root) Certificates into the Java Certificate chain.
 +  - Change uninstall procedure using WMCI or Powershell, to avoid generating wrong uninstall strings. (Thanks Andreas)
 +  - Nothing else at the moment.. If you have any suggestions, let me know :)
  
 +===== Product Properties =====
 +<code>
 +[ProductProperty]
 +type: unicode
 +name: vm-type
 +multivalue: False
 +editable: False
 +description: Install the Development Kit (JDK) or just the Java Runtime (JRE).
 +values: ["jdk", "jre"]
 +default: ["jre"]
  
-[sub_uninstall_7+[ProductProperty
-if ("$x$" > "23"+type: unicode 
- Set $msi_suffix$ = "FF" +name: patchjce 
-else +multivalue: False 
- Set $msi_suffix$ = "F0+editable: False 
-endif+description: Apply patch For JCE (Java Cryptography Extension); see also: https://en.wikipedia.org/wiki/Java_Cryptography_Extension 
 +values: ["Off""On"] 
 +default: ["On"]
  
-Message "Suche Java 7.0.$x$ x32" +[ProductProperty
-if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only"+type: unicode 
- Set $DisplayName$ = GetRegistryStringValue ("[" + $Path$ + "{26A24AE4-039D-4CA4-87B4-2F832170" + "$x$" + $msi_suffix$ + "}DisplayName") +name: webjava 
- if not ($DisplayName$ = "") +multivalue: False 
- Message "Deinstalliere " + $DisplayName$ + "..." +editable: False 
- Set $MSI$ = "{26A24AE4-039D-4CA4-87B4-2F832170"$x$" + $msi_suffix$ + "}+description: Install Webplugins
- sub "%scriptpath%\delsub.ins +values: ["Off""On"] 
- endif +default: ["On"]
-endif+
  
-if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) +[ProductProperty
- Set $DisplayName$ = GetRegistryStringValue32 ("[" + $Path_64$ + "{26A24AE4-039D-4CA4-87B4-2F832170" + "$x$" + $msi_suffix$ + "}DisplayName") +type: unicode 
- if not ($DisplayName$ = "") +name: webjava-security_level 
- Message "Deinstalliere " + $DisplayName$ + "..." +multivalue: False 
- Set $MSI$ = "{26A24AE4-039D-4CA4-87B4-2F832170" + "$x$" + $msi_suffix$ + "}" +editable: False 
- sub "%scriptpath%\delsub.ins"  +description: Set default security level, for remote execution of Java content
- endif +values: ["H""M""VH"] 
-  +default: ["VH"]
- Message "Suche Java 7.0.$x$ x64" +
- Set $DisplayName$ = GetRegistryStringValue64 ("[" + $Path$ + "{26A24AE4-039D-4CA4-87B4-2F864170"$x$+ $msi_suffix$ + "}DisplayName") +
- if not ($DisplayName$ = ""+
- Message "Deinstalliere " + $DisplayName$ + "..." +
- set $MSI$ = "{26A24AE4-039D-4CA4-87B4-2F864170" + "$x$" + $msi_suffix$ + "}" +
- sub "%scriptpath%\delsub.ins"  +
- endif +
-endif+
  
-<code>+[ProductProperty] 
 +type: unicode 
 +name: java-updater 
 +multivalue: False 
 +editable: False 
 +description: Toggle the Java-Updater and Update-Notifications. 
 +values: ["Off", "On"
 +default: ["Off"]
  
-=== delsub.ins === +[ProductProperty] 
-<code winst delsub.ins> +type: unicode 
-Message "Deinstalliere " + $DisplayName$ +name: 32bitonly 
-set $UninstallCommand$ = 'msiexec.exe /X ' + $MSI$ + ' /qb! REBOOT=ReallySuppress /lie "c:\tmp\' + $DisplayName$ + '_uninstall.log"' +multivalueFalse 
-killtask "firefox.exe" +editable: False 
-killtask "jqs.exe" +description: Toggle if on a 64bit OS only the 32bit JRE/JDK will be installed
-killtask "java.exe" +values: ["False", "True"] 
-killtask "javaw.exe" +default["False"]
-Winbatch_Uninstall +
-set $ExitCode$ = getLastExitCode +
-if $ExitCode$ = "1618" +
- sleepSeconds 10 +
- Winbatch_Uninstall  +
- set $ExitCode$ = getLastExitCode +
- if $ExitCode$ = "1618" +
- sleepSeconds 20 +
- Winbatch_Uninstall  +
- set $ExitCode$ = getLastExitCode +
- if $ExitCode$ = "1618" +
- sleepSeconds 30 +
- Winbatch_Uninstall +
- set $ExitCode$ = getLastExitCode +
- if $ExitCode$ = "1618" +
- sleepSeconds 40 +
- Winbatch_Uninstall  +
- set $ExitCode$ = getLastExitCode +
- if $ExitCode$ = "1618" +
- sleepSeconds 50 +
- Winbatch_Uninstall  +
- endif +
- endif +
- endif +
- endif +
-endif +
-Sub_check_exitcode +
-if CompareDotSeparatedNumbers("%WinstVersion%","4.11.2") >= "0+
- includelog "c:\tmp\"+$DisplayName$+"_uninstall.log" "20" +
-endif +
-Message "Deinstallation von " + $ProductId$ + abgeschlossen"+
  
-[Winbatch_Uninstall+[ProductProperty
-$UninstallCommand$+type: unicode 
 +name: 64bitonly 
 +multivalue: False 
 +editable: False 
 +description: Toggle if on a 64bit OS only the 64bit JRE/JDK will be installed. 
 +values: ["False", "True"]
  
-[Sub_check_exitcode+[ProductProperty
-comment "Test für die Installation erfolgt über Exit-Code" +type: unicode 
-Set $ExitCode$ = getLastExitCode +nameupdatebranch 
-; Informationen zu Exit-Codes zu sehen +multivalueFalse 
-; http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx +editableFalse 
-; http://msdn.microsoft.com/en-us/library/aa368542.aspx +descriptionToggle between Critical Patch Update (CPUand Patch Set Update (PSU
-if ($ExitCode$ = "0"+values["CPU""PSU"] 
- comment "Sieht gut ausSetup-Programm gibt Exitcode Null" +default["CPU"]
-else +
- comment "Setup Programm gibt einen unterschiedlichen Exitcode Null" + $ExitCode$ +
- if ($ExitCode$ = "1605") +
- comment "ERROR_UNKNOWN_PRODUCT 1605 Diese Aktion ist nur für Produkte gültig, die zurzeit installiert sind." +
- comment "Deinstallieren eines nicht installierten Produkt fehlgeschlagen - Kein Problem" +
- else +
- if ($ExitCode$ = "1641"+
- comment "sieht gut ausSetup-Programm gibt exitcode 1641" +
- comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 Der Installer hat einen Neustart eingeleitet. Diese Meldung weist auf einen Erfolg." +
- else +
- if ($ExitCode$ = "3010") +
- comment "sieht gut ausSetup-Programm gibt exitcode 3010" +
- comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 Ein Neustart ist erforderlich, um die Installation abzuschließen. Diese Meldung weist auf einen Erfolg." +
- else +
- logError "Fatal: Setup-Programm gibt eine unbekannte Exitcode Null aus: " + $ExitCode$ +
- isFatalError +
- endif +
- endif +
- endif +
-endif+
  
 </code> </code>
  
-=== setup.ins === +===== Changelog ===== 
-<code winst setup.ins+<code control.txt
-[Initial] +java (1.8.0.202-4.2.5) 
-SetLogLevel=+  -- Kevin Weis <Compilenix@compilenix.org> 2018-01-16 
-ExitOnError=true +  * update
-ScriptErrorMessages=off +
-TraceMode=off +
-StayOnTop=false+
  
-[Aktionen] +java (1.8.0.192-4.2.5) 
-requiredWinstVersion >= "4.10.8.3" +  -- Kevin Weis <Compilenix@compilenix.org> 2018-10-26 
-Message "Vorbereiten..." +  * update
-DefVar $LogDir$ +
-DefVar $msiPath$ +
-DefVar $Reg_Path$ +
-DefVar $Reg_Path_64$ +
-DefVar $msi32$ +
-DefVar $msi64$ +
-DefVar $exe32$ +
-DefVar $exe64$ +
-DefVar $MSI$ +
-DefVar $ExitCode$ +
-DefVar $INST_MsVersion$ +
-DefVar $INST_SystemType$ +
-DefVar $INST_architecture$ +
-DefVar $ProductId$ +
-DefVar $UninstallCommand$ +
-DefVar $DisplayVersion$ +
-DefVar $DisplayName$ +
-DefVar $DisplayVersionx32$ +
-DefVar $DisplayVersionx64$ +
-DefVar $MinimumSpace$ +
-DefVar $msi_suffix$ +
-DefVar $Path$ +
-DefVar $Path_64$ +
-DefVar $update_Version$ +
-DefStringList $version6$ +
-DefStringList $version7$+
  
-Set $ProductId$ = "Java" +java (1.8.0.181-4.2.5) 
-; ------------------------------------------------------------------------------------------------------------------------------------------------------+  -- Kevin Weis <Compilenix@compilenix.org> 2018-07-18 
-; - Please edit the following values - +  update
-; ------------------------------------------------------------------------------------------------------------------------------------------------------- +
-; Look up for new update versions of Java 6. +
-; https://en.wikipedia.org/wiki/Java_version_history#Java_6_updates +
-set $version6$ = createStringList ('10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '43', '45', '51', '65', '71')+
  
-; Add the new update version number to the stringlist, also add all version numbers you have skipped. +java (1.8.0.172-4.2.5) 
-; https://en.wikipedia.org/wiki/Java_version_history#Java_7_updates +  -- Kevin Weis <Compilenix@compilenix.org> 2018-04-18 
-set $version7$ = createStringList ('00', '01', '02', '03', '04', '05', '06', '07', '09', '10', '11', '13', '15', '17', '21', '25', '40', '45', '51')+  * update
  
-; increment the first takeString argument, by how much numbers you added to "$version7$".  +java (1.8.0.162-4.2.5) 
-; this is used to get the last index of "$version7$" +  -- Kevin Weis <Compilenix@compilenix.org> 2018-01-24 
-Set $update_Version$ = takeString ( 18, $version7$ )+  * update
  
 +java (1.8.0.152-4.2.5)
 +  -- Kevin Weis <Compilenix@compilenix.org> 2017-10-26
 +  * update
  
-; ------------------------------------------------------------------------------------------------------------------------------------------------------- +java (1.8.0.144-4.2.5) 
-; - DO NOT EDIT ANY VALUES BELOW! Unless you want to edit the functionality of this. +  -- Kevin Weis <Compilenix@compilenix.org> 2017-09-05 
-; ------------------------------------------------------------------------------------------------------------------------------------------------------- +  * update
-Set $DisplayVersion$ = "7.0." + $update_Version$ +
-Set $MinimumSpace$ = "123 MB" +
-Set $msi32$ = "msi\jre1.7.0_" + $update_Version$ + "\jre1.7.0_" + $update_Version$ + ".msi" +
-Set $msi64$ = "msi\jre1.7.0_" + $update_Version$ + "_x64\jre1.7.0_" + $update_Version$ + ".msi" +
-Set $exe32$ = "jre-7u" + $update_Version$ + "-windows-i586.exe" +
-Set $exe64$ = "jre-7u" + $update_Version$ + "-windows-x64.exe" +
-Set $LogDir$ = "%SYSTEMDRIVE%\tmp" +
-Set $INST_SystemType$ = GetSystemType +
-Set $INST_MsVersion$ = GetMsVersionInfo +
-Set $INST_architecture$ = GetProductProperty ("install_architecture","system specific"+
-Set $Path$ = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" +
-Set $Path_64$ = "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\" +
-Set $msi_suffix$ = "" +
-Set $DisplayName$ = $ProductId$ + " " + $DisplayVersion$ +
-Set $DisplayVersionx32$ = $ProductId$ + " " + $DisplayVersion$ + " x32" +
-Set $DisplayVersionx64$ = $ProductId$ + " " + $DisplayVersion$ + " x64" +
-Set $msiPath$ = "%scriptdrive%\Setup_data\java\msi\"+
  
-ShowBitmap /3 "%scriptpath%\java.png" $ProductId$+java (1.8.0.141-4.2.5) 
 +  -- Kevin Weis <Compilenix@compilenix.org> 2017-07-20 
 +  * update
  
-if $INST_MsVersion$ < "5.1" +java (1.8.0.131-4.2.5
- LogError "Minimum Windows XP is required for Java >= 1.7"  +  -- Kevin Weis <Compilenix@compilenix.org> 2017-04-24 
- isFatalError +  * update
-endif +
-if not (HasMinimumSpace ("%SYSTEMDRIVE%", $MinimumSpace$)+
- LogError "Nicht genügend freier Speicher auf %SystemDrive%, " + $MinimumSpace$ + " auf %SystemDrive% sind mindestens benötigt für " + $ProductId$ +
- isFatalError +
-endif+
  
-Files_copy+java (1.8.0.121-4.2.5) 
 +  -- Kevin Weis <Compilenix@compilenix.org> 2017-01-17 
 +  * update
  
-sub "%ScriptPath%\check_uninstall.ins"+java (1.8.0.112-4.2.5) 
 +  -- Kevin Weis <Compilenix@compilenix.org> 2016-10-23 
 +  * update
  
-killtask "firefox.exe" +java (1.8.0.102-4.2.5) 
-killtask "jqs.exe" +  -- Kevin Weis <Compilenix@compilenix.org> 2016-07-25 
-killtask "java.exe" +  * update 
-killtask "javaw.exe"+  * update/create symbolic links at C:\ProgramData\Oracle\Java\javapath\. prefering x64 jre if possible.
  
-; ############################################################################################################################################# +java (1.8.0.92-4.2.4
-; ################################################################### Install x64 ################################################################### +  -- Kevin Weis <Compilenix@compilenix.org> 2016-05-03 
-; ############################################################################################################################################# +  * update
-if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) +
- Set $DisplayVersion$ = $DisplayVersionx64$ +
- Message "Installiere " + $DisplayVersion$ +
- Execwith_autoit_close_proxy "%SCRIPTPATH%\autoit3.exe" WINST /letThemGo +
- Winbatch_install_x64 +
- Sub_check_exitcode +
- if CompareDotSeparatedNumbers("%WinstVersion%","4.11.2">= "0" +
- includelog "%SYSTEMDRIVE%\tmp\" + $DisplayVersion$ + "_x64.log" "20" +
- endif +
- Killtask "autoit3.exe" +
- DOSInAnIcon_java_version +
- Registry_disable_update /64Bit +
-endif+
  
-; ############################################################################################################################################# +java (1.8.0.77.3-4.2.4
-; ################################################################### Install x32 ################################################################### +  -- Kevin Weis <Compilenix@compilenix.org> 2016-03-30 
-; ############################################################################################################################################# +  * update
-; if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only"+
- Set $DisplayVersion$ = $DisplayVersionx32$ +
- Message "Installiere " + $DisplayVersion$ +
- killtask "firefox.exe" +
- killtask "jqs.exe" +
- killtask "java.exe" +
- killtask "javaw.exe" +
- Execwith_autoit_close_proxy "%SCRIPTPATH%\autoit3.exe" WINST /letThemGo +
- Winbatch_install_x32 +
- Sub_check_exitcode +
- if CompareDotSeparatedNumbers("%WinstVersion%", "4.11.2">= "0" +
- includelog "%SYSTEMDRIVE%\tmp\" + $DisplayVersion$ + "_x86.log" "20" +
- endif +
- Killtask "autoit3.exe" +
- DOSInAnIcon_java_version +
- Registry_disable_update +
-; endif+
  
-Files_delete +java (1.8.0.74.2-4.2.4) 
-Message "Installation abgeschlossen"+  -- Kevin Weis <Compilenix@compilenix.org> 2016-03-14 
 +  * update
  
-[Winbatch_install_x32] +java (1.8.0.72.15-4.2.4) 
-msiexec /i "%SYSTEMDRIVE%\tmp\$msi32$" /qb! /lie "%SYSTEMDRIVE%\tmp\$DisplayVersion$_x86.log" ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1  REBOOT=ReallySuppess SYSTRAY=0 JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 ARPURLUPDATEINFO='http://www.opsi.org'+  -- Kevin Weis <Compilenix@compilenix.org> 2015-10-26 
 +  * update 
 +  * add Product "updateBranch" choose between 8u71 and 8u72 (more info: http://www.oracle.com/technetwork/java/javase/cpu-psu-explained-2331472.html) 
 +  * add Product Property "64bitonly" (default: False)
  
-[Winbatch_install_x64] +java (1.8.0.66.17-4.2.3) 
-msiexec /i "%SYSTEMDRIVE%\tmp\$msi64$" /qb! /lie "%SYSTEMDRIVE%\tmp\$DisplayVersion$_x64.log" ADDLOCAL=ALL IEXPLORER=MOZILLA=1  REBOOT=ReallySuppess SYSTRAY=JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 ARPURLUPDATEINFO='http://www.opsi.org'+  -- Kevin Weis <Compilenix@compilenix.org> 2015-10-26 
 +  * update
  
-[DOSInAnIcon_java_version] +java (1.8.0.60.27-4.2.3) 
-"%ProgramFilesDir%\java\jre7\bin\java.exe" -version+  -- Kevin Weis <Compilenix@compilenix.org> 2015-09-09 
 +  * update
  
-[Files_copy] +java (1.8.0.51.16-4.2.3) 
-copy -s "$msiPath$\*.*" "%SYSTEMDRIVE%\tmp\msi"+  -- Kevin Weis <Compilenix@compilenix.org> 2015-07-20 
 +  update
  
-[Files_delete] +java (1.8.0.45.14-4.2.3) 
-delete -fs "%SYSTEMDRIVE%\tmp\msi"+  -- Kevin Weis <Compilenix@compilenix.org> 2015-04-15 
 +  * update
  
-[Execwith_autoit_close_proxy] +java (1.8.0.40.26-4.2.3
-WinWait("Verbindung","Verbindung"+  -- Kevin Weis <Compilenix@compilenix.org> 2015-03-19 
-Sleep(500) +  * fixed: installation of Java JRE x86 on a x64 OS does not work (exit code 3)
-; activating +
-WinActivate("Verbindung","Verbindung") +
-send ("!{F4}"+
-exit+
  
-[Execwith_autoit_zertifikat] +java (1.8.0.40.26-4.2.2
-WinWait("Sicherheitshinweis"+  -- Kevin Weis <Compilenix@compilenix.org> 2015-03-16 
-Sleep(500) +  * update
-; activating +
-WinActivate("Sicherheitshinweis"+
-send ("J") +
-exit+
  
-[Registry_disable_update] +java (1.8.0.31.13-4.2.2) 
-openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy] +  -- Kevin Weis <kevinweis@gmx.de> 2015-01-21 
-set "EnableJavaUpdate"=REG_DWORD:0+  * update
  
-[Files_patch_JCE_x32] +java (1.8.0.25.18-4.2.2) 
-copy -s "%SCRIPTPATH%\UnlimitedJCEPolicy\*.*" "%ProgramFiles32Dir%\Java\jre7\lib\security"+  -- Kevin Weis <kevinweis@gmx.de> 2014-10-20 
 +  update 
 +  * add ProductProperty "PatchJCE"; see also: https://en.wikipedia.org/wiki/Java_Cryptography_Extension and http://docs.oracle.com/javase/8/docs/technotes/guides/security/crypto/CryptoSpec.html 
 +  * Java 7 setup support droped (uninstalling of future Java 7 versions are still supported)
  
-[Files_patch_JCE_x64] +java (1.8.0.11.12-4.2.1) 
-copy -s "%SCRIPTPATH%\UnlimitedJCEPolicy\*.*" "%ProgramFiles64Dir%\Java\jre7\lib\security"+  -- Kevin Weis <kevinweis@gmx.de> 2014-08-14 
 +  update; Java 1.0.7.65 build 19 to 1.0.7.67 build 1
  
-[Sub_check_exitcode] +java (1.8.0.11.12-4.2
-comment "Test für die Installation erfolgt über Exit-Code" +  -- Kevin Weis <kevinweis@gmx.de> 2014-07-21 
-Set $ExitCode$ = getLastExitCode +  * update; Java 1.0.7.60 build 19 to 1.0.7.65 build 19
-; Informationen zu Exit-Codes zu sehen +
-; http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx +
-; http://msdn.microsoft.com/en-us/library/aa368542.aspx +
-if ($ExitCode$ = "0"+
- comment "Sieht gut aus: Setup-Programm gibt Exitcode Null" +
-else +
- comment "Setup Programm gibt einen unterschiedlichen Exitcode Null: " + $ExitCode$ +
- if ($ExitCode$ = "1605"+
- comment "ERROR_UNKNOWN_PRODUCT 1605 Diese Aktion ist nur für Produkte gültig, die zurzeit installiert sind.+
- comment "Deinstallieren eines nicht installierten Produkt fehlgeschlagen Kein Problem" +
- else +
- if ($ExitCode$ = "1641"+
- comment "sieht gut aus: Setup-Programm gibt exitcode 1641" +
- comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 Der Installer hat einen Neustart eingeleitetDiese Meldung weist auf einen Erfolg.+
- else +
- if ($ExitCode$ = "3010"+
- comment "sieht gut aus: Setup-Programm gibt exitcode 3010" +
- comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 Ein Neustart ist erforderlich, um die Installation abzuschließenDiese Meldung weist auf einen Erfolg.+
- else +
- logError "Fatal: Setup-Programm gibt eine unbekannte Exitcode Null aus: " + $ExitCode$ +
- isFatalError +
- endif +
- endif +
- endif +
-endif+
  
-</code>+java (1.8.0.05.13-4.2) 
 +  -- Kevin Weis <kevinweis@gmx.de> 2014-06-14 
 +  * update; Java 1.0.7.55 to 1.0.7.60 build 19 
 +  * add ProductProperty "32bitOnly". The functionality of this option will be extended with the next Java 8 update. 
 +  * since this update (Java 7u60 JRE x64/x86) the MSI-GUID has changed at one charcter (from "8" to "0"), no idea why -ask Oracle -.- (see "check_uninstall.ins" from line 69 - 74) 
 +  Minor changes: 
 +    * add killing Opera.exe, before in-/uninstall. 
 +    * little Bug-fix which caused an installation abort with the (expected at this point) error code 1619.
  
-=== uninstall.ins ==+java (1.8.0.05.13-4.1) urgency=high 
-<code winst uninstall.ins+  -- Kevin Weis <kevin.weis@faw.de2014-04-17 
-[Initial] +  * update 
-SetLogLevel=4 +  * add JRE and JDK of Java 7 (ProductProperty "Version") 
-ExitOnError=true +  * add discriptions to all ProductPropertys 
-ScriptErrorMessages=off +  * change default of ProductProperty "VM-Type" from "jdk" to "jre" (if winst script is called by hand "jdk" is the default) 
-TraceMode=off +  * change default of ProductProperty "WebJava-Security_Level" from "M" to "VH" 
-StayOnTop=false+  * NOTE: I´m using the JCE patch for Java 8, this work for Java 7 too (tested, no unwanted behaviour with SHA384, SHA512, AES192 and AES256) 
 +  Minor changes: 
 +    * Apply new variables nomination 
 +    * Fix check for minnimum Microsoft Windows Version (Java 8 is not supported on Windows XP, minnimum is Windows Vista >6.0) 
 +    * If some fatal error occours, the error will now be displayed (as a Message), too. 
 +    * clean up check_msi-exitcode; remove dead code and display fatal errors. 
 +    * automate get last version of Java 7 and 8 (StringList)
  
-[Aktionen] +java (1.8.0-4) urgency=high 
-requiredWinstVersion >= "4.10.8.3" +  -- Kevin Weis <kevin.weis@faw.de> 2014-03-25.1933 
-Message "Vorbereiten..." +  * update 
-DefVar $LogDir$ +  * switch install procedure to exe, insted deprecated use of the msi-package 
-DefVar $msiPath$ +  * drop install procedure using the msi-package 
-DefVar $Reg_Path$ +  * add support for in- and uninstall both (jdk and jre), jce patched of cause ;) 
-DefVar $Reg_Path_64$ +  * switch message locale from german to english 
-DefVar $msi32$ +  * Use the check_msi-exitcode script from “Der-Matze”: https://forum.opsi.org/wiki/userspace:check_msi-exitcode
-DefVar $msi64$ +
-DefVar $exe32$ +
-DefVar $exe64$ +
-DefVar $MSI$ +
-DefVar $ExitCode$ +
-DefVar $INST_MsVersion$ +
-DefVar $INST_SystemType$ +
-DefVar $INST_architecture$ +
-DefVar $ProductId$ +
-DefVar $UninstallCommand$ +
-DefVar $DisplayVersion$ +
-DefVar $DisplayName$ +
-DefVar $DisplayVersionx32$ +
-DefVar $DisplayVersionx64$ +
-DefVar $MinimumSpace$ +
-DefVar $msi_suffix$ +
-DefVar $Path$ +
-DefVar $Path_64$ +
-DefVar $update_Version$ +
-DefStringList $version6$ +
-DefStringList $version7$+
  
-Set $ProductId$ = "Java" +see also: http://www.oracle.com/technetwork/java/javase/8train-relnotes-latest-2153846.html
-; ------------------------------------------------------------------------------------------------------------------------------------------------------- +
-; - Please edit the following values - +
-; ------------------------------------------------------------------------------------------------------------------------------------------------------- +
-; Look up for new update versions of Java 6. +
-; https://en.wikipedia.org/wiki/Java_version_history#Java_6_updates +
-set $version6$ = createStringList ('10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '43', '45', '51', '65', '71')+
  
-; Add the new update version number to the stringlist, also add all version numbers you have skipped+java (7.0.51-3) urgency=high 
-; https://en.wikipedia.org/wiki/Java_version_history#Java_7_updates +  -- Kevin Weis <kevin.weis@faw.de> 2014-01-17.1220 
-set $version7$ = createStringList ('00', '01', '02', '03', '04', '05', '06', '07', '09', '10', '11', '13', '15', '17', '21', '25', '40', '45', '51')+  * update 
 +  * add patch for JCE (Java Cryptography Extension (JCEUnlimited Strength Jurisdiction Policy Files 7) 
 +  * find installed versions of JRE now by using a for loop (supporting deinstallation since java 6u10 x64 and x32) 
 +  * serval other little impovments
  
-; increment the first takeString argument, by how much numbers you added to "$version7$".  +java (7.0.40-2.2) urgency=high 
-; this is used to get the last index of "$version7$" + -- Kevin Weis <kevin.weis@faw.de> 2013-10-14.1009 
-Set $update_Version$ = takeString ( 18, $version7$ )+        update java version to 7.0.40 
 +        SetLogLevel=4 
 +        check_uninstall.ins: 
 +                add explicit declaration for >=java-7.0.10 of "GetRegistryStringValue32" and "GetRegistryStringValue64"
  
 +java (7.0.25-2.1) urgency=high
 + -- Kevin Weis <kevin.weis@faw.de> 13:39 02.04.2013
 +        * check_uninstall.ins:4-9
  
-; ------------------------------------------------------------------------------------------------------------------------------------------------------- +java (7.0.17-2.1) urgency=high 
-; - DO NOT EDIT ANY VALUES BELOW! Unless you want to edit the functionality of this. - + -- Kevin Weis <kevin.weis@faw.de> 13:39 02.04.2013 
-; ------------------------------------------------------------------------------------------------------------------------------------------------------- +        Bugfix bugfix hing fest bei der Installation/Deinstallation
-Set $DisplayVersion$ = "7.0." + $update_Version$ +
-Set $MinimumSpace$ "123 MB" +
-Set $msi32$ = "msi\jre1.7.0_" + $update_Version$ + "\jre1.7.0_" + $update_Version$ + ".msi" +
-Set $msi64$ = "msi\jre1.7.0_" + $update_Version$ + "_x64\jre1.7.0_" + $update_Version$ + ".msi" +
-Set $exe32$ = "jre-7u" + $update_Version$ + "-windows-i586.exe" +
-Set $exe64$ "jre-7u" + $update_Version$ + "-windows-x64.exe" +
-Set $LogDir$ = "%SYSTEMDRIVE%\tmp" +
-Set $INST_SystemType$ = GetSystemType +
-Set $INST_MsVersion$ = GetMsVersionInfo +
-Set $INST_architecture$ = GetProductProperty ("install_architecture","system specific"+
-Set $Path$ = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" +
-Set $Path_64$ = "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\" +
-Set $msi_suffix$ = "" +
-Set $DisplayName$ = $ProductId$ + " " + $DisplayVersion$ +
-Set $DisplayVersionx32$ = $ProductId$ + " " + $DisplayVersion$ + " x32" +
-Set $DisplayVersionx64$ = $ProductId$ + " " + $DisplayVersion$ + " x64" +
-Set $msiPath$ = "%scriptdrive%\Setup_data\java\msi\"+
  
-ShowBitmap /3 "%scriptpath%\java.png" $ProductId$+java (7.0.9-2.0) urgency=high 
 + -- Kevin Weis <kevin.weis@faw.de> 12:19 12.11.2012 
 +        - Umstellung auf MSI 
 +        - Automatische Entscheidung zwischen x86 und x64 
 +        - autoupdate = off 
 +        - Bugfix = hing fest bei der Installation/Deinstallation
  
-sub "%ScriptPath%\check_uninstall.ins"+java (7.0-7) testing; urgency=low
  
-Message "Deinstallation von " + $ProductId$ + " abgeschlossen"+java (7.0-4) testing; urgency=low 
 + -- Kevin Weis <kevinweis@gmx.de> 12:39 05.11.2012 
 +  * Initial package
  
 </code> </code>
 +
userspace/java-ng.1390228987.txt.gz · Last modified: 2021/08/23 08:37 (external edit)