; YourFault Install script for use with CBM installer.
; $VER: YourFault_Install 1.0

(set @default-dest "SYS:WBStartup")

; copy yourfault to wbstartup
(copylib
	(prompt "Copying YourFault")
	(confirm)
	(help @copylib-help)
	(source "YourFault")
	(infos)
	(noposition)
	(dest @default-dest)
)

; Ask where to put the string file
(set stringsdest
	(askdir
		(prompt 'Where will I install the example fault strings file to?')
		(help @askdir-help)
		(default 'S:')
	)
)

; copy FaultStrings to stringsdest
(copyfiles
	(prompt "Copying FaultStrings (Remember to edit them l8r...:)")
	(help @copylib-help)
	(source "FaultStrings")
	(dest stringsdest)
)

(Tooltype
	(dest "SYS:WBStartup/YourFault")
	(settooltype "DONOTWAIT" "")
	(settooltype "FROM" (Tackon stringsdest "FaultStrings"))
)

; and exit :)
(exit "A reboot is required.\nI hope you find YourFault fun!\nLSK _\\\\//")