home *** CD-ROM | disk | FTP | other *** search
Wrap
/* check prereqs */ parse arg hFeature bootdrive where file = bootdrive'\kmcrpc10' /* These two messages are the only translatable items in the file: */ message1="Unicode Font finns inte i installationspaketet. README-filen innehåller information om hur du läser ned paketet med fonten." message2="Det här systemet har inte rätt Fix Pack-nivå för att använda Unicode-fonten. Unicode-fonten kommer inte att installeras. README-filen innehåller mer information om Fix Pack-kraven." message3="OS/2-versionen i ditt system uppfyller inte kraven för installation av Java. Installationen kommer därför att avslutas. README-filen innehåller mer information." call RxFuncAdd 'RexxInstDeselect', 'WPINSTAL', 'RexxInstDeselect' call RxFuncAdd 'RexxInstResolveVariables', 'WPINSTAL', 'RexxInstResolveVariables' call RxFuncAdd 'RexxInstSetVariable', 'WPINSTAL', 'RexxInstSetVariable' continue = RexxInstResolveVariables( hFeature, "{Continue}", 1) path = RexxInstResolveVariables( hFeature, "{UserExitPath}", 1) say path if (where == PREREQ) then CALL PREREQ /* check for font in install package */ path = RexxInstResolveVariables( hFeature, "{UserExitPath}", 1) font = path"\..\package\tnrmt30.ttf" rc = stream( font, 'c', 'open read') empty = LINES( font ) rc = stream( font, 'c', 'close' ) if (empty == "0" ) then DO rc = RexxInstDeselect( hFeature, "" ) if continue <> "UNATTENDED" then DO keep = RexxInstResolveVariables( hFeature, "{Java11:MB_VAR}", 1) zero = 0 rc = RexxInstSetVariable( hFeature,"Java11", "MB_VAR", zero ); new = RexxInstResolveVariables( hFeature, "{Java11:MB_VAR}", 1) path'\..\message ' bootdrive hFeature message1 rc = RexxInstSetVariable( hFeature, "Java11", "MB_VAR", 4 ); END EXIT END PREREQ: /* check for FixPack 30 or higher */ tmpfile = bootdrive'\j11servc.tmp' 'bldlevel 'bootdrive'\os2krnl >' tmpfile line = LINEIN( tmpfile) ret = STREAM( tmpfile, 'c', 'close') '@erase' tmpfile 'bldlevel 'bootdrive'\os2krnl >' file line = LINEIN( file) say line PARSE VAR line temp '#@'; temp = REVERSE( temp) PARSE VAR temp temp ':MBI'; level = REVERSE( temp) if (where == PREREQ) then CALL CHECKBASE if level < 8.254 then DO rc = RexxInstDeselect( hFeature, "" ) if continue <> "UNATTENDED" then DO keep = RexxInstResolveVariables( hFeature, "{MB_VAR}", 1) rc = RexxInstSetVariable( hFeature, "Java11", "MB_VAR", 0 ); path'\..\message ' bootdrive hFeature message2 rc = RexxInstSetVariable( hFeature, "Java11", "MB_VAR", keep ); END END ret = STREAM( file, 'c', 'close') '@erase' file EXIT CHECKBASE: if level < 9.23 then x = RexxInstSetVariable( hFeature, "Java11", "MERLIN", "NO") if level < 8.162 then DO if level = 7.029 then CALL BYE if continue <> "UNATTENDED" then DO rc = RexxInstSetVariable( hFeature, "Java11", "MB_VAR", 0 ); path'\..\message ' bootdrive hFeature message3 END rc = RexxInstDeselect( hFeature, "Java11" ) END BYE: ret = STREAM( file, 'c', 'close') '@erase' file EXIT