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 2.00[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"
echo "If you prefer, you may copy the Catalogs directory to"
echo "the same directory as the ErrorCom program itself,"
echo "but you will have to do it yourself in this case.*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 "*NDo you want to copy "
echo "[32mWhatError 1.04[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
