(set name
   (askdir
      (prompt "Select the place where you would like the AB3D directory to be created:"
      "(Path must end with : or /)")
      (help "The AB3D directory will be placed in the directory you specify here.")
      (default "Work:")
   )
)

(set fullname (cat name "AB3D"))

(makedir fullname)

(set fullname (cat fullname "/"))


(textfile
   (prompt "Creating executable script")
   (help "This script file must be executed either from CLI or WorkBench to run the game.")
   (dest (cat fullname "AlienBreed3D"))
   (append (cat "Assign AB3D1: " fullname))
   (append "\n")
   (append (cat "Assign AB3D2: " fullname))
   (append "\n")
   (append (cat "cd " fullname))
   (append "\n")
   (append "abd.pk")
   (append "\n")
)

(protect (cat fullname "AlienBreed3D") "+s")

(copyfiles
   (prompt "Copying Disk 2 files to %s" fullname)
   (help "The installer is currently copying the files from Disk 2 to %s. There is nothing to fear." name)
   (source "AB3D2:")
   (dest fullname)
   (all)
)

(askdisk
   (prompt "Please insert Disk One")
   (help "The installer now needs Disk One to complete the installation.")
   (dest "AB3D1")
)

(copyfiles
   (prompt "Copying Disk 1 files to %s" fullname)
   (help "The installer is currently copying the files from Disk 1 to %s. There is nothing to fear." name)
   (source "AB3D1:")
   (dest fullname)
   (all)
)

