echo "ViroCop AGA Hard Disk Installer*n"

IF NOT EXISTS ViroCopPAL
   IF NOT EXISTS ViroCop
      echo "ViroCop AGA is about to be installed to " NOLINE
      cd
      ask "Is this correct (Y/N)? "
      IF WARN
         echo "*nInstalling. Please wait...*n"

         IF NOT EXISTS LIBS:lowlevel.library
            copy ViroCop:Libs/lowlevel.library LIBS:
         ENDIF

         copy ViroCop:Drawer.info "ViroCop.info" QUIET
         makedir ViroCop
         cd ViroCop
         copy ViroCop:ViroCop       ""            QUIET
         copy ViroCop:askboot       ""            QUIET
         copy ViroCop:ViroCopHD     ""            QUIET
         copy ViroCop:ViroCop.info ViroCopHD.info QUIET
         copy ViroCop:ViroCopPAL    ""            QUIET
         makedir Cores
         makedir Sets
         makedir Graphics
         makedir Pictures
         makedir Samples

         copy ViroCop:Cores       Cores    all QUIET
         copy ViroCop:Sets        Sets     all QUIET
         copy ViroCop:Graphics    Graphics all QUIET
         copy ViroCop:Pictures    Pictures all QUIET
         copy ViroCop:Samples     Samples  all QUIET

         copy ViroData1:Cores     Cores    all QUIET
         copy ViroData1:Sets      Sets     all QUIET
         copy ViroData1:Graphics  Graphics all QUIET
         copy ViroData1:Pictures  Pictures all QUIET
         copy ViroData1:Samples   Samples  all QUIET

         copy ViroData2:Cores     Cores    all QUIET
         copy ViroData2:Sets      Sets     all QUIET
         copy ViroData2:Graphics  Graphics all QUIET
         copy ViroData2:Pictures  Pictures all QUIET
         copy ViroData2:Samples   Samples  all QUIET

         cd /
         echo "*nInstallation complete.*n"
         echo "Please remove your original disk(s) and keep"
         echo "them in a safe place. You may delete this"
         echo "installer program from " NOLINE
         cd
         echo "as it is no longer required.*n"
      ENDIF
   ELSE
      echo "ViroCop is already installed here.*n"
   ENDIF
ELSE
   echo "IMPORTANT: You double-clicked this icon before"
   echo "dragging it onto your hard disk.*n"
   echo "You must drag the 'Install To Hard Disk' icon"
   echo "to the place on your hard disk where you wish"
   echo "to install the program before double-clicking.*n"
ENDIF
ask "Please press the Enter key to acknowledge."
