This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
userspace:ibm_semeru_open_jre [2023/01/03 16:00] chris_10 created |
userspace:ibm_semeru_open_jre [2023/01/03 16:32] (current) chris_10 |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== IBM Semeru | + | ====== IBM Semeru |
- | Comments and improvements welcome \\ | + | |
Tested with opsi 4.2 \\ | Tested with opsi 4.2 \\ | ||
Windows 10 x64 Ent SAC 19.09, 20H2 & 21H2 \\ | Windows 10 x64 Ent SAC 19.09, 20H2 & 21H2 \\ | ||
+ | Download IBM Semeru Runtimes from here: https:// | ||
type: localboot\\ | type: localboot\\ | ||
id: ibm-semeru-open-jre\\ | id: ibm-semeru-open-jre\\ | ||
description: | description: | ||
+ | |||
+ | < | ||
+ | tree: | ||
+ | |-- setup.opsiscript | ||
+ | |-- delsub.opsiscript | ||
+ | |-- uninstall.opsiscript | ||
+ | |-- ibm-semeru-open-jre_x64_windows_8u352b08_openj9-0.35.0.msi | ||
+ | |-- ibm-semeru-open-jre_x86-32_windows_8u352b08_openj9-0.35.0.msi | ||
+ | |-- ibm-semeru-open-jre.png | ||
+ | |-- check_msi-exitcode.opsiscript | ||
+ | </ | ||
+ | |||
+ | The " | ||
==== setup.opsiscript ==== | ==== setup.opsiscript ==== | ||
Line 46: | Line 58: | ||
DefVar $SetupFile_64$ | DefVar $SetupFile_64$ | ||
DefVar $ExitCode$ | DefVar $ExitCode$ | ||
- | DefVar $LicenseRequired$ | ||
- | DefVar $LicenseKey$ | ||
- | DefVar $LicensePool$ | ||
DefVar $Version$ | DefVar $Version$ | ||
DefVar $Version_OpenJ$ | DefVar $Version_OpenJ$ | ||
Line 71: | Line 80: | ||
Set $INST_SystemType$ = GetSystemType | Set $INST_SystemType$ = GetSystemType | ||
Set $INST_MsVersion$ = GetMsVersionInfo | Set $INST_MsVersion$ = GetMsVersionInfo | ||
- | Set $INST_architecture$ = GetProductProperty(" | + | Set $LogDir$ |
- | Set $LogDir$ | + | |
; ---------------------------------------------------------------- | ; ---------------------------------------------------------------- | ||
Line 80: | Line 88: | ||
Set $ProductId$ | Set $ProductId$ | ||
Set $MinimumSpace$ | Set $MinimumSpace$ | ||
- | Set $Version$ = " | + | Set $Version$ = " |
- | Set $Version_OpenJ$ = " | + | Set $Version_OpenJ$ = " |
Set $InstallDir_SysN$ = " | Set $InstallDir_SysN$ = " | ||
- | Set $SetupFile_32$ = " | + | Set $SetupFile_32$ = " |
- | Set $SetupFile_64$ = " | + | Set $SetupFile_64$ = " |
- | Set $InstCMD$ | + | Set $InstCMD$ |
- | Set $LicenseRequired$ = " | + | Set $UninstCMD$ = "/ |
- | Set $LicensePool$ | + | Set $Product_Pic$ = " |
- | Set $UninstCMD$ = "/ | + | |
- | Set $Product_Pic$ = " | + | |
; ---------------------------------------------------------------- | ; ---------------------------------------------------------------- | ||
Line 107: | Line 113: | ||
endif | endif | ||
- | if $LicenseRequired$ = " | ||
- | comment " | ||
- | Sub_get_licensekey | ||
- | endif | ||
; ---------------------------------------------------------------- | ; ---------------------------------------------------------------- | ||
Line 121: | Line 123: | ||
ShowBitmap " | ShowBitmap " | ||
- | if (($INST_SystemType$ = "x86 System" | + | if ($INST_SystemType$ = "x86 System" |
comment "Check previous Version" | comment "Check previous Version" | ||
Line 137: | Line 139: | ||
endif | endif | ||
- | if (($INST_SystemType$ = "64 Bit System" | + | if ($INST_SystemType$ = "64 Bit System" |
comment "Check previous 64 Bit Version installed" | comment "Check previous 64 Bit Version installed" | ||
Line 165: | Line 167: | ||
[Winbatch_install_64] | [Winbatch_install_64] | ||
msiexec /i $SetupFile_64$ $InstCMD$ | msiexec /i $SetupFile_64$ $InstCMD$ | ||
- | |||
- | |||
- | [Sub_get_licensekey] | ||
- | if opsiLicenseManagementEnabled | ||
- | comment " | ||
- | |||
- | comment " | ||
- | Set $LicenseKey$ = demandLicenseKey ($LicensePool$) | ||
- | ; If there is an assignment of exactly one licensepool to the product the following call is possible: | ||
- | ; Set $LicenseKey$ = demandLicenseKey ("", | ||
- | ; | ||
- | ; If there is an assignment of a license pool to a windows software id, it is possible to use: | ||
- | ; DefVar $WindowsSoftwareId$ | ||
- | ; $WindowsSoftwareId$ = " | ||
- | ; Set $LicenseKey$ = demandLicenseKey ("", | ||
- | |||
- | DefVar $ServiceErrorClass$ | ||
- | set $ServiceErrorClass$ = getLastServiceErrorClass | ||
- | comment "Error class: " + $ServiceErrorClass$ | ||
- | |||
- | if $ServiceErrorClass$ = " | ||
- | comment " | ||
- | else | ||
- | if $ServiceErrorClass$ = " | ||
- | LogError " | ||
- | LogError getLastServiceErrorMessage | ||
- | isFatalError | ||
- | else | ||
- | if $ServiceErrorClass$ = " | ||
- | LogError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | else | ||
- | LogError " | ||
- | isFatalError | ||
- | endif | ||
; ---------------------------------------------------------------- | ; ---------------------------------------------------------------- | ||
Line 317: | Line 281: | ||
Set $ProductId$ | Set $ProductId$ | ||
Set $MinimumSpace$ | Set $MinimumSpace$ | ||
- | Set $Version$ = " | + | Set $Version$ = " |
Set $InstallDir_SysN$ = " | Set $InstallDir_SysN$ = " | ||
Set $LicenseRequired$ = " | Set $LicenseRequired$ = " | ||
- | Set $LicensePool$ | + | Set $UninstCMD$ = "/ |
- | Set $UninstCMD$ = "/ | + | Set $Product_Pic$ = "ibm-semeru-open-jre.png" |
- | Set $Product_Pic$ = "logo.png" | + | |
; ---------------------------------------------------------------- | ; ---------------------------------------------------------------- | ||