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

(set fullname (tackon name "NSX"))

(makedir fullname (infos))

(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 "NibblerSupereXtra"))
	(append (cat "Assign NSX: " fullname))
	(append "\n")
	(append (cat "cd " fullname))
	(append "\n")
	(append "NSXv1.90")
	(append "\n")
        (append "assign NSX: REMOVE")
)

(copyfiles
	(prompt "Copying data files to %s" fullname)
	(help "The installer is currently copying the files from archive to %s." name)
	(source "")
	(dest fullname)
	(all)
)
(rename (cat fullname "nsxicon") (cat fullname "NibblerSupereXtra.info"))
