; Trade Wars 1.00.

label main
  begin
  Product   = Trade Wars 2002 v2
  FreeSpace = 3 megabytes
  HuntFile  = MAJORBBS.EXE

  MainFiles  = HVSTELL.EXE HVSTWSYS.DOC HVSTW.MSG HVSTW.MDF HVSTW.DOC HVSTWVER.TXT

  Path

  echo Checking current installation...

  exist HVSTW.MSG
    alert Trade Wars 2002 v2 is already installed!$N$Press <Esc> to abort or <Return> to continue.

  ; Begin main installation stuff.

  echo Copying main files...

  for MainFiles ThisFile
    copy $ThisFile$

  ZipFile = TWVIRS.ZIP

  copy $ZipFile$

  echo UnZIPping $DestPath$$ZipFile$...
  exec $ZIPPath$pkunzip -o $DestPath$$ZipFile$ $DestPath$

  erase $ZipFile$

  ZipFile = TWEXES.ZIP

  copy $ZipFile$

  echo UnZIPping $DestPath$$ZipFile$...
  exec $ZIPPath$pkunzip -o $DestPath$$ZipFile$ $DestPath$

  erase $ZipFile$

  mkdir $DestPath$HVSTWDAT
  ZipFile = TWDAT.ZIP

  copy $ZipFile$

  echo UnZIPping $DestPath$$ZipFile$...
  exec $ZIPPath$pkunzip -o $DestPath$$ZipFile$ $DestPath$HVSTWDAT

  erase $ZipFile$

  ; Copy the on-line catalog if it's lying around.

  exist $SourcePath$HVSCAT.EXE
    query InstCat Do you want to install the HVS Graphic Catalog?
  else
    InstCat = No

  if $InstCat$ == Yes
    copy HVSCAT.EXE

  ; Everything went according to plan.

  alert Please read the sysop documentation in the file HVSTWSYS.DOC.

  echo Installation completed!
  end

label abort
  begin
  alert Aborting installation!$N$Reason: $Fail$
  terminate
  end
