(set #CI_unit 0)
(set #CI_drive ("DF%ld:" #CI_unit))


;----------------------------

(set @default-dest
(askdir
	(prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
	(help @askdir-help)
	(default @default-dest)
	(disk)
)
)

(set #dest (tackon @default-dest @app-name))


(makedir #dest
	(help @makedir-help)
	(infos)
)

;----------------------------

(copyfiles
	(help @copyfiles-help)
	(source "BodyBlowsHD")
	(dest #dest)
)
(copyfiles
	(help @copyfiles-help)
	(source "BodyBlowsHD.info")
	(dest #dest)
)

(copyfiles
	(help @copyfiles-help)
	(source "bbhd.readme.info")
	(dest #dest)
)

(copyfiles
	(help @copyfiles-help)
	(source "bbhd.readme")
	(dest #dest)
)

(message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
	(if
		(= 0 (run ("rob2file %ld \"%s/BodyBlows.disk1\" 2 159 13246679 OFFSET >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
		("")
		(abort "\"rob2file\" must be in your PATH !")
	)

(message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
	(if
		(= 0 (run ("rob2file %ld \"%s/BodyBlows.disk2\" 0 159 13246678 >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
		("")
		(abort "\"rob2file\" must be in your PATH !")
	)

(message ("\nInsert %s disk 3 into drive %s !" @app-name #CI_drive))
	(if
		(= 0 (run ("rob2file %ld \"%s/BodyBlows.disk3\" 0 159 13246677 >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
		("")
		(abort "\"rob2file\" must be in your PATH !")
	)


(exit)

