.KEY conffile
.BRA {
.KET }

failat 21

if NOT EXISTS "{conffile}"
  requestchoice >NIL: "Error!" "Required configuration file*n{conffile}*nis missing." "Quit"
  skip FINE
endif

makedir T:SVCNFG
delete T:SVCNFG/#? ALL FORCE QUIET
; wait 5 SECS
unzip -o "{conffile}" -d T:SVCNFG
; wait 3 SECS

if NOT EXISTS T:SVCNFG/AROSTCP/AutoRun
  requestchoice >NIL: "Error!" "Required configuration file is missing or corrupt." "Quit"
  skip FINE
endif

if NOT EXISTS T:SVCNFG/SYS/ahi.prefs
  requestchoice >NIL: "Error!" "Required configuration file is missing or corrupt." "Quit"
  skip FINE
endif

if WARN
  requestchoice >NIL: "Error!" "Required configuration file is missing or corrupt." "Quit"
  skip FINE
endif

copy T:SVCNFG/#? TO envarc: ALL QUIET FOOVR NOPRO

requestchoice >NIL: "Restore completed" "Configuration files successfully applied.*nPlease reboot system to enable them." "Exit"

lab FINE
; end of script

