.k ""
FailAt 21

Echo "*E[0;0H*E[J*E[1m*E[32mixemul.library *E[31m Installation Script*n*E[0m"

set prog ixemul.library
Version >NIL: LIBS:$prog version 39 44
set result $rc
set ny `version $prog`
If $result eq 5
	Echo "*nVersion of $prog already installed:*E[1m"
	Version LIBS:$prog
	Echo "*E[0m"
	ask "Do you want to upgrade to $ny (y/N) ?"
	If WARN
		Copy libs/$prog LIBS:$prog
		Echo "*n$ny copied to your LIBS: directory."
	EndIf
endif
if $result eq 10
	echo "You don't have $prog. Copying..."
	Copy libs/$prog LIBS:$prog
endif	
if $result eq 0
	echo "Your $prog is up to date."
endif	

lab ok
Echo "*nInstallation complete."

unset prog
unset result
Avail >NIL: FLUSH
Echo "Close Window!"
EndCLI >NIL:
