home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / new / util / batch / dosreqtools / installer.script < prev    next >
Text File  |  1994-11-27  |  2KB  |  59 lines

  1. ;Installer.script
  2.  
  3.  
  4. LAB main
  5. rtGetString "Install DOSReqTools Executables" "Please enter the directory where you want\nthe DOSReqTools executables copied.\n\nWe suggest SYS:c but you can place them\nin any directory that is in the path." "OK|Cancel" default "SYS:c"  TO ENV:target POS CENTERSCR
  6. SET Result $RC
  7.  
  8. IF $Result eq 0
  9.  SKIP ABORT
  10. ENDIF
  11.  
  12. IF $Result eq 1
  13.   COPY rt#? to $Target clone
  14.   COPY DOSExtensions to $target
  15. ENDIF
  16.  
  17. SET location `CD`
  18. rtEZrequest "Installation Instructions" BODY "You may want to move DOSReqTools to another\nplace on your hard drive.\n\nIs the current location, $location OK\nor would you like to have it moved?" buttontext "Move to New Location|Leave it Here" POS CENTERSCR
  19. set result $RC
  20.  
  21. IF $result eq 0
  22.  SKIP GO
  23. ENDIF
  24.  
  25. LAB CHANGE
  26.  
  27. rtGetString "Install DOSReqTools Guide and Demos" "Please enter the directory where you\nwant the DOSReqTools Guide and Demos copied.\nWe suggest SYS:\nDon't change the filename, just the path." "Install|Cancel" default "SYS:DOSReqTools"  TO ENV:DOSRTPATH  POS CENTERSCR
  28. SET Result $RC
  29.  
  30. IF $Result eq 0
  31.  SKIP ABORT
  32. ENDIF
  33.  
  34.  
  35.   CD /
  36.   COPY DOSReqTools ALL to $DOSRTPATH clone
  37.  
  38.   SETenv rootdir `PathPart $DOSRTPATH` 
  39.  
  40.   COPY DOSReqTools.info to $rootdir
  41.  
  42.     IF WARN
  43.       rtezrequest "Error Message" "An error has occured\nPlease enter another destination." _Continue"  POS CENTERSCR
  44.       skip back main
  45.     ENDIF
  46.  
  47. LAB GO
  48.  
  49. COPY ENV:DOSRTPATH TO SYS:Prefs/Env-Archive; So RTMAN can find the Guide
  50.  
  51.   rtezrequest "Installation Status" "Installation Complete\nThe DOSReqTools executables are in $target\nThe DOSrt.guide and Demo scripts are in $DOSRTPATH\nThe DOS Extensions are in $target" "_Continue"  POS CENTERSCR
  52.  
  53. ENDIF
  54.  
  55. QUIT
  56.  
  57. LAB ABORT
  58.  
  59. rtezrequest "DOSReqTools Information" BODY "The installation has been aborted at your request.\nThank you and have a nice day, dude." BUTTONTEXT "_Quit" POS CENTERSCR