home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 30 fixes_v / 30-fixes_v.zip / gu320358.zip / updinst.cmd < prev   
OS/2 REXX Batch file  |  2000-12-24  |  2KB  |  42 lines

  1. /* REXX - Install GU320358.CSD */
  2. /* Created by: [CSDBuild, V2.03 - 24/12/00 - (C) Chris Graham - WarpSpeed Computers] */
  3. '@echo off'
  4. say '===================================================='
  5. say 'Installing CSD file for 32 bit Intel applications   '
  6. say '===================================================='
  7. GUEnv = Value( 'GU',,'OS2ENVIRONMENT' )
  8. if ( GUEnv <> '' ) then do
  9.   'Copy GU320358.CSD' GUEnv
  10.   FileSpec( 'Drive', GUEnv )
  11.   'CD' GUEnv
  12.   end
  13. else do
  14.   Beep( 750, 200 )
  15.   Beep( 750, 200 )
  16.   Beep( 750, 200 )
  17.   Beep( 550, 900 )
  18.   'echo The GU Environment Variable is not set. Please set    >  ERROR'
  19.   'echo it and try again. You may need to set the environment >> ERROR'
  20.   'echo variable in CONFIG.SYS and reboot.                    >> ERROR'
  21.   'echo It should be of the form:                             >> ERROR'
  22.   'echo SET GU=C:\GU20                                        >> ERROR'
  23.   'echo This is the setting for the default installation.     >> ERROR'
  24.   'START e ERROR'
  25.   exit -1
  26.   end
  27. say 'Spawning: "START /C CSDINST GU320358.CSD > GU320358.LOG"'
  28. say 'Check GU320358.LOG for results'
  29. say '===================================================='
  30. 'START /C CSDINST GU320358.CSD > GU320358.LOG'
  31. if (rc <> 0) then do
  32.   say 'An error has occurred while installing this CSD.'
  33.   say 'The return code reported is: '||rc
  34.   say 'Check for any special instructions in the new-info.txt file'
  35.   say 'and retry install.'
  36.   say '===================================================='
  37. end
  38. else do
  39.   say 'The CSD has installed sucessfully.'
  40.   say '===================================================='
  41. end
  42.