@echo.
@echo. Installation of LDSPRTS.WAD
@echo.
@echo. This will take some seconds, be patient.
@echo.
@rem Check main WAD
@if not exist doom.wad goto miss
@echo @echo. Restoration > restore.bat
@echo doom.exe -file LDSPRTS.WAD > play.bat 
@rem
@rem Install Sprites or Flats in WAD
@if not exist LDSPRTS.WAD goto miss
@echo deusf -res LDSPRTS.WAD >> restore.bat
@echo  Completing sprites and flats, please wait...
@deusf -main .\doom.wad -as LDSPRTS.WAD> deusf.log
@if not ERRORLEVEL 0 goto fail 
@rem
@rem
@echo Installation succeeded.
@echo type PLAY to play the modified game.
@echo type RESTORE to uninstall.
@goto end
:fail
@echo. Installation failed: A tool didn't work.
@echo. See hack.log or deusf.log for details.
@goto end
:miss
@echo. Installation impossible: some files are missing.
@echo. Did you have deusf.exe and dehacked.exe ?
@echo. Please copy all your files in the main game directory.
@echo. And try install again.
@goto end
:end
