@mode co80
@cls
@if exist %windir%\powF1loc.bat goto PreRunGame
@rem install will create a file called 
@rem "powF1loc.bat" which knows where powerf1 was installed this file
@rem is saved in the windows directory e.g. %windir%
:Install
install %windir%
@if errorlevel -1 goto End
call setsound.bat
readme
@goto RunGame
:PreRunGame
@echo POWER F1
@echo --------
@echo We detect that Power F1 has already been installed, and thus assume you wish
@echo to run the game. If you would like to re-install PowerF1 please delete the
@echo directory to where it is installed AND delete the file "powF1loc.bat" from
@echo the directory where Windows is installed (usually c:\windows)
@echo Please read the "readme.txt" file for further information.
@echo -
@choice Play PowerF1 ?
@if errorlevel 2 goto Installed
@goto RunGame
:Installed
@rem uninstal %windir%
@goto End
:RunGame
@call %windir%\powf1loc.bat
f1
:End
