echo "[33mWelcome to the ErrorCom installation script.*N[31m"

version >NIL: exec.library 37
IF WARN
echo "You need [33mKickstart 2.04[31m to use ErrorCom, sorry !"
skip Exit
ENDIF

echo "*N[31mDo you want to copy "
echo "[32mErrorCom V1.0[31m"
echo "into your SYS:Utilities/Commodities directory (this is absolutely"
ask "not required for it to run, but it is a convenient place) ?"

IF WARN
echo "*NCopying..." NOLINE
copy /ErrorCom/ErrorCom to SYS:Utilities/Commodities/ErrorCom
echo "Done."
ENDIF

echo "*NFor ErrorCom to operate in your language, I must copy"
echo "a catalog file to your system disk for each language supported"
echo "(except for english, which is the builtin language).*N"

ask "Copy the [32mfrench (français)[31m catalog file ?"
IF WARN
echo "*NCopying..." NOLINE
copy /ErrorCom/Catalogs/Français/errorcom.catalog to LOCALE:Catalogs/Français/errorcom.catalog
echo "Done."
ENDIF

echo "*N[31mDo you want to copy "
echo "[32mWhatError V1.0[31m"
ask "into your C: directory ?"
IF WARN
echo "*NCopying..." NOLINE
copy /WhatError/WhatError to C:
echo "Done."
ENDIF

echo "*NAll done."

Lab Exit
Quit
