This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userspace:java-ng [2014/04/17 10:46] Kevin W. |
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.4.5\\ | + | Tested with Debian 9\\ |
- | Tested with Windows 7 Enterprise | + | Tested with Opsi 4.0.7.45\\ |
- | Tested with Java 6u10 - 8u5\\ | + | Tested with Winst 4.11.6.12\\ |
- | requiredWinstVersion >= 4.11.3\\ | + | Tested with Server 2016 x64\\ |
- | By [[Kevin.Weis@faw.de|Kevin Weis]] 2014-04-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:// | + | **This |
- | For an altanative, you can download only the parts you want to support; **see [[ #Custom install instuctions]]**\\ | + | Download: [[https://compilenix.org/public/opsi/localboot/ |
- | Download: [[https://dl.dropboxusercontent.com/u/27159788/static/ | + | Checksum' |
- | Download: [[https://dl.dropboxusercontent.com/u/27159788/static/java_1.8.0.05.13.7z | Setup binary´s - Java 8 (~ 516 MiB)]]\\ | + | |
- | Download: [[https:// | + | |
+ | Source Code: [[https:// | ||
+ | Check if you have the JCE installed: [[https:// | ||
- | Download: [[https://dl.dropboxusercontent.com/u/27159788/static/Winst.xml | my Notepad++ Syntax Highlighting]] | + | All downloads are pgp signed with:\\ |
+ | Compilenix < | ||
+ | Validity: from 2015-01-09 11:29 until forever or revoked\\ | ||
+ | Certificate type: 4,096-bit RSA\\ | ||
+ | Key-ID: E763633D\\ | ||
+ | Fingerprint: | ||
+ | https://compilenix.org/public/certificates/pgp/compilenix%40compilenix.org%20%280xE763633D%29.asc | ||
- | < | + | Download: my [[https:// |
- | Tree: | + | Download: my [[https:// |
- | |-- setup_data | + | |
- | | |-- msi | + | |
- | | | + | |
- | | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | |-- jdk-7u55-windows-i586.exe | + | |
- | | |-- jdk-7u55-windows-x64.exe | + | |
- | | |-- jdk-8u05-windows-i586.exe | + | |
- | | |-- jdk-8u05-windows-x64.exe | + | |
- | | |-- jre-7u55-windows-i586.exe | + | |
- | | |-- jre-7u55-windows-x64.exe | + | |
- | | |-- jre-8u05-windows-i586.exe | + | |
- | | |-- jre-8u05-windows-x64.exe | + | |
- | | |-- License.txt | + | |
- | | |-- License.url | + | |
- | | `-- sha1sum.txt | + | |
- | |-- UnlimitedJCEPolicy | + | |
- | | |-- JCE_PATCHED | + | |
- | | |-- local_policy.jar | + | |
- | | |-- README.txt | + | |
- | | |-- sha1sum.txt | + | |
- | | `-- US_export_policy.jar | + | |
- | |-- check_msi-exitcode.ins | + | |
- | |-- check_uninstall.ins | + | |
- | |-- delsub.ins | + | |
- | |-- java.png | + | |
- | |-- setup.ins | + | |
- | |-- sha1sum.txt | + | |
- | |-- Sub_UpdateVariables.ins | + | |
- | `-- uninstall.ins | + | |
- | </ | + | |
- | ==== What is does, and what not ==== | + | ===== What it does, and what not ===== |
It Does: | It Does: | ||
- | - Handle install and uninstall | + | - Handle install: x64 and x86, JRE and JDK |
- | - Installation of Java 7 or Java 8 | + | - Handle |
- | - Add the JCE Patch to every Java installation; | + | - Installation of Java 8 |
- | - Use the check_msi-exitcode script from " | + | - Add the JCE Patch to every Java installation; |
+ | - Use the check_msi-exitcode script from " | ||
It Does NOT: | It Does NOT: | ||
- 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 | - 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 | ||
- Uninstall Java JDK`s older then 1.7.0.0 | - Uninstall Java JDK`s older then 1.7.0.0 | ||
+ | - Un-/Install Java 9 | ||
- | ==== Notes ==== | + | ===== Notes ===== |
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 " | 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 " | ||
Line 93: | Line 54: | ||
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!\\ | 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!\\ | ||
- | ==== Custom install instuctions | + | ===== TODO ===== |
- | If you want to support | + | - 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, | ||
- | ==== Change Log ==== | + | ===== Product Properties ===== |
< | < | ||
- | java (1.8.0.05.13-4.1) urgency=high | ||
- | -- Kevin Weis < | ||
- | * update | ||
- | * add JRE and JDK of Java 7 (ProductProperty " | ||
- | * add discriptions to all ProductPropertys | ||
- | * change default of ProductProperty " | ||
- | * change default of ProductProperty " | ||
- | * NOTE: I´m using the JCE patch for Java 8, this work for Java 7 too (tested, no unwanted behaviour with SHA384, SHA512 and AES192, 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; | ||
- | * automate get last version of Java 7 and 8 (StringList) | ||
- | </ | ||
- | For those people which are intrested in a diff file: [[https:// | ||
- | |||
- | ==== TODO ==== | ||
- | - Add support for in-/ | ||
- | |||
- | |||
- | ===== control ===== | ||
- | <code winst control.txt> | ||
- | [Package] | ||
- | version: 4.1 | ||
- | depends: | ||
- | incremental: | ||
- | |||
- | [Product] | ||
- | type: localboot | ||
- | id: java | ||
- | name: Java | ||
- | description: | ||
- | advice: | ||
- | version: 1.8.0.05.13 | ||
- | priority: -95 | ||
- | licenseRequired: | ||
- | productClasses: | ||
- | setupScript: | ||
- | uninstallScript: | ||
- | updateScript: | ||
- | alwaysScript: | ||
- | onceScript: | ||
- | customScript: | ||
- | userLoginScript: | ||
- | |||
[ProductProperty] | [ProductProperty] | ||
type: unicode | type: unicode | ||
- | name: version | + | name: vm-type |
multivalue: False | multivalue: False | ||
editable: False | editable: False | ||
- | description: | + | description: |
- | values: ["7", "8"] | + | values: ["jdk", "jre"] |
- | default: ["8"] | + | default: ["jre"] |
[ProductProperty] | [ProductProperty] | ||
type: unicode | type: unicode | ||
- | name: vm-type | + | name: patchjce |
multivalue: False | multivalue: False | ||
editable: False | editable: False | ||
- | description: | + | description: |
- | values: ["jdk", "jre"] | + | values: ["Off", "On"] |
- | default: ["jre"] | + | default: ["On"] |
[ProductProperty] | [ProductProperty] | ||
Line 185: | Line 102: | ||
multivalue: False | multivalue: False | ||
editable: False | editable: False | ||
- | description: | + | description: |
values: [" | values: [" | ||
default: [" | default: [" | ||
- | [Changelog] | + | [ProductProperty] |
+ | type: unicode | ||
+ | name: 32bitonly | ||
+ | multivalue: False | ||
+ | editable: False | ||
+ | description: | ||
+ | values: [" | ||
+ | default: [" | ||
+ | |||
+ | [ProductProperty] | ||
+ | type: unicode | ||
+ | name: 64bitonly | ||
+ | multivalue: False | ||
+ | editable: False | ||
+ | description: | ||
+ | values: [" | ||
+ | |||
+ | [ProductProperty] | ||
+ | type: unicode | ||
+ | name: updatebranch | ||
+ | multivalue: False | ||
+ | editable: False | ||
+ | description: | ||
+ | values: [" | ||
+ | default: [" | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Changelog ===== | ||
+ | <code control.txt> | ||
+ | java (1.8.0.202-4.2.5) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.192-4.2.5) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.181-4.2.5) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.172-4.2.5) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.162-4.2.5) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.152-4.2.5) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.144-4.2.5) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.141-4.2.5) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.131-4.2.5) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.121-4.2.5) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.112-4.2.5) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.102-4.2.5) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | * update/ | ||
+ | |||
+ | java (1.8.0.92-4.2.4) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.77.3-4.2.4) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.74.2-4.2.4) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.72.15-4.2.4) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | * add Product " | ||
+ | * add Product Property " | ||
+ | |||
+ | java (1.8.0.66.17-4.2.3) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.60.27-4.2.3) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.51.16-4.2.3) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.45.14-4.2.3) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.40.26-4.2.3) | ||
+ | -- Kevin Weis < | ||
+ | * fixed: installation of Java JRE x86 on a x64 OS does not work (exit code 3) | ||
+ | |||
+ | java (1.8.0.40.26-4.2.2) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.31.13-4.2.2) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | |||
+ | java (1.8.0.25.18-4.2.2) | ||
+ | -- Kevin Weis < | ||
+ | * update | ||
+ | * add ProductProperty " | ||
+ | * Java 7 setup support droped (uninstalling of future Java 7 versions are still supported) | ||
+ | |||
+ | java (1.8.0.11.12-4.2.1) | ||
+ | -- Kevin Weis < | ||
+ | * update; Java 1.0.7.65 build 19 to 1.0.7.67 build 1 | ||
+ | |||
+ | java (1.8.0.11.12-4.2) | ||
+ | -- Kevin Weis < | ||
+ | * update; Java 1.0.7.60 build 19 to 1.0.7.65 build 19 | ||
+ | |||
+ | java (1.8.0.05.13-4.2) | ||
+ | -- Kevin Weis < | ||
+ | * update; Java 1.0.7.55 to 1.0.7.60 build 19 | ||
+ | * add ProductProperty " | ||
+ | * since this update (Java 7u60 JRE x64/x86) the MSI-GUID has changed at one charcter (from " | ||
+ | Minor changes: | ||
+ | * add killing Opera.exe, before in-/ | ||
+ | * little Bug-fix which caused an installation abort with the (expected at this point) error code 1619. | ||
java (1.8.0.05.13-4.1) urgency=high | java (1.8.0.05.13-4.1) urgency=high | ||
-- Kevin Weis < | -- Kevin Weis < | ||
Line 197: | Line 261: | ||
* change default of ProductProperty " | * change default of ProductProperty " | ||
* change default of ProductProperty " | * change default of ProductProperty " | ||
- | * NOTE: I´m using the JCE patch for Java 8, this work for Java 7 too (tested, no unwanted behaviour with SHA384, SHA512 | + | * NOTE: I´m using the JCE patch for Java 8, this work for Java 7 too (tested, no unwanted behaviour with SHA384, SHA512, |
Minor changes: | Minor changes: | ||
* Apply new variables nomination | * Apply new variables nomination | ||
Line 204: | Line 268: | ||
* clean up check_msi-exitcode; | * clean up check_msi-exitcode; | ||
* automate get last version of Java 7 and 8 (StringList) | * automate get last version of Java 7 and 8 (StringList) | ||
- | |||
java (1.8.0-4) urgency=high | java (1.8.0-4) urgency=high | ||
Line 216: | Line 279: | ||
see also: http:// | see also: http:// | ||
- | |||
java (7.0.51-3) urgency=high | java (7.0.51-3) urgency=high | ||
Line 224: | Line 286: | ||
* find installed versions of JRE now by using a for loop (supporting deinstallation since java 6u10 x64 and x32) | * find installed versions of JRE now by using a for loop (supporting deinstallation since java 6u10 x64 and x32) | ||
* serval other little impovments | * serval other little impovments | ||
- | |||
java (7.0.40-2.2) urgency=high | java (7.0.40-2.2) urgency=high | ||
Line 232: | Line 293: | ||
check_uninstall.ins: | check_uninstall.ins: | ||
add explicit declaration for > | add explicit declaration for > | ||
- | |||
java (7.0.25-2.1) urgency=high | java (7.0.25-2.1) urgency=high | ||
-- Kevin Weis < | -- Kevin Weis < | ||
* check_uninstall.ins: | * check_uninstall.ins: | ||
- | |||
java (7.0.17-2.1) urgency=high | java (7.0.17-2.1) urgency=high | ||
-- Kevin Weis < | -- Kevin Weis < | ||
- Bugfix bugfix = hing fest bei der Installation/ | - Bugfix bugfix = hing fest bei der Installation/ | ||
- | |||
java (7.0.9-2.0) urgency=high | java (7.0.9-2.0) urgency=high | ||
Line 250: | Line 308: | ||
- autoupdate = off | - autoupdate = off | ||
- Bugfix = hing fest bei der Installation/ | - Bugfix = hing fest bei der Installation/ | ||
- | |||
java (7.0-7) testing; urgency=low | java (7.0-7) testing; urgency=low | ||
- | |||
java (7.0-4) testing; urgency=low | java (7.0-4) testing; urgency=low | ||
-- Kevin Weis < | -- Kevin Weis < | ||
* Initial package | * Initial package | ||
- | |||
- | </ | ||
- | |||
- | ===== check_msi-exitcode.ins ===== | ||
- | <code winst check_msi-exitcode.ins> | ||
- | SetLogLevel = 2 | ||
- | |||
- | For $x$ In $StringList_Java6$ Do Sub_Uninstall_6 | ||
- | For $x$ In $StringList_Java7$ Do Sub_Uninstall_7 | ||
- | For $x$ In $StringList_Java8$ Do Sub_Uninstall_8 | ||
- | |||
- | SetLogLevel = $DefaultLogLevel$ | ||
- | |||
- | ; Reset changed variables | ||
- | Sub " | ||
- | |||
- | [Sub_Uninstall_6] | ||
- | Message " | ||
- | If $ProcessorArchitecture$ = "x86 System" | ||
- | If ( " | ||
- | Set $Temp_MsiSuffix$ = " | ||
- | Else | ||
- | Set $Temp_MsiSuffix$ = " | ||
- | EndIf | ||
- | |||
- | Set $ProductDisplayName$ = GetRegistryStringValue ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | If $ProcessorArchitecture$ = "64 Bit System" | ||
- | If ( " | ||
- | Set $Temp_MsiSuffix$ = " | ||
- | Else | ||
- | Set $Temp_MsiSuffix$ = " | ||
- | EndIf | ||
- | |||
- | Set $ProductDisplayName$ = GetRegistryStringValue32 ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | |||
- | If ( " | ||
- | Set $Temp_MsiSuffix$ = " | ||
- | Else | ||
- | Set $Temp_MsiSuffix$ = " | ||
- | EndIf | ||
- | |||
- | Message " | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue64 ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | |||
- | |||
- | |||
- | [Sub_Uninstall_7] | ||
- | |||
- | If ( " | ||
- | Set $Temp_MsiSuffix$ = " | ||
- | Else | ||
- | Set $Temp_MsiSuffix$ = " | ||
- | EndIf | ||
- | |||
- | |||
- | Message " | ||
- | If $ProcessorArchitecture$ = "x86 System" | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | If $ProcessorArchitecture$ = "64 Bit System" | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue32 ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | |||
- | Message " | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue64 ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | |||
- | Message " | ||
- | If $ProcessorArchitecture$ = "x86 System" | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | If $ProcessorArchitecture$ = "64 Bit System" | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue32 ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | |||
- | Message " | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue64 ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | |||
- | |||
- | |||
- | [Sub_Uninstall_8] | ||
- | |||
- | ; TODO check on every update | ||
- | If ( " | ||
- | Set $Temp_MsiSuffix$ = " | ||
- | Else | ||
- | Set $Temp_MsiSuffix$ = " | ||
- | EndIf | ||
- | |||
- | Message " | ||
- | If $ProcessorArchitecture$ = "x86 System" | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | If $ProcessorArchitecture$ = "64 Bit System" | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue32 ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | |||
- | Message " | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue64 ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | |||
- | Message " | ||
- | If $ProcessorArchitecture$ = "x86 System" | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | If $ProcessorArchitecture$ = "64 Bit System" | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue32 ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | |||
- | Message " | ||
- | Set $ProductDisplayName$ = GetRegistryStringValue64 ( " | ||
- | If Not ( $ProductDisplayName$ = "" | ||
- | Message " | ||
- | Set $Temp_Msi$ = " | ||
- | Sub " | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | </ | ||
- | |||
- | ===== delsub.ins ===== | ||
- | <code winst delsub.ins> | ||
- | Set $UninstallCommand$ = ' | ||
- | |||
- | KillTask " | ||
- | KillTask " | ||
- | KillTask " | ||
- | KillTask " | ||
- | KillTask " | ||
- | KillTask " | ||
- | |||
- | SetLogLevel = 6 | ||
- | Message " | ||
- | WinBatch_Uninstall / | ||
- | SetLogLevel = 1 | ||
- | Sub " | ||
- | SetLogLevel = 1 | ||
- | |||
- | Message " | ||
- | |||
- | [WinBatch_Uninstall] | ||
- | $UninstallCommand$ | ||
- | |||
- | </ | ||
- | |||
- | ===== setup.ins ===== | ||
- | <code winst setup.ins> | ||
- | [Initial] | ||
- | SetLogLevel = 5 | ||
- | ExitOnError = True | ||
- | ScriptErrorMessages = Off | ||
- | TraceMode = Off | ||
- | StayOnTop = False | ||
- | |||
- | [Actions] | ||
- | RequiredWinstVersion >= " | ||
- | Message " | ||
- | DefStringList $StringList_Java6$ | ||
- | DefStringList $StringList_Java7$ | ||
- | DefStringList $StringList_Java8$ | ||
- | DefVar $Argument_Msi_AutoUpdateCheck$ | ||
- | DefVar $Argument_Msi_IExplorer$ | ||
- | DefVar $Argument_Msi_Ju$ | ||
- | DefVar $Argument_Msi_Mozilla$ | ||
- | DefVar $Argument_Msi_SysTray$ | ||
- | DefVar $Arguments_Exe$ | ||
- | DefVar $Arguments_Msi$ | ||
- | DefVar $DefaultLogLevel$ | ||
- | DefVar $IsUninstall$ | ||
- | DefVar $MicrosoftWindowsVersion$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $PathSetup_Data$ | ||
- | DefVar $PathSetup_Exe32$ | ||
- | DefVar $PathSetup_Exe64$ | ||
- | DefVar $PathSetup_Msi32$ | ||
- | DefVar $ProcessorArchitecture$ | ||
- | DefVar $ProductDisplayName$ | ||
- | DefVar $ProductDisplayVersion$ | ||
- | DefVar $ProductDisplayVersion_x32$ | ||
- | DefVar $ProductDisplayVersion_x64$ | ||
- | DefVar $ProductName$ | ||
- | DefVar $ProductProperty_Java-Updater$ | ||
- | DefVar $ProductProperty_Version$ | ||
- | DefVar $ProductProperty_VM-Type$ | ||
- | DefVar $ProductProperty_WebJava$ | ||
- | DefVar $ProductProperty_WebJava-Security_Level$ | ||
- | DefVar $ProductVersion$ | ||
- | DefVar $RegistryPath$ | ||
- | DefVar $RegistryPath_x64$ | ||
- | DefVar $Temp_ExitCode$ | ||
- | DefVar $Temp_Message$ | ||
- | DefVar $Temp_MicrosoftWindowsVersionRequired$ | ||
- | DefVar $Temp_MicrosoftWindowsVersionRequiredName$ | ||
- | DefVar $Temp_Msi$ | ||
- | DefVar $Temp_MsiSuffix$ | ||
- | DefVar $UninstallCommand$ | ||
- | DefVar $UpdateVersion7$ | ||
- | DefVar $UpdateVersion8$ | ||
- | |||
- | Set $ProductName$ = " | ||
- | |||
- | ; https:// | ||
- | Set $StringList_Java6$ = CreateStringList ( ' | ||
- | |||
- | ; https:// | ||
- | Set $StringList_Java7$ = CreateStringList ( ' | ||
- | |||
- | ; https:// | ||
- | Set $StringList_Java8$ = CreateStringList ( ' | ||
- | |||
- | ; Get last update version | ||
- | Set $UpdateVersion7$ = TakeString ( -1, $StringList_Java7$ ) | ||
- | Set $UpdateVersion8$ = TakeString ( -1, $StringList_Java8$ ) | ||
- | |||
- | Set $DefaultLogLevel$ = " | ||
- | Set $IsUninstall$ = " | ||
- | Set $MicrosoftWindowsVersion$ = GetMsVersionInfo | ||
- | Set $MinimumSpace$ = "248 MB" | ||
- | Set $PathSetup_Data$ = " | ||
- | Set $ProcessorArchitecture$ = GetSystemType | ||
- | Set $ProductProperty_Java-Updater$ = GetProductProperty ( " | ||
- | Set $ProductProperty_VM-Type$ = GetProductProperty ( " | ||
- | Set $ProductProperty_Version$ = GetProductProperty ( " | ||
- | Set $ProductProperty_WebJava$ = GetProductProperty ( " | ||
- | Set $ProductProperty_WebJava-Security_Level$ = GetProductProperty ( " | ||
- | Set $RegistryPath$ = " | ||
- | Set $RegistryPath_x64$ = " | ||
- | Set $Temp_MsiSuffix$ = "" | ||
- | |||
- | ; Reset changed variables | ||
- | Sub " | ||
- | |||
- | ; Parse selected ProductPropertys and generate installation argument list | ||
- | If $ProductProperty_WebJava$ = " | ||
- | Set $ProductProperty_WebJava$ = " | ||
- | Set $Argument_Msi_IExplorer$ = " | ||
- | Set $Argument_Msi_Mozilla$ = " | ||
- | Else | ||
- | Set $ProductProperty_WebJava$ = " | ||
- | Set $Argument_Msi_IExplorer$ = " | ||
- | Set $Argument_Msi_Mozilla$ = " | ||
- | EndIf | ||
- | |||
- | If $ProductProperty_WebJava-Security_Level$ = " | ||
- | Set $ProductProperty_WebJava-Security_Level$ = " | ||
- | EndIf | ||
- | If $ProductProperty_WebJava-Security_Level$ = " | ||
- | Set $ProductProperty_WebJava-Security_Level$ = " | ||
- | EndIf | ||
- | If $ProductProperty_WebJava-Security_Level$ = " | ||
- | Set $ProductProperty_WebJava-Security_Level$ = " | ||
- | EndIf | ||
- | |||
- | If $ProductProperty_Java-Updater$ = " | ||
- | Set $Argument_Msi_SysTray$ = " | ||
- | Set $ProductProperty_Java-Updater$ = " | ||
- | Set $Argument_Msi_Ju$ = " | ||
- | Set $Argument_Msi_AutoUpdateCheck$ = " | ||
- | Else | ||
- | Set $Argument_Msi_SysTray$ = " | ||
- | Set $ProductProperty_Java-Updater$ = " | ||
- | Set $Argument_Msi_Ju$ = " | ||
- | Set $Argument_Msi_AutoUpdateCheck$ = " | ||
- | EndIf | ||
- | |||
- | Set $Arguments_Exe$ = "/s " + $ProductProperty_WebJava$ + " " + $ProductProperty_WebJava-Security_Level$ + " STATIC=0" | ||
- | Set $Arguments_Msi$ = "/qb! REBOOT=ReallySuppess " + $Argument_Msi_IExplorer$ + " " + $Argument_Msi_Mozilla$ + " " + $Argument_Msi_SysTray$ + " " + $ProductProperty_Java-Updater$ + " " + $Argument_Msi_Ju$ + " " + $Argument_Msi_AutoUpdateCheck$ | ||
- | |||
- | ShowBitMap /3 " | ||
- | SetLogLevel = $DefaultLogLevel$ | ||
- | |||
- | If $ProductProperty_Version$ = " | ||
- | Set $Temp_MicrosoftWindowsVersionRequired$ = " | ||
- | Set $Temp_MicrosoftWindowsVersionRequiredName$ = " | ||
- | Else | ||
- | Set $Temp_MicrosoftWindowsVersionRequired$ = " | ||
- | Set $Temp_MicrosoftWindowsVersionRequiredName$ = " | ||
- | EndIf | ||
- | If $MicrosoftWindowsVersion$ < $Temp_MicrosoftWindowsVersionRequired$ | ||
- | Message "Fatal error: Minimum Windows " + $Temp_MicrosoftWindowsVersionRequiredName$ + " is required for " + $ProductName$ + " " + $ProductProperty_Version$ | ||
- | LogError " | ||
- | IsFatalError " | ||
- | EndIf | ||
- | |||
- | If Not ( HasMinimumSpace ( " | ||
- | Message "Fatal error: Not enough space on %SystemDrive%, | ||
- | LogError "Not enough space on %SystemDrive%, | ||
- | IsFatalError "Not enough space on %SystemDrive%, | ||
- | EndIf | ||
- | |||
- | Sub " | ||
- | |||
- | KillTask " | ||
- | KillTask " | ||
- | KillTask " | ||
- | KillTask " | ||
- | KillTask " | ||
- | KillTask " | ||
- | |||
- | ; ############################################################################################################################################# | ||
- | ; ################################################################### | ||
- | ; ############################################################################################################################################# | ||
- | |||
- | If $ProcessorArchitecture$ = "64 Bit System" | ||
- | Message " | ||
- | If FileExists ( $PathSetup_Data$ + $PathSetup_Exe64$ ) | ||
- | SetLogLevel = 6 | ||
- | WinBatch_install_x64 / | ||
- | SetLogLevel = 1 | ||
- | Sub " | ||
- | Else | ||
- | Message "Fatal error: File not found: " + $PathSetup_Data$ + $PathSetup_Exe64$ | ||
- | LogError "File not found: " + $PathSetup_Data$ + $PathSetup_Exe64$ | ||
- | IsFatalError "File not found: " + $exePath$ + $exe_64$ | ||
- | EndIf | ||
- | | ||
- | If $ProductProperty_Java-Updater$ = " | ||
- | Registry_disable_update /64Bit | ||
- | EndIf | ||
- | |||
- | Message " | ||
- | If FileExists ( $PathSetup_Data$ + $PathSetup_Exe32$ ) | ||
- | SetLogLevel = 6 | ||
- | WinBatch_install_x86 / | ||
- | SetLogLevel = 1 | ||
- | Sub " | ||
- | Else | ||
- | LogWarning "File not found: " + $exePath$ + $exe_32$ | ||
- | EndIf | ||
- | |||
- | ; Installation of Java x86 at a x64 system envirement does " | ||
- | Set $Temp_ExitCode$ = GetLastExitCode | ||
- | If $Temp_ExitCode$ = " | ||
- | Comment " | ||
- | SetLogLevel = 5 | ||
- | Files_delete_broken_x86_x64 /32Bit | ||
- | SetLogLevel = 1 | ||
- | Sub " | ||
- | |||
- | Message " | ||
- | If $ProductProperty_VM-Type$ = " | ||
- | If FileExists ( $PathSetup_Data$ + $PathSetup_Msi32$ ) | ||
- | SetLogLevel = 6 | ||
- | WinBatch_install_x86_64_UseMSI / | ||
- | SetLogLevel = 1 | ||
- | Sub " | ||
- | Else | ||
- | Message "Fatal error: File not found: " + $PathSetup_Data$ + $PathSetup_Msi32$ | ||
- | LogError "File not found: " + $PathSetup_Data$ + $PathSetup_Msi32$ | ||
- | IsFatalError "File not found: " + $exePath$ + $msi32$ | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | ; Explicit install Java x86, because in this situation the Java Installer (MSI) only install the jdk And for some reason it does NOT install the jre :( | ||
- | Set $PathSetup_Msi32$ = " | ||
- | If FileExists ( $PathSetup_Data$ + $PathSetup_Msi32$ ) | ||
- | SetLogLevel = 6 | ||
- | WinBatch_install_x86_64_UseMSI / | ||
- | SetLogLevel = 1 | ||
- | Sub " | ||
- | Else | ||
- | Message "Fatal error: File not found: " + $PathSetup_Data$ + $PathSetup_Msi32$ | ||
- | LogError "File not found: " + $PathSetup_Data$ + $PathSetup_Msi32$ | ||
- | IsFatalError "File not found: " + $PathSetup_Data$ + $PathSetup_Msi32$ | ||
- | EndIf | ||
- | |||
- | ; Reset changed variables | ||
- | Sub " | ||
- | Else | ||
- | Sub " | ||
- | EndIf | ||
- | If $ProductProperty_Java-Updater$ = " | ||
- | Registry_disable_update /32Bit | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | ; ############################################################################################################################################# | ||
- | ; ################################################################### | ||
- | ; ############################################################################################################################################# | ||
- | |||
- | If $ProcessorArchitecture$ = "x86 System" | ||
- | Message " | ||
- | If FileExists ( $PathSetup_Data$ + $PathSetup_Exe32$ ) | ||
- | SetLogLevel = 6 | ||
- | WinBatch_install_x86 / | ||
- | SetLogLevel = 1 | ||
- | Sub " | ||
- | Else | ||
- | Message "Fatal error: File not found: " + $PathSetup_Data$ + $PathSetup_Exe32$ | ||
- | LogError "File not found: " + $PathSetup_Data$ + $PathSetup_Exe32$ | ||
- | IsFatalError "File not found: " + $PathSetup_Data$ + $PathSetup_Exe32$ | ||
- | EndIf | ||
- | If $ProductProperty_Java-Updater$ = " | ||
- | Registry_disable_update /32Bit | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | ; Patch JCE | ||
- | If $ProcessorArchitecture$ = "64 Bit System" | ||
- | If FileExists ( " | ||
- | Message "Apply patch For JCE (Java Cryptography Extension)" | ||
- | If $ProductProperty_VM-Type$ = " | ||
- | Files_patch_JCE_JDK_x64 | ||
- | EndIf | ||
- | If $ProductProperty_VM-Type$ = " | ||
- | LogWarning "NOT Patching JCE for x64 JDK; File not found: %ProgramFiles64Dir%\Java\jdk" | ||
- | EndIf | ||
- | Files_patch_JCE_JRE_x64 | ||
- | Else | ||
- | LogWarning "NOT Patching JCE for x64 JRE and JDK; File not found: %ProgramFiles64Dir%\Java\jre" | ||
- | EndIf | ||
- | EndIf | ||
- | |||
- | If FileExists ( " | ||
- | Message "Apply patch For JCE (Java Cryptography Extension)" | ||
- | If $ProductProperty_VM-Type$ = " | ||
- | Files_patch_JCE_JDK_x86 | ||
- | EndIf | ||
- | If $ProductProperty_VM-Type$ = " | ||
- | LogWarning "NOT Patching JCE for x86 JDK; File not found: %ProgramFiles32Dir%\Java\jdk" | ||
- | EndIf | ||
- | Files_patch_JCE_JRE_x86 | ||
- | Else | ||
- | LogWarning "NOT Patching JCE for x86 JRE and JDK; File not found: %ProgramFiles32Dir%\Java\jre" | ||
- | EndIf | ||
- | |||
- | Message " | ||
- | |||
- | |||
- | [WinBatch_install_x86_64_UseMSI] | ||
- | msiexec /i " | ||
- | |||
- | [WinBatch_install_x86] | ||
- | " | ||
- | |||
- | [WinBatch_install_x64] | ||
- | " | ||
- | |||
- | [Files_delete_broken_x86_x64] | ||
- | Delete -f -s " | ||
- | |||
- | [Registry_disable_update] | ||
- | OpenKey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy] | ||
- | Set " | ||
- | |||
- | [Files_patch_JCE_JDK_x86] | ||
- | Copy -s " | ||
- | |||
- | [Files_patch_JCE_JDK_x64] | ||
- | Copy -s " | ||
- | |||
- | [Files_patch_JCE_JRE_x86] | ||
- | Copy -s " | ||
- | |||
- | [Files_patch_JCE_JRE_x64] | ||
- | Copy -s " | ||
- | |||
- | </ | ||
- | |||
- | ===== Sub_UpdateVariables.ins ===== | ||
- | <code winst Sub_UpdateVariables.ins> | ||
- | If $ProductProperty_Version$ = " | ||
- | Set $ProductDisplayVersion$ = $ProductProperty_Version$ + " | ||
- | Set $ProductVersion$ = " | ||
- | EndIf | ||
- | If $ProductProperty_Version$ = " | ||
- | Set $ProductDisplayVersion$ = $ProductProperty_Version$ + " | ||
- | Set $ProductVersion$ = " | ||
- | EndIf | ||
- | |||
- | Set $PathSetup_Msi32$ = " | ||
- | Set $PathSetup_Exe32$ = $ProductProperty_VM-Type$ + " | ||
- | Set $PathSetup_Exe64$ = $ProductProperty_VM-Type$ + " | ||
- | Set $ProductDisplayName$ = $ProductName$ + " " + $ProductDisplayVersion$ | ||
- | Set $ProductDisplayVersion_x32$ = $ProductDisplayName$ + " " + $ProductProperty_VM-Type$ + " x32" | ||
- | Set $ProductDisplayVersion_x64$ = $ProductDisplayName$ + " " + $ProductProperty_VM-Type$ + " x64" | ||
- | |||
- | </ | ||
- | |||
- | ===== uninstall.ins ===== | ||
- | <code winst uninstall.ins> | ||
- | [Initial] | ||
- | SetLogLevel = 5 | ||
- | ExitOnError = True | ||
- | ScriptErrorMessages = Off | ||
- | TraceMode = Off | ||
- | StayOnTop = False | ||
- | |||
- | [Actions] | ||
- | RequiredWinstVersion >= " | ||
- | Message " | ||
- | DefStringList $StringList_Java6$ | ||
- | DefStringList $StringList_Java7$ | ||
- | DefStringList $StringList_Java8$ | ||
- | DefVar $Argument_Msi_AutoUpdateCheck$ | ||
- | DefVar $Argument_Msi_IExplorer$ | ||
- | DefVar $Argument_Msi_Ju$ | ||
- | DefVar $Argument_Msi_Mozilla$ | ||
- | DefVar $Argument_Msi_SysTray$ | ||
- | DefVar $Arguments_Exe$ | ||
- | DefVar $Arguments_Msi$ | ||
- | DefVar $DefaultLogLevel$ | ||
- | DefVar $IsUninstall$ | ||
- | DefVar $MicrosoftWindowsVersion$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $PathSetup_Data$ | ||
- | DefVar $PathSetup_Exe32$ | ||
- | DefVar $PathSetup_Exe64$ | ||
- | DefVar $PathSetup_Msi32$ | ||
- | DefVar $ProcessorArchitecture$ | ||
- | DefVar $ProductDisplayName$ | ||
- | DefVar $ProductDisplayVersion$ | ||
- | DefVar $ProductDisplayVersion_x32$ | ||
- | DefVar $ProductDisplayVersion_x64$ | ||
- | DefVar $ProductName$ | ||
- | DefVar $ProductProperty_Java-Updater$ | ||
- | DefVar $ProductProperty_Version$ | ||
- | DefVar $ProductProperty_VM-Type$ | ||
- | DefVar $ProductProperty_WebJava$ | ||
- | DefVar $ProductProperty_WebJava-Security_Level$ | ||
- | DefVar $ProductVersion$ | ||
- | DefVar $RegistryPath$ | ||
- | DefVar $RegistryPath_x64$ | ||
- | DefVar $Temp_ExitCode$ | ||
- | DefVar $Temp_Message$ | ||
- | DefVar $Temp_MicrosoftWindowsVersionRequired$ | ||
- | DefVar $Temp_Msi$ | ||
- | DefVar $Temp_MsiSuffix$ | ||
- | DefVar $UninstallCommand$ | ||
- | DefVar $UpdateVersion7$ | ||
- | DefVar $UpdateVersion8$ | ||
- | |||
- | Set $ProductName$ = " | ||
- | |||
- | ; https:// | ||
- | Set $StringList_Java6$ = CreateStringList ( ' | ||
- | |||
- | ; https:// | ||
- | Set $StringList_Java7$ = CreateStringList ( ' | ||
- | |||
- | ; https:// | ||
- | Set $StringList_Java8$ = CreateStringList ( ' | ||
- | |||
- | ; Get last update version | ||
- | Set $UpdateVersion7$ = TakeString ( -1, $StringList_Java7$ ) | ||
- | Set $UpdateVersion8$ = TakeString ( -1, $StringList_Java8$ ) | ||
- | |||
- | Set $DefaultLogLevel$ = " | ||
- | Set $IsUninstall$ = " | ||
- | Set $MicrosoftWindowsVersion$ = GetMsVersionInfo | ||
- | Set $MinimumSpace$ = "248 MB" | ||
- | Set $PathSetup_Data$ = " | ||
- | Set $ProcessorArchitecture$ = GetSystemType | ||
- | Set $ProductProperty_Java-Updater$ = GetProductProperty ( " | ||
- | Set $ProductProperty_VM-Type$ = GetProductProperty ( " | ||
- | Set $ProductProperty_Version$ = GetProductProperty ( " | ||
- | Set $ProductProperty_WebJava$ = GetProductProperty ( " | ||
- | Set $ProductProperty_WebJava-Security_Level$ = GetProductProperty ( " | ||
- | Set $RegistryPath$ = " | ||
- | Set $RegistryPath_x64$ = " | ||
- | Set $Temp_MsiSuffix$ = "" | ||
- | |||
- | ; Reset changed variables | ||
- | Sub " | ||
- | |||
- | ; Parse selected ProductPropertys and generate installation argument list | ||
- | If $ProductProperty_WebJava$ = " | ||
- | Set $ProductProperty_WebJava$ = " | ||
- | Set $Argument_Msi_IExplorer$ = " | ||
- | Set $Argument_Msi_Mozilla$ = " | ||
- | Else | ||
- | Set $ProductProperty_WebJava$ = " | ||
- | Set $Argument_Msi_IExplorer$ = " | ||
- | Set $Argument_Msi_Mozilla$ = " | ||
- | EndIf | ||
- | |||
- | If $ProductProperty_WebJava-Security_Level$ = " | ||
- | Set $ProductProperty_WebJava-Security_Level$ = " | ||
- | EndIf | ||
- | If $ProductProperty_WebJava-Security_Level$ = " | ||
- | Set $ProductProperty_WebJava-Security_Level$ = " | ||
- | EndIf | ||
- | If $ProductProperty_WebJava-Security_Level$ = " | ||
- | Set $ProductProperty_WebJava-Security_Level$ = " | ||
- | EndIf | ||
- | |||
- | If $ProductProperty_Java-Updater$ = " | ||
- | Set $Argument_Msi_SysTray$ = " | ||
- | Set $ProductProperty_Java-Updater$ = " | ||
- | Set $Argument_Msi_Ju$ = " | ||
- | Set $Argument_Msi_AutoUpdateCheck$ = " | ||
- | Else | ||
- | Set $Argument_Msi_SysTray$ = " | ||
- | Set $ProductProperty_Java-Updater$ = " | ||
- | Set $Argument_Msi_Ju$ = " | ||
- | Set $Argument_Msi_AutoUpdateCheck$ = " | ||
- | EndIf | ||
- | |||
- | Set $Arguments_Exe$ = "/s " + $ProductProperty_WebJava$ + " " + $ProductProperty_WebJava-Security_Level$ | ||
- | Set $Arguments_Msi$ = "/qb! REBOOT=ReallySuppess " + $Argument_Msi_IExplorer$ + " " + $Argument_Msi_Mozilla$ + " " + $Argument_Msi_SysTray$ + " " + $ProductProperty_Java-Updater$ + " " + $Argument_Msi_Ju$ + " " + $Argument_Msi_AutoUpdateCheck$ | ||
- | |||
- | ShowBitMap /3 " | ||
- | SetLogLevel = $DefaultLogLevel$ | ||
- | |||
- | Sub " | ||
- | |||
- | Message " | ||
</ | </ | ||