File size: 2,520 Bytes
806d4b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82

#help_index "Misc/TOS"

U0 TOSStaffIns()
{//Completes TOS install from TempleOSStaff.ISO
  SettingsPush; //See SettingsPush
  AutoComplete;
  WinBorder;
  WinMax;
  DocClear;
  "$PURPLE$$TX+CX,\"Complete TOS install from TempleOSStaff.ISO\"$$FG$\n\n\n\n";
  InsRereg;

  "\nDownload TempleOSSup1.ISO.C\tfrom http://www.templeos.org AppStore.\n"
  "Download TempleOSBooks1.ISO.C\tfrom http://www.templeos.org AppStore.\n"
  "Download TempleOSBooks2.ISO.C\tfrom http://www.templeos.org AppStore.\n\n";

  if (PressAKey!=CH_SHIFT_ESC) {
    if (HostChgDsk("/home/tad/TempleOSSup1.ISO.C"))
      CopyTree("T:/","~/Sup1");
    if (HostChgDsk("/home/tad/TempleOSBooks1.ISO.C"))
      CopyTree("T:/","~/Books1");
    if (HostChgDsk("/home/tad/TempleOSBooks2.ISO.C"))
      CopyTree("T:/","~/Books2");

    Once("TOSBootHDIns;");
    "\nDo you wish to run >TOSRegen; to generate\n the "
    "distro ISO's and the website image, D:/Wb ";
    if (YorN) {
      Once("TOSRegen;");
      BootRAM("C:/" KERNEL_BIN_C); //Boot so TOSRegen cmd is available.
    } else {
      "\nReboot ";
      if (YorN)
        Reboot;
    }
  }
  SettingsPop;
}

public U0 TOSStdIns()
{//Completes TOS install from TempleOSCD.ISO
  SettingsPush; //See SettingsPush
  AutoComplete;
  WinBorder;
  WinMax;
  DocClear;
  "$PURPLE$$TX+CX,\"Complete TOS install from TempleOSCD.ISO\"$$FG$\n\n\n\n";
  InsRereg;

  "\nDownload TempleOSSup1.ISO.C\tfrom http://www.templeos.org AppStore.\n"
  "Download TempleOSWeb.ISO.C\tfrom http://www.templeos.org AppStore.\n"
  "Download TempleOSBooks1.ISO.C\tfrom http://www.templeos.org AppStore.\n"
  "Download TempleOSBooks2.ISO.C\tfrom http://www.templeos.org AppStore.\n\n";

  if (PressAKey!=CH_SHIFT_ESC) {
    if (FileFind("/Demo/AcctExample"))
      CopyTree("::/Demo/AcctExample","~");
    if (HostChgDsk("/home/tad/Downloads/TempleOSSup1.ISO.C"))
      CopyTree("T:/","~/Sup1");
    if (HostChgDsk("/home/tad/Downloads/TempleOSWeb.ISO.C"))
      CopyTree("T:/","~/Web");
    if (HostChgDsk("/home/tad/Downloads/TempleOSBooks1.ISO.C"))
      CopyTree("T:/","~/Books1");
    if (HostChgDsk("/home/tad/Downloads/TempleOSBooks2.ISO.C"))
      CopyTree("T:/","~/Books2");

    Once("TOSBootHDIns;");
    "\nDo you wish to run >TOSRegen; to generate\n the "
    "distro ISO's and the website image, D:/Wb ";
    if (YorN) {
      Once("TOSRegen;");
      BootRAM("C:/" KERNEL_BIN_C); //Boot so TOSRegen cmd is available.
    } else {
      "\nReboot ";
      if (YorN)
        Reboot;
    }
  }
  SettingsPop;
}