IfThere <Boot$Dir>.RO<Boot$OSVersion>Hook.Boot then SetEval Boot$Hook -1 else SetEval Boot$Hook 0
IfThere <Boot$Dir>.SiteHook then SetEval Site$Hook -1 else SetEval Site$Hook 0
If NOT Boot$Hook Then Error Support for RISCOS version<Boot$OSVersion> is missing - reinstall !Boot

| Set up main choices based on OS version
Set Choices$Path <Boot$Dir>.RO<Boot$OSVersion>Hook.

| If we're on a network, set up the paths
Obey -c <Boot$Dir>.Utils.NetChoices

| Link in any local site configuration
If Site$Hook   Then Set Choices$Path Boot:SiteHook.,<Choices$Path>

| And any remote configuration for remote booting
If Boot$Remote Then Set Choices$Path Boot:MchConfig.<Boot$Unique>.,<Choices$Path> Else Set Choices$Path Boot:Choices.,<Choices$Path>
If Boot$Remote Then Set Choices$Dir  Boot:MchConfig.<Boot$Unique> Else Set Choices$Dir Boot:Choices

| The place to which choices should be written and
| from which we set up the system
Set Choices$Write   <Choices$Dir>
Set Boot$ToBeLoaded <Choices$Write>.Boot.PreDesk
Set Boot$ToBeTasks  <Choices$Write>.Boot.Tasks

| And the final set of resources
Set BootResources$Dir  <Boot$Dir>.Resources
Set BootResources$Path <BootResources$Dir>.

Unset Boot$Hook
Unset Site$Hook
