   ETF2EXE - Command line based ETF to DOOM EXE loader.

ETF2EXE is a small utility for loading an ETF into a DOOM EXE file
using parameters from the command line.

Program command syntax help is available by typing: ETF2EXE /?
at the command prompt.


The main purpose of this program is to you give level builders and
WAD authors the ability to add further customization to your
packages by including modified text and cheat codes that
could follow the theme of whatever you're creating.

All you need to do is include this program along with the
customized ETF in your package, and put the proper commands
in your installer program.

Here is an example of a package, you can use the installer programs shown
further down if you want:

  YOURWAD.WAD - your PWAD file containing the levels and custom data
  YOURETF.ETF - your custom ETF
  ETF2EXE.EXE - ETF to DOOM EXE loader
  INSTALL.BAT - installer batch program
  UNINSTAL.BAT - un-installer batch program

INSTALL.BAT:
  @echo off
  if not exist DOOM.EXE goto nodoom
  if exist DOOMEXE.BAK goto alreadyinstalled
  echo making backup copy of your DOOM.EXE...
  copy DOOM.EXE DOOMEXE.BAK
  echo installing...
  etf2exe.exe YOURETF.ETF DOOM.EXE
  echo Installation completed.
  echo.
  echo Type DOOM -file YOURDOOM.WAD  to begin playing.
  goto exit

  :alreadyinstalled
  echo You have already installed this package, if you want
  echo to remove it, type UNINSTAL
  goto exit

  :nodoom
  echo I see no DOOM exe here, please make sure you have placed
  echo all the install files in your DOOM directory, and are running
  echo this program from inside that directory.

  :exit



UNINSTAL.BAT:
  @echo off
  if not exist DOOMEXE.BAK goto nobackup
  echo putting back the old DOOM.EXE...
  del DOOM.EXE
  move DOOMEXE.BAK DOOM.EXE
  echo removing install files, bye bye...
  del YOURWAD.WAD
  del YOURETF.ETF
  del ETF2EXE.EXE
  del INSTALL.BAT
  del UNINSTAL.BAT
  goto exit

  :nobackup
  echo The DOOMEXE.BAK file was not found, make sure you are
  echo running this program from inside your DOOM directory.

  :exit



It is recommended that you have your install program make a backup
copy of the DOOM.EXE, so that an un-install program can restore
the original file before your package was installed.

