sys:c/Requestchoice "XTreme Racing Custom Tracks Installer V1.0" "Please choose your XTR directory ! *n*nFor example: Sys:Games/XTR/" OK QUIT >ENV:ACE1
skip $ACE1
lab 1
if exists test
assign ace: ""
else
sys:c/Requestchoice "XTreme Racing Custom Tracks Installer V1.0" "You must start this Installer from *nthe same directory, where the custom Tracks are located !!!" "Install Aborted" >env:Nog
skip 0
endif
lab choosedir
sys:c/RequestFile DRAWER "Sys:" TITLE "Please choose your XTR: directory ..." Drawersonly >ENV:XTR
if warn
skip 0
endif
cd $xtr
if exists frontend
skip installation
else
skip Wrongdir
endif
lab Installation
cd $xtr
copy >NIL: ace:tracks tracks all quiet
copy >NIL: ace:Worlds Worlds all quiet
copy >NIL: ace:layouts layouts all quiet
copy >NIL: ace:objects objects all quiet
copy >NIL: ace:tiles tiles all quiet
sys:c/Requestchoice "XTreme Racing Custom Tracks Installer V1.0" "Installation successfully completed !*n*nI hope, at least ;)" "I hope it too !" >ENV:nog2
unsetenv nog
unsetenv ace1
unsetenv acepath
unsetenv nog2
unsetenv nog3
endcli
lab Wrongdir
sys:c/Requestchoice "XTreme Racing Custom Tracks Installer V1.0" "You choosed a wrong directory ! *n*n*nExample: Sys:Games/XTR/" "Try again" >env:nog3
skip choosedir back
endcli
lab 0
sys:c/Requestchoice "XTreme Racing Custom Tracks Installer V1.0" "Installation aborted !" "I´m a Lamer !" >env:nog4