.key none
.bra {
.ket }

echo "This operation will install 'amigaguide.library' in your LIBS: directory"
echo "and 'AmigaGuide' stand-alone help viewer in your SYS:Utilities directory."
echo "It will NOT overwrite existing files that are more up-to-date than the"
echo "files supplied here. NOTE: If 'amigaguide.library' is not present in your"
echo "LIBS: directory, on-line help will not be available in ArJay Genealogist."
echo ""
ask "Do you want to install 'amigaguide.library' (Y/N)?"
if warn
  failat 21
  version >NIL: amigaguide.library 34 6
  if warn
     echo "Installing amigaguide.library version 34.6"
     copy AmigaGuide/amigaguide.library libs: clone
  else
     echo "Not installing amigaguide.library 34.6 because newer/same version"
     echo "is already present"
  endif
  failat 10
endif

ask "Do you want to install 'AmigaGuide' stand-alone viewer (Y/N)?"
if warn
  failat 21
  version >NIL: SYS:Utilities/Amigaguide 34 2
  if warn
     echo "Installing Amigaguide version 34.2"
     copy AmigaGuide/Amigaguide SYS:Utilities clone
     copy AmigaGuide/Amigaguide.info SYS:Utilities clone
  else
     echo "Not installing Amigaguide 34.2 because newer/same version is present"
  endif
  failat 10
endif

echo "Done. Finishing up..."
wait 1
