.bra {
.ket }
; Set the directories for the Pro-Board_DEMO and its PCB data files.
; These directories may be the same.
; DemoIcon will be NIL: if PB_DEMO is to be installed to Root or Volume.
; Will be ignored if parent of the destination directory already has an icon.

; Install latest version of req.library
IF NOT EXISTS Libs:req.library
  ; Prompt user to install req.library.  Exit if `No'
  ReqRequest " Install req.library to LIBS:? " " Yes " " No "
    IF WARN
      SKIP Copy_Lib
    ELSE
      ReqRequest " No point in continuing, then. " " Quit "
      SKIP OutaHere
    ENDIF
ELSE
  Version >NIL: req.library 2
  IF WARN
    SKIP Install_Req
  ENDIF
  Version >NIL: req.library REVISION 5
  IF WARN
    SKIP Install_Req
  ENDIF
ENDIF

SKIP Install_Questions


LAB Install_Req

ReqRequest " You have an older version of req.library.  Update it? " " Yes " " No "
IF WARN
  SKIP Copy_Lib
ELSE
  SKIP OutaHere
ENDIF


LAB Copy_Lib

COPY req.library LIBS:


LAB Install_Questions

ASSIGN ProDemoArc: /  ; Set parent directory as source for archives

; Ask user for destination directories for program and data files
ReqInstallDemo

IF NOT WARN
  EXECUTE ProDemoArc:Install/InstallScript
ENDIF

LAB OutaHere

ENDCLI
