.k ""
FailAt 20

set bcol0 "*E[40m"
set bcol2 "*E[42m"
set bold  "*E[1m"
set nbold "*E[22m"

;-----------------------------------------------------------------------
set libname "powerpacker.library"
set libver  "35.347"
set libnamet "$bold$libname$nbold"
set libvert "$bold($libver)$nbold"

Echo "*n     $bcol2 Library Installation Script $bcol0*n"

Version >NIL: LIBS:$libname

If NOT ERROR
	Echo "The following version of $libnamet is currently in LIBS:" 
	Version LIBS:$libname
	Echo " "
Else
	Echo "*nNo existing $libnamet in LIBS:*n"
EndIf

Ask "Install $libnamet version: $libvert ?"
If NOT WARN
   Skip LIB2
EndIf

Copy libs/$libname LIBS:$libname
Echo "*n$libnamet $libvert copied to your LIBS: directory."

;-----------------------------------------------------------------------
Lab LIB2
Echo "*n*n"

set libname "reqtools.library"
set libver  "38.1022"
set libnamet "$bold$libname$nbold"
set libvert "$bold($libver)$nbold"

Version >NIL: LIBS:$libname

If NOT ERROR
	Echo "The following version of $libnamet is currently in LIBS:" 
	Version LIBS:$libname
	Echo " "
Else
	Echo "*nNo existing $libnamet in LIBS:*n"
EndIf

Ask "Install $libnamet version: $libvert ?"
If NOT WARN
   Skip LIB3
EndIf

Copy libs/$libname LIBS:$libname
Echo "*n$libnamet $libvert copied to your LIBS: directory."

;-----------------------------------------------------------------------
Lab LIB3
Echo "*n*n"

set libname "xpkmaster.library"
set libver  "2.4"
set libnamet "$bold$libname$nbold"
set libvert "$bold($libver)$nbold"

Version >NIL: LIBS:$libname

If NOT ERROR
	Echo "The following version of $libnamet is currently in LIBS:" 
	Version LIBS:$libname
	Echo " "
Else
	Echo "*nNo existing $libnamet in LIBS:*n"
EndIf

Ask "Install $libnamet version: $libvert ?"
If NOT WARN
   Skip LIB4
EndIf

Copy libs/$libname LIBS:$libname
Echo "*n$libnamet $libvert copied to your LIBS: directory."

;-----------------------------------------------------------------------
Lab LIB4
Echo "*n*n"

Ask "Install SmartPlay libraries to libs:SmartPlay/ ?"
If NOT WARN
   Skip DONE
EndIf

if exists libs:SmartPlay
    skip COPYIT
else
    makedir libs:SmartPlay
endif

Lab COPYIT
Copy libs/SmartPlay LIBS:SmartPlay all clone

Lab DONE
Echo "*nInstallation complete.*n"

unset libname
unset libver
unset libnamet
unset libvert
unset bcol0
unset bcol2

Echo "*n*E[3mClick the close gadget to continue! *E[23m*n"

Wait 2
EndCLI >NIL:


