# Install.cmd script RAP Communication option
# Site dependent default config files
echo -text "Installing option RAP Communication"

if -var 29 -value 10 -label NEXT_STEP
install -resource Function -name "RAP"
setvar -var 29 -value 10

#NEXT_STEP
if -var 27 -value 10 -label END_LABEL

#
# Install SCWrite Instruction, mmc cfg file and text file
#
config -filename  $BOOTPATH/sysrap.cfg -domain SYS -internal
config -filename  $BOOTPATH/rlsc.cfg -domain MMC 
text -filename  $BOOTPATH/rlsc.eng -package 0

#
# Install the RAP function, cfg Files for RAP and rap english file
#
config -filename  $BOOTPATH/com_rapi.cfg -domain SIO -internal
#config -filename  $BOOTPATH/com_r_s4.cfg -domain SIO

#
# Default configuration of RAP for the Virtual Controller
#

ifvc -label RAP_DEFAULT_CONFIG
goto -label NO_DEFAULT_CONFIG
#RAP_DEFAULT_CONFIG
config -filename $BOOTPATH/com_rap.cfg -domain SIO
#NO_DEFAULT_CONFIG

text -filename  $BOOTPATH/rap.$LANG -package 0

setvar -var 27 -value 10
#END_LABEL
