@echo off
if %3 == install goto install
echo If you wish to install IndyCar Racing II into your system,
echo please run the INSTALL.EXE program.
goto exit

rem   usage:  inst  from_drive to_drive install
rem example:  inst  d: c: install

:install

%2
md cars
cd cars
md cars95
cd cars95
copy %1\icr2\cars\cars95\cars95.dat
copy %1\icr2\cars\cars95\drivers.txt
cd ..
cd ..

md effects
md objs
md rol
md sound

md tracks
cd tracks

md austral
cd austral
copy %1\icr2\tracks\austral\austral.txt
copy %1\icr2\tracks\austral\*.st?
copy %1\icr2\tracks\austral\records.txt
cd ..

md clevland
cd clevland
copy %1\icr2\tracks\clevland\clevland.txt
copy %1\icr2\tracks\clevland\*.st?
copy %1\icr2\tracks\clevland\records.txt
cd ..

md detroit
cd detroit
copy %1\icr2\tracks\detroit\detroit.txt
copy %1\icr2\tracks\detroit\*.st?
copy %1\icr2\tracks\detroit\records.txt
cd ..

md elkhart
cd elkhart
copy %1\icr2\tracks\elkhart\elkhart.txt
copy %1\icr2\tracks\elkhart\*.st?
copy %1\icr2\tracks\elkhart\records.txt
cd ..

md laguna
cd laguna
copy %1\icr2\tracks\laguna\laguna.txt
copy %1\icr2\tracks\laguna\*.st?
copy %1\icr2\tracks\laguna\records.txt
cd ..

md longbch
cd longbch
copy %1\icr2\tracks\longbch\longbch.txt
copy %1\icr2\tracks\longbch\*.st?
copy %1\icr2\tracks\longbch\records.txt
cd ..

md michigan
cd michigan
copy %1\icr2\tracks\michigan\michigan.txt
copy %1\icr2\tracks\michigan\*.st?
copy %1\icr2\tracks\michigan\records.txt
cd ..

md midohio
cd midohio
copy %1\icr2\tracks\midohio\midohio.txt
copy %1\icr2\tracks\midohio\*.st?
copy %1\icr2\tracks\midohio\records.txt
cd ..

md mlwaukee
cd mlwaukee
copy %1\icr2\tracks\mlwaukee\mlwaukee.txt
copy %1\icr2\tracks\mlwaukee\*.st?
copy %1\icr2\tracks\mlwaukee\records.txt
cd ..

md nazareth
cd nazareth
copy %1\icr2\tracks\nazareth\nazareth.txt
copy %1\icr2\tracks\nazareth\*.st?
copy %1\icr2\tracks\nazareth\records.txt
cd ..

md nwenglnd
cd nwenglnd
copy %1\icr2\tracks\nwenglnd\nwenglnd.txt
copy %1\icr2\tracks\nwenglnd\*.st?
copy %1\icr2\tracks\nwenglnd\records.txt
cd ..

md phoenix
cd phoenix
copy %1\icr2\tracks\phoenix\phoenix.txt
copy %1\icr2\tracks\phoenix\*.st?
copy %1\icr2\tracks\phoenix\records.txt
cd ..

md portland
cd portland
copy %1\icr2\tracks\portland\portland.txt
copy %1\icr2\tracks\portland\*.st?
copy %1\icr2\tracks\portland\records.txt
cd ..

md toronto
cd toronto
copy %1\icr2\tracks\toronto\toronto.txt
copy %1\icr2\tracks\toronto\*.st?
copy %1\icr2\tracks\toronto\records.txt
cd ..

md vancouvr
cd vancouvr
copy %1\icr2\tracks\vancouvr\vancouvr.txt
copy %1\icr2\tracks\vancouvr\*.st?
copy %1\icr2\tracks\vancouvr\records.txt
cd ..

cd ..

mkdir paintkit
cd paintkit
copy %1\icr2\paintkit\*.*
cd ..

copy %1\icr2\paintkit.exe

copy %1\icr2\regdos.exe
copy %1\icr2\regprint.ctl
copy %1\icr2\mailform.ctl
copy %1\icr2\pipeline.ini
copy %1\icr2\slide.inf

copy %1\icr2\uvconfig.exe
copy %1\icr2\hmi*.386
copy %1\icr2\indycar.exe
copy %1\icr2\setup.exe
copy %1\icr2\setup.cfg
copy %1\icr2\modems.cfg
copy %1\icr2\mip.cfg
copy %1\icr2\calendar
copy %1\icr2\readme.txt
copy %1\icr2\main.dat
echo %1\icr2 > lib.cfg

:exit
