User Tools

Site Tools


userspace:ibm_semeru_open_jre

Differences

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

Link to this comparison view

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 JRE Runtime ====== +====== IBM Semeru Java Runtime ======
-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://developer.ibm.com/languages/java/semeru-runtimes/
  
 type: localboot\\ type: localboot\\
 id: ibm-semeru-open-jre\\ id: ibm-semeru-open-jre\\
 description: Java Runtime\\ description: Java Runtime\\
 +
 +<code>
 +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
 +</code>
 +
 +The "check_msi-exitcode.opsiscript" is from UIB default Repo.
  
 ==== 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("install_architecture","system specific"+Set $LogDir$  = "%SystemDrive%\tmp"
-Set $LogDir$  = "%SystemDrive%\tmp"+
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
  
Line 80: Line 88:
 Set $ProductId$        = "IBM Semeru Runtime" Set $ProductId$        = "IBM Semeru Runtime"
 Set $MinimumSpace$    = "200 MB" Set $MinimumSpace$    = "200 MB"
-Set $Version$ = "8u352b08" +Set $Version$ = "8u352b08" 
-Set $Version_OpenJ$ = "9-0.35.0"+Set $Version_OpenJ$ = "9-0.35.0"
 Set $InstallDir_SysN$ = "%ProgramFilesSysnativeDir%\Java" Set $InstallDir_SysN$ = "%ProgramFilesSysnativeDir%\Java"
-Set $SetupFile_32$ = "%ScriptPath%\"+"ibm-semeru-open-jre_x86-32_windows_"+$Version$+"_openj"+$Version_OpenJ$+".msi" +Set $SetupFile_32$ = "%ScriptPath%\"+"ibm-semeru-open-jre_x86-32_windows_"+$Version$+"_openj"+$Version_OpenJ$+".msi" 
-Set $SetupFile_64$ = "%ScriptPath%\"+"ibm-semeru-open-jre_x64_windows_"+$Version$+"_openj"+$Version_OpenJ$+".msi" +Set $SetupFile_64$ = "%ScriptPath%\"+"ibm-semeru-open-jre_x64_windows_"+$Version$+"_openj"+$Version_OpenJ$+".msi" 
-Set $InstCMD$  = '/log c:\tmp\OpenJDK-JRE_inst.txt /qb INSTALLDIR="C:\Program Files\Java" ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome,FeatureIcedTeaWeb,FeatureJNLPFileRunWith,FeatureOracleJavaSoft' +Set $InstCMD$  = '/log c:\tmp\OpenJDK-JRE_inst.txt /qb INSTALLDIR="C:\Program Files\Java" ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome,FeatureIcedTeaWeb,FeatureJNLPFileRunWith,FeatureOracleJavaSoft' 
-Set $LicenseRequired$ = "false" +Set $UninstCMD$ = "/S" 
-Set $LicensePool$      = "p_" + $ProductId$ +Set $Product_Pic$ = "ibm-semeru-open-jre.png"
-Set $UninstCMD$ = "/S" +
-Set $Product_Pic$ = "ibm-semeru-open-jre"+
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
  
Line 107: Line 113:
 endif endif
  
-if $LicenseRequired$ = "true" 
- comment "Licensing required, reserve license and get license key" 
- Sub_get_licensekey 
-endif 
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
  
Line 121: Line 123:
 ShowBitmap "%ScriptPath%\" + $Product_Pic$ $ProductId$ ShowBitmap "%ScriptPath%\" + $Product_Pic$ $ProductId$
  
-if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only"))+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") and ($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))+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 "License management is enabled and will be used" 
-  
- comment "Trying to get a license key" 
- Set $LicenseKey$ = demandLicenseKey ($LicensePool$) 
- ; If there is an assignment of exactly one licensepool to the product the following call is possible: 
- ; Set $LicenseKey$ = demandLicenseKey ("", $ProductId$) 
- ; 
- ; 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 ("", "", $WindowsSoftwareId$) 
-  
- DefVar $ServiceErrorClass$ 
- set $ServiceErrorClass$ = getLastServiceErrorClass 
- comment "Error class: " + $ServiceErrorClass$ 
-  
- if $ServiceErrorClass$ = "None" 
- comment "Everything fine, we got the license key '" + $LicenseKey$ + "'" 
- else 
- if $ServiceErrorClass$ = "LicenseConfigurationError" 
- LogError "Fatal: license configuration must be corrected" 
- LogError getLastServiceErrorMessage 
- isFatalError 
- else  
- if $ServiceErrorClass$ = "LicenseMissingError" 
- LogError "Fatal: required license is not supplied" 
- isFatalError 
- endif 
- endif 
- endif 
-else 
- LogError "Fatal: license required, but license management not enabled" 
- isFatalError 
-endif 
  
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
Line 317: Line 281:
 Set $ProductId$        = "IBM Semeru Runtime" Set $ProductId$        = "IBM Semeru Runtime"
 Set $MinimumSpace$    = "100 MB" Set $MinimumSpace$    = "100 MB"
-Set $Version$ = "8u352b08"+Set $Version$ = "8u352b08"
 Set $InstallDir_SysN$ = "%ProgramFilesSysnativeDir%\Java" Set $InstallDir_SysN$ = "%ProgramFilesSysnativeDir%\Java"
 Set $LicenseRequired$ = "false" Set $LicenseRequired$ = "false"
-Set $LicensePool$      = "p_" + $ProductId$ +Set $UninstCMD$ = "/S" 
-Set $UninstCMD$ = "/S" +Set $Product_Pic$ = "ibm-semeru-open-jre.png"
-Set $Product_Pic$ = "logo.png"+
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
  
userspace/ibm_semeru_open_jre.1672761626.txt.gz · Last modified: 2023/01/03 16:00 by chris_10