G4C - Install

;this will look for Gui4Cli on the system and install the xanim script

WinFont Times.font 13 010
WINBIG 50 50 200 120 'Install'
WinType 11010000

xOnLoad
GuiOpen Install
Failat 10
Extract Install GUIPATH PathVar
Assign NetBar: $PathVar  

BOX 0 0 200 120 IN RIDGE

Text 10 10 190 10 'This will setup NetBar to' 26 NOBOX
Text 10 20 190 10 'run on your system' 20 NOBOX
Text 5 60 190 30 '' 50 BOX
GadID 1

xButton 70 95 60 20 Install

IfExists Assign Guis
  Update Install 1 'Installing NetBar files'
  Copy NetBar:icons/xAnim.scr c:
Else
  Update Install 1 'Gui4Cli not installed see docs'
EndIf

If $$RETCODE >= 10
  UpDate Install 1 'Problem with file copy see docs'
Else
  UpDate Install 1 'All Done!  "Lets Rock"'
EndIf


xOnClose
If LOADED_GUIS > 1
GuiQuit Install
Else
Quit
