(set @app-name "BootMan")
(set @default-dest "")

(complete 0)
(if (exists "s:startup-sequence1")
	(copyfiles
		(prompt "killing old BootMan startup")
		(source "s:startup-sequence1")
		(dest "s:")
		(newname "startup-sequence")
		(files)
	)
	(
 (message "Your s:startup-sequence will now be renamed to s:startup-sequence1."
        " This is required so that BootMan will be the first application "
        "loaded so you can decide if you wish to use your old "
        "startup-sequence or another one.")
	(rename "s:startup-sequence" "s:startup-sequence1")
	)
)

(complete 19)
(protect "s:startup-sequence1" "+s -p +r -e")

(complete 20)
(message "The new startup-sequence, BootMan program,"
        " documentation, default, and demo configurations will now"
        " be copied to your s: directory")
(copyfiles
        (prompt "Copying BootMan and configuration files to s:")
        (source "s")
        (dest "s:")
        (all)
        (files)
)

(complete 40)
(message "The BootMan documentation will now be copied.")
(copyfiles
        (prompt "Copying BootMan documentation")
        (source "BootMan.guide")
        (dest "s:")
        (infos)
)

(complete 50)
(message "The BootMan Preference manager will now be copied.")
(copyfiles
        (prompt "Copying BootMan Preference Manager")
        (source "BootManPrefs")
        (dest "sys:prefs")
        (infos)
)

(complete 75)
(message "The BootMan Preference manager will now be started so you"
        " can configure your new multiple startup system!")
(run "BootManPrefs"
        (prompt "Running BootMan Preference Manager")
        (safe)
)

(complete 100)
