echo ""
echo "This script installs all the proper files into the right dirs"
echo "for Stu's CDXL GUI (libraries, commands, etc)."
echo ""
Alias Clear "Echo *"*E[0;0H*E[J*" "
ask "Continue? "

if warn
 clear
 protect Install +S
 protect StusCDXLGUI +S
 protect StusCDXLGUI.dosbit +S
 if exists libs:rexxreqtools.library
  version libs:rexxreqtools.library
  version rexxreqtools.library
  echo "Type N if they are both the same or the higher number is bigger, if the"
  ask  "lower version number is bigger, type Y: "
   if warn
    copy rexxreqtools.library libs:
   endif
  else
   copy rexxreqtools.library libs:
  endif
 copy cdgsxl.new c:
echo ""
assign AmiTCP: exists >NIL:
if warn not
if exists AmiTCP:bin/sendmail
  clear
  echo "I've found AmiTCP installed on your system. Can I please send the mail saying you"
  echo "have tried this program? You will not recieve anything from me from this mail,"
  echo "any comments etc. should be send manually."
  ask  "I'd just like to know how many people use this. Please? "
  if warn
   echo ""
   echo "Thank you! :)"
   echo "To: cdxlgui@tomonet.demon.co.uk" >RAM:CDXLMail
   echo "Subject: (Auto) I used Stu's CDXL GUI v1.3! :)" >>RAM:CDXLMail
   echo "" >>RAM:CDXLMail
   echo "My name is" >>RAM:CDXLMail
if exists ENV:REALNAME
   type ENV:REALNAME >>RAM:CDXLMail
else
   echo "REALNAME ENV variable not found." >>RAM:CDXLMail
endif
   echo "The date and time are" >>RAM:CDXLMail
   date >>RAM:CDXLMail
   echo "and I've just install Stu's CDXL GUI 1.3! :)" >>RAM:CDXLMail
  sendmail <RAM:CDXLMail
  delete ram:CDXLMail quiet
  endif
 endif
endif   

echo "Complete"
else
echo "Okay, bye bye..."
endif
  
