Changeset 50

Show
Ignore:
Timestamp:
02/15/08 19:38:44 (10 months ago)
Author:
cinc
Message:

Added check for installed MM classes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/install/install.CMD

    r44 r50  
    4848        /* First phase */ 
    4949 
     50        IF haveMMClasses()=0 THEN DO 
     51                /* No CWMM classes */ 
     52                /* 'Multimedia classes are not installed. This system configuration is not supported.' */ 
     53                /* nlsStrings.22='Press <ENTER> to quit.' */ 
     54                SAY '' 
     55                SAY nlsStrings.63 
     56                say '' 
     57                say nlsStrings.22 
     58                say '' 
     59                say '>' 
     60                parse value SysCurPos() with aktzeile aktspalte 
     61                newposition=SysCurPos(aktzeile-1,2) 
     62                pull 
     63                exit 
     64        END 
     65 
    5066        /* Welcome screen */ 
    5167        SAY '' 
     
    609625 
    610626 
     627/* Check if running on eCS1.2 or later. Will succeed 
     628 on Warp 4 with installed CWMM classes, too. */ 
     629haveMMClasses: procedure 
     630 
     631  ret=SysQueryClassList('classes.') 
     632  found=0 
     633  DO cls=1 to classes.0 
     634        theclass=WORD(classes.cls, 1) 
     635        thePath=SUBWORD(classes.cls, 2); 
     636        IF TRANSLATE(theClass)='CWMMDATAFILE' THEN DO; 
     637                found=1 ; 
     638                LEAVE; 
     639        END; 
     640  END; 
     641return found 
     642 
     643 
    611644/**** The following subroutine was appended while building the distribution: 
    612645