.key test/s,full/s
.bra [
.ket ]
Disk11:MW
echo "*Ec*N                 Litil Divil Installer*N"

lab nameloop
  echo "Which partition do you want to install the game to? (eg DH0: Work:) " noline
  set >NIL: target ?
  if "$target" EQ "Q"
      skip exit
  endif

  if "`echo $target len 1`" NOT EQ ":"
    set target $target:
  endif

  assign >NIL: exists "${Target}"
  if warn
    echo "Error: partition does not exist.*N"
    skip back nameloop
  endif

lab partok

assign Target: "${Target}"
c:makedir >nil: target:TheBizzo
c:copy disk11:lha ram:
c:copy disk11:cls sys:c/
copy Disk11:joinz sys:c/
copy Disk11:joinz.exe sys:c/
ram:lha x Disk11:libs libs:
ram:lha x Disk11:devs devs:
c:cls
echo "*n*nCopying Files Please Wait..........."
copy disk11:little#? target:thebizzo
copy Disk1: target:thebizzo all
copy Disk2: target:thebizzo all
copy Disk3: target:thebizzo all
copy Disk4: target:thebizzo all
copy Disk5: target:thebizzo all
copy Disk6: target:thebizzo all
copy Disk7: target:thebizzo all
copy Disk8: target:thebizzo all
copy Disk9: target:thebizzo all
copy Disk10: target:thebizzo all
makedir target:Zippy
c:cls
echo "*n*nJoining & Unpacking Files Please Wait............"
joinz >nil: target:thebizzo/Little_devil target:Zippy/1.lha
cls
delete >nil: target:thebizzo/#?
delete >nil: target:thebizzo
ram:lha >nil: x target:zippy/1 target:
delete >nil: target:zippy/#?
delete >nil: target:zippy
echo "*n*nAdding More Files Please Wait............"
ram:lha >nil: x Disk11:2 target:litil_divil/gfx/
ram:lha >nil: x Disk12:3 target:litil_divil/gfx/
ram:lha >nil: x Disk13:4 target:litil_divil/gfx/
ram:lha >nil: x Disk14:5 target:litil_divil/gfx/
lab exit
c:cls
c:echo "*n*n All done now please reboot!"
  
