BACKGROUND 63 TELESCOPE OFF WINOPEN 0 2 95 " RESUME MASTER DELUXE" " Shareware Version 4.0" "-- For that winning edge in today's job market --" "" "(C) Copyright Whirlwind Technologies 1991-1994" " All Rights Reserved" TELESCOPE ON SHADOW ON WINOPEN 0 12 31 "Install Resume Master Deluxe to hard drive?" " (Y or N)" ASK 44 14 WINCLOSE JUMP.NO VIEW_README SPACE 385 DRIVE C 28 12 31 15 32 14 79 PATH \RMD40 0 12 31 15 32 14 79 UNPACK RMD40.PAK 0 12 31 32 14 79 JUMP.FAIL INSTALL_FAILURE WINOPEN 0 12 31 "Resume Master Deluxe is now installed on your computer" "at: ~1~2." "" " Press the [Enter] key to continue." WAIT +36 +7 WINCLOSE '------------------- HANDLE README FILE VIEW/PRINT ------------------------ :VIEW_README WINOPEN 0 12 31 "Would you like to VIEW the README File?" " (Y or N)" ASK +39 +2 WINCLOSE JUMP.NO PRINT_README WINOPEN 0 0 31 "Loading ..." VIEW ~0\README 79 31 WINCLOSE :PRINT_README 'INSTALL.TXT WINOPEN 0 12 31 "Would you like to PRINT the README file?" " (Y or N)" ASK 44 14 WINCLOSE JUMP.NO VIEW_VENDOR.DOC WINOPEN 0 0 31 "Printing ..." PRINT ~0\README WINCLOSE JUMP.FAIL PRINTER_ERROR1 JUMP VIEW_VENDOR.DOC :PRINTER_ERROR1 WINOPEN 0 12 31 "Your printer is not responding. Possible problems:" " -- Printer is not turned on" " -- Printer is out of paper" " -- Printer is not attached to LPT1 (parallel port 1)" " -- The file no longer exists on the distribution disk" "" "Do you want to try to print again (Y or N)?" ASK 57 18 WINCLOSE JUMP.YES PRINT_README '------------------- HANDLE VENDOR.DOC FILE VIEW/PRINT ------------------------ :VIEW_VENDOR.DOC WINOPEN 0 12 31 "Would you like to VIEW the VENDOR.DOC File?" " (Y or N)" ASK +39 +2 WINCLOSE JUMP.NO PRINT_VENDOR.DOC WINOPEN 0 0 31 "Loading ..." VIEW ~0\VENDOR.DOC 79 31 WINCLOSE :PRINT_VENDOR.DOC 'INSTALL.TXT WINOPEN 0 12 31 "Would you like to PRINT the VENDOR.DOC file?" " (Y or N)" ASK 44 14 WINCLOSE JUMP.NO VIEW_MANUAL.DOC WINOPEN 0 0 31 "Printing ..." PRINT ~0\VENDOR.DOC WINCLOSE JUMP.FAIL PRINTER_ERROR3 JUMP VIEW_MANUAL.DOC :PRINTER_ERROR3 WINOPEN 0 12 31 "Your printer is not responding. Possible problems:" " -- Printer is not turned on" " -- Printer is out of paper" " -- Printer is not attached to LPT1 (parallel port 1)" " -- The file no longer exists on the distribution disk" "" "Do you want to try to print again (Y or N)?" ASK 57 18 WINCLOSE JUMP.YES PRINT_VENDOR.DOC '------------------- HANDLE MANUAL.DOC FILE VIEW/PRINT ------------------------ :VIEW_MANUAL.DOC WINOPEN 0 12 31 "Would you like to VIEW the User's Manual?" " (Y or N)" ASK +39 +2 WINCLOSE JUMP.NO PRINT_MANUAL.DOC WINOPEN 0 0 31 "Loading ..." VIEW ~0\MANUAL.DOC 79 31 WINCLOSE :PRINT_MANUAL.DOC WINOPEN 0 12 31 "Would you like to PRINT the User's Manual?" " (Y or N)" ASK 44 14 WINCLOSE JUMP.NO EXIT WINOPEN 0 0 31 "Printing ..." PRINT ~0\MANUAL.DOC WINCLOSE JUMP.FAIL PRINTER_ERROR2 JUMP EXIT :PRINTER_ERROR2 WINOPEN 0 12 31 "Your printer is not responding. Possible problems:" " -- Printer is not turned on" " -- Printer is out of paper" " -- Printer is not attached to LPT1 (parallel port 1)" " -- The file no longer exists on the distribution disk" "" "Do you want to try to print again (Y or N)?" ASK 57 18 WINCLOSE JUMP.YES PRINT_MANUAL.DOC :EXIT WINCLOSE EXIST ~1~2\MANUAL.DOC 'test if program installed or not JUMP.NO NOT_INSTALLED WINOPEN 0 0 31 " RESUME MASTER DELUXE INSTALLATION COMPLETE" "" "To run program: Attach to ~1~2 and enter RESUME" "To print manual: Attach to ~1~2 and enter" " COPY MANUAL.DOC PRN" "" " !!! PLEASE REGISTER THIS PROGRAM !!!" "" " Press the [Enter] key to continue" WAIT +36 +11 SHELL "~1" "CD ~2"" END :NOT_INSTALLED WINOPEN 0 0 31 " RESUME MASTER DELUXE NOT INSTALLED" "" "To install at a later time, run installation program again." "" " Press the [Enter] key to continue." WAIT +36 +11 END ' ---------------------- ' Installation Failure. ' It is a good idea to ' add a similar routine ' to the bottom of all ' script files. ' ---------------------- :INSTALL_FAILURE ' labels begin with a colon and can be up to 32 characters long. WINOPEN 0 12 79 ' the easiest way to center a message on the screen is to make ' either the x or y coordinates "0". ' 79 is a red window with emphasized white letters (good for error messages) "THE INSTALLATION PROGRAM FAILED PRIOR TO COMPLETION" "" "Possible reasons:" " -- The floppy disk was removed prior to completion." " -- The floppy disk was damaged during shipping." " -- Your disk drive is out of alignment." "" "Press [Enter] to remove incomplete program files." WAIT 62 20 ' delete all partial files using internal variables ' ~1 = the drive the user installed to (C: was the default) ' ~2 = the path the user installed to (\SAMPLE was the default) DELETE ~1~2\*.* 0 0 31 ' now remove the directory RD ~1~2 WINCLOSE WINOPEN 0 12 31 "Partially Installed Files are Now Deleted." "" " Press [Enter] to Quit." WAIT 47 15