templeos-info/public/Wb/Misc/OSInstall.HC.HTML

251 lines
25 KiB
HTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="generator" content="TempleOS V5.03">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/style/templeos.css">
<script src="/script/templeos.js"></script>
<style type="text/css">
.cF0{color:#000000;background-color:#ffffff;}
.cF1{color:#0000aa;background-color:#ffffff;}
.cF2{color:#00aa00;background-color:#ffffff;}
.cF3{color:#00aaaa;background-color:#ffffff;}
.cF4{color:#aa0000;background-color:#ffffff;}
.cF5{color:#aa00aa;background-color:#ffffff;}
.cF6{color:#aa5500;background-color:#ffffff;}
.cF7{color:#aaaaaa;background-color:#ffffff;}
.cF8{color:#555555;background-color:#ffffff;}
.cF9{color:#5555ff;background-color:#ffffff;}
.cFA{color:#55ff55;background-color:#ffffff;}
.cFB{color:#55ffff;background-color:#ffffff;}
.cFC{color:#ff5555;background-color:#ffffff;}
.cFD{color:#ff55ff;background-color:#ffffff;}
.cFE{color:#ffff55;background-color:#ffffff;}
.cFF{color:#ffffff;background-color:#ffffff;}
</style>
</head>
<body>
<pre id="content">
<a name="l1"></a><span class=cF1>U0</span><span class=cF0> InstallDrv(</span><span class=cF1>U8</span><span class=cF0> drv_let)
<a name="l2"></a>{
<a name="l3"></a> </span><span class=cF1>U8</span><span class=cF0> *st;
<a name="l4"></a> </span><span class=cF5>ExePrint</span><span class=cF0>(</span><span class=cF6>&quot;CopyTree(\&quot;::/\&quot;,\&quot;%C:/\&quot;);&quot;</span><span class=cF0>,drv_let);
<a name="l5"></a> </span><span class=cF5>ExePrint</span><span class=cF0>(</span><span class=cF6>&quot;DirMk(\&quot;%C:/Tmp\&quot;);&quot;</span><span class=cF0>,drv_let);
<a name="l6"></a> </span><span class=cF5>ExePrint</span><span class=cF0>(</span><span class=cF6>&quot;DirMk(\&quot;%C:/Tmp/ScrnShots\&quot;);&quot;</span><span class=cF0>,drv_let);
<a name="l7"></a> </span><span class=cF5>ExePrint</span><span class=cF0>(</span><span class=cF6>&quot;DirMk(\&quot;%C:/Home\&quot;);&quot;</span><span class=cF0>,drv_let);
<a name="l8"></a>
<a name="l9"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%C:/Home/DoDistro.HC.Z&quot;</span><span class=cF0>,drv_let);
<a name="l10"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>FileFind</span><span class=cF7>(</span><span class=cF0>st</span><span class=cF7>)</span><span class=cF0>)
<a name="l11"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;::/Misc/DoDistro.HC.Z&quot;</span><span class=cF0>,st);
<a name="l12"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l13"></a>
<a name="l14"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%C:/Home/MakeHome.HC.Z&quot;</span><span class=cF0>,drv_let);
<a name="l15"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>FileFind</span><span class=cF7>(</span><span class=cF0>st</span><span class=cF7>)</span><span class=cF0>)
<a name="l16"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;::/MakeHome.HC.Z&quot;</span><span class=cF0>,st);
<a name="l17"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l18"></a>}
<a name="l19"></a>
<a name="l20"></a></span><span class=cF1>Bool</span><span class=cF0> VMPrtDsk(</span><span class=cF9>CTask</span><span class=cF0> *task,</span><span class=cF9>CATARep</span><span class=cF0> *ata_drv)
<a name="l21"></a>{
<a name="l22"></a> </span><span class=cF1>if</span><span class=cF0> (ata_drv) </span><span class=cF7>{</span><span class=cF0>
<a name="l23"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>&quot;DskPrt(,0.5,0.5);\nC\np%d\nY&quot;</span><span class=cF0>,ata_drv-&gt;num);
<a name="l24"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l25"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
<a name="l26"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l27"></a>}
<a name="l28"></a>
<a name="l29"></a></span><span class=cF1>U0</span><span class=cF0> VMInstallDrv(</span><span class=cF9>CTask</span><span class=cF0> *task,</span><span class=cF1>U8</span><span class=cF0> drv_let,
<a name="l30"></a> </span><span class=cF9>CATARep</span><span class=cF0> *ata_drv,</span><span class=cF9>CATARep</span><span class=cF0> *atapi_drv)
<a name="l31"></a>{
<a name="l32"></a> InstallDrv(drv_let);
<a name="l33"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>&quot;BootHDIns('%C');\n\nB\n0x20000\n&quot;</span><span class=cF0>,drv_let);
<a name="l34"></a> </span><span class=cF1>if</span><span class=cF0> (ata_drv)
<a name="l35"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>&quot;C\np%d\n&quot;</span><span class=cF0>,ata_drv-&gt;num);
<a name="l36"></a> </span><span class=cF1>if</span><span class=cF0> (atapi_drv)
<a name="l37"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>&quot;Tp%d\n&quot;</span><span class=cF0>,atapi_drv-&gt;num);
<a name="l38"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>&quot;\n\n\n&quot;</span><span class=cF0>); </span><span class=cF2>//Exit Drives,Dsk Cache,Options</span><span class=cF0>
<a name="l39"></a>}
<a name="l40"></a>
<a name="l41"></a></span><span class=cF1>U0</span><span class=cF0> VMInstallWiz()
<a name="l42"></a>{
<a name="l43"></a> </span><span class=cF9>CATARep</span><span class=cF0> *head=</span><span class=cF3>NULL</span><span class=cF0>,*ata_drv=</span><span class=cF3>NULL</span><span class=cF0>,*atapi_drv=</span><span class=cF3>NULL</span><span class=cF0>;
<a name="l44"></a> </span><span class=cF9>CTask</span><span class=cF0> *task;
<a name="l45"></a> </span><span class=cF6>&quot;\nIt's normal for this to freeze for a moment or two.\n&quot;</span><span class=cF0>;
<a name="l46"></a> </span><span class=cF5>PressAKey</span><span class=cF0>;
<a name="l47"></a>
<a name="l48"></a> task=</span><span class=cF5>User</span><span class=cF0>;
<a name="l49"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task);
<a name="l50"></a> task-&gt;border_src=</span><span class=cF3>BDS_CONST</span><span class=cF0>;
<a name="l51"></a> task-&gt;border_attr=</span><span class=cF3>LTGRAY</span><span class=cF0>&lt;&lt;4+</span><span class=cF5>DrvTextAttrGet</span><span class=cF0>(</span><span class=cF6>':'</span><span class=cF0>)&amp;15;
<a name="l52"></a> task-&gt;text_attr =</span><span class=cF3>LTGRAY</span><span class=cF0>&lt;&lt;4+</span><span class=cF3>BLUE</span><span class=cF0>;
<a name="l53"></a> task-&gt;win_inhibit=</span><span class=cF3>WIG_TASK_DFT</span><span class=cF0>-</span><span class=cF3>WIF_SELF_BORDER</span><span class=cF0>;
<a name="l54"></a> </span><span class=cF5>WinHorz</span><span class=cF0>(</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_left,</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_right,task);
<a name="l55"></a> </span><span class=cF5>WinVert</span><span class=cF0>(</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_top,</span><span class=cF7>(</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_top+</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_bottom</span><span class=cF7>)</span><span class=cF0>&gt;&gt;2-1,task);
<a name="l56"></a> </span><span class=cF5>WinVert</span><span class=cF0>(task-&gt;win_bottom+3,</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_bottom);
<a name="l57"></a> </span><span class=cF5>WinToTop</span><span class=cF0>(</span><span class=cF5>Fs</span><span class=cF0>);
<a name="l58"></a>
<a name="l59"></a> </span><span class=cF5>ATARep</span><span class=cF0>(</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>TRUE</span><span class=cF0>,&amp;head);
<a name="l60"></a> </span><span class=cF5>ATAIDDrvs</span><span class=cF0>(head,&amp;ata_drv,&amp;atapi_drv);
<a name="l61"></a> </span><span class=cF1>if</span><span class=cF0> (VMPrtDsk</span><span class=cF7>(</span><span class=cF0>task,ata_drv</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l62"></a> VMInstallDrv(task,</span><span class=cF6>'C'</span><span class=cF0>,ata_drv,atapi_drv);
<a name="l63"></a> VMInstallDrv(task,</span><span class=cF6>'D'</span><span class=cF0>,ata_drv,atapi_drv);
<a name="l64"></a> </span><span class=cF5>BootMHDIns</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
<a name="l65"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l66"></a> </span><span class=cF5>LinkedLstDel</span><span class=cF0>(head);
<a name="l67"></a> </span><span class=cF5>WinVert</span><span class=cF0>(task-&gt;win_top,</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_bottom);
<a name="l68"></a> </span><span class=cF5>Kill</span><span class=cF0>(task);
<a name="l69"></a>}
<a name="l70"></a>
<a name="l71"></a></span><span class=cF1>U0</span><span class=cF0> RegularInstallWiz()
<a name="l72"></a>{
<a name="l73"></a> </span><span class=cF9>I64</span><span class=cF0> unit,drv_let;
<a name="l74"></a> </span><span class=cF1>U8</span><span class=cF0> *st,*base0,*base1;
<a name="l75"></a> </span><span class=cF9>CATARep</span><span class=cF0> *head=</span><span class=cF3>NULL</span><span class=cF0>,*tmpha;
<a name="l76"></a> </span><span class=cF9>I64</span><span class=cF0> ch,num_hints;
<a name="l77"></a> </span><span class=cF9>CTask</span><span class=cF0> *task;
<a name="l78"></a>
<a name="l79"></a> </span><span class=cF6>&quot;\nIt's normal for this to freeze for a moment or two.\n&quot;</span><span class=cF0>;
<a name="l80"></a> </span><span class=cF5>PressAKey</span><span class=cF0>;
<a name="l81"></a>
<a name="l82"></a> task=</span><span class=cF5>User</span><span class=cF0>;
<a name="l83"></a> </span><span class=cF5>TaskWait</span><span class=cF0>(task);
<a name="l84"></a> task-&gt;border_src=</span><span class=cF3>BDS_CONST</span><span class=cF0>;
<a name="l85"></a> task-&gt;border_attr=</span><span class=cF3>LTGRAY</span><span class=cF0>&lt;&lt;4+</span><span class=cF5>DrvTextAttrGet</span><span class=cF0>(</span><span class=cF6>':'</span><span class=cF0>)&amp;15;
<a name="l86"></a> task-&gt;text_attr =</span><span class=cF3>LTGRAY</span><span class=cF0>&lt;&lt;4+</span><span class=cF3>BLUE</span><span class=cF0>;
<a name="l87"></a> task-&gt;win_inhibit=</span><span class=cF3>WIG_TASK_DFT</span><span class=cF0>-</span><span class=cF3>WIF_SELF_BORDER</span><span class=cF0>;
<a name="l88"></a> </span><span class=cF5>WinHorz</span><span class=cF0>(</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_left,</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_right,task);
<a name="l89"></a> </span><span class=cF5>WinVert</span><span class=cF0>(</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_top,</span><span class=cF7>(</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_top+</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_bottom</span><span class=cF7>)</span><span class=cF0>&gt;&gt;2-1,task);
<a name="l90"></a> </span><span class=cF5>WinVert</span><span class=cF0>(task-&gt;win_bottom+3,</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_bottom);
<a name="l91"></a> </span><span class=cF5>WinToTop</span><span class=cF0>(</span><span class=cF5>Fs</span><span class=cF0>);
<a name="l92"></a> </span><span class=cF5>XTalk</span><span class=cF0>(task,</span><span class=cF6>&quot;Mount;\nC\np&quot;</span><span class=cF0>);
<a name="l93"></a>
<a name="l94"></a> num_hints=</span><span class=cF5>ATARep</span><span class=cF0>(</span><span class=cF3>FALSE</span><span class=cF0>,,&amp;head);
<a name="l95"></a> </span><span class=cF6>&quot;\nInclude '$PURPLE$0x$FG$' for hexidecimal numbers.\n\n&quot;</span><span class=cF0>;
<a name="l96"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF3>TRUE</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l97"></a> base0=</span><span class=cF5>GetStr</span><span class=cF0>(</span><span class=cF6>&quot;Hard Drive I/O Port Base0 : &quot;</span><span class=cF0>);
<a name="l98"></a> </span><span class=cF1>if</span><span class=cF0> (0&lt;</span><span class=cF5>Str2I64</span><span class=cF7>(</span><span class=cF0>base0</span><span class=cF7>)</span><span class=cF0>&lt;=0xFFFF)
<a name="l99"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l100"></a> </span><span class=cF5>Free</span><span class=cF0>(base0);
<a name="l101"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l102"></a> </span><span class=cF1>if</span><span class=cF0> (1&lt;=</span><span class=cF5>Str2I64</span><span class=cF7>(</span><span class=cF0>base0</span><span class=cF7>)</span><span class=cF0>&lt;=num_hints) </span><span class=cF7>{</span><span class=cF0>
<a name="l103"></a> tmpha=</span><span class=cF5>ATARepFind</span><span class=cF0>(&amp;head,</span><span class=cF5>Str2I64</span><span class=cF7>(</span><span class=cF0>base0</span><span class=cF7>)</span><span class=cF0>);
<a name="l104"></a> </span><span class=cF5>Free</span><span class=cF0>(base0);
<a name="l105"></a> base0=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;0x%X&quot;</span><span class=cF0>,tmpha-&gt;base0);
<a name="l106"></a> base1=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;0x%X&quot;</span><span class=cF0>,tmpha-&gt;base1);
<a name="l107"></a> st =</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;0x%X&quot;</span><span class=cF0>,tmpha-&gt;unit);
<a name="l108"></a> unit=</span><span class=cF5>Str2I64</span><span class=cF0>(st);
<a name="l109"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l110"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l111"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF3>TRUE</span><span class=cF0>) {
<a name="l112"></a> base1=</span><span class=cF5>GetStr</span><span class=cF0>(</span><span class=cF6>&quot;Hard Drive I/O Port Base1 : &quot;</span><span class=cF0>);
<a name="l113"></a> </span><span class=cF1>if</span><span class=cF0> (0&lt;</span><span class=cF5>Str2I64</span><span class=cF7>(</span><span class=cF0>base1</span><span class=cF7>)</span><span class=cF0>&lt;=0xFFFF)
<a name="l114"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l115"></a> </span><span class=cF5>Free</span><span class=cF0>(base1);
<a name="l116"></a> }
<a name="l117"></a> </span><span class=cF1>do</span><span class=cF0> {
<a name="l118"></a> st =</span><span class=cF5>GetStr</span><span class=cF0>(</span><span class=cF6>&quot;Unit--$PURPLE$0$FG$=Master or $PURPLE$1$FG$=Slave: &quot;</span><span class=cF0>,</span><span class=cF6>&quot;0&quot;</span><span class=cF0>);
<a name="l119"></a> unit=</span><span class=cF5>Str2I64</span><span class=cF0>(st);
<a name="l120"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l121"></a> } </span><span class=cF1>while</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>0&lt;=unit&lt;=1</span><span class=cF7>)</span><span class=cF0>);
<a name="l122"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l123"></a> </span><span class=cF5>LinkedLstDel</span><span class=cF0>(head);
<a name="l124"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>&quot;%s\n%s\n%C\n&quot;</span><span class=cF0>,base0,base1,</span><span class=cF6>'0'</span><span class=cF0>+unit);
<a name="l125"></a> </span><span class=cF5>DrvRep</span><span class=cF0>;
<a name="l126"></a> </span><span class=cF1>do</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l127"></a> st=</span><span class=cF5>GetStr</span><span class=cF0>(</span><span class=cF6>&quot;\nDestination Partition Letter: &quot;</span><span class=cF0>);
<a name="l128"></a> </span><span class=cF1>if</span><span class=cF0> (*st)
<a name="l129"></a> drv_let=</span><span class=cF5>Let2Let</span><span class=cF0>(*st);
<a name="l130"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l131"></a> drv_let=0;
<a name="l132"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l133"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>while</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF6>'A'</span><span class=cF0>&lt;=drv_let&lt;=</span><span class=cF6>'Z'</span><span class=cF7>)</span><span class=cF0>);
<a name="l134"></a> </span><span class=cF6>'\n'</span><span class=cF0>;
<a name="l135"></a>
<a name="l136"></a> </span><span class=cF6>&quot;$RED$Format %C Partition?$FG$\n&quot;</span><span class=cF0>,drv_let;
<a name="l137"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>YorN</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l138"></a> </span><span class=cF6>'\n'</span><span class=cF0>;
<a name="l139"></a> </span><span class=cF1>do</span><span class=cF0> {
<a name="l140"></a> </span><span class=cF6>&quot;$PURPLE$1$FG$) Use FAT32\n&quot;</span><span class=cF0>
<a name="l141"></a> </span><span class=cF6>&quot;$PURPLE$2$FG$) Use RedSea\n&quot;</span><span class=cF0>
<a name="l142"></a> </span><span class=cF6>&quot;\nFile System Type: &quot;</span><span class=cF0>;
<a name="l143"></a> ch=</span><span class=cF5>GetChar</span><span class=cF0>;
<a name="l144"></a> </span><span class=cF6>'\n'</span><span class=cF0>;
<a name="l145"></a> } </span><span class=cF1>while</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF6>'1'</span><span class=cF0>&lt;=ch&lt;=</span><span class=cF6>'2'</span><span class=cF7>)</span><span class=cF0>);
<a name="l146"></a> </span><span class=cF1>if</span><span class=cF0> (ch==</span><span class=cF6>'1'</span><span class=cF0>)
<a name="l147"></a> </span><span class=cF5>Fmt</span><span class=cF0>(drv_let,,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FSt_FAT32</span><span class=cF0>);
<a name="l148"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l149"></a> </span><span class=cF5>Fmt</span><span class=cF0>(drv_let,,</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FSt_REDSEA</span><span class=cF0>);
<a name="l150"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l151"></a> InstallDrv(drv_let);
<a name="l152"></a> </span><span class=cF5>XTalkWait</span><span class=cF0>(task,</span><span class=cF6>&quot;BootHDIns('%C');\n\nB\n0x20000\n&quot;</span><span class=cF0>
<a name="l153"></a> </span><span class=cF6>&quot;C\ns%s\n%s\n%C\n\n\n&quot;</span><span class=cF0>, </span><span class=cF2>//Exit Drives,Dsk Cache,Options</span><span class=cF0>
<a name="l154"></a> drv_let,base0,base1,</span><span class=cF6>'0'</span><span class=cF0>+unit);
<a name="l155"></a> </span><span class=cF6>&quot;$RED$Install Master Boot loader?$FG$&quot;</span><span class=cF0>;
<a name="l156"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>YorN</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l157"></a> </span><span class=cF6>'\n'</span><span class=cF0>;
<a name="l158"></a> </span><span class=cF5>BootMHDIns</span><span class=cF0>(drv_let);
<a name="l159"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l160"></a> </span><span class=cF5>Free</span><span class=cF0>(base0);
<a name="l161"></a> </span><span class=cF5>Free</span><span class=cF0>(base1);
<a name="l162"></a>
<a name="l163"></a> </span><span class=cF5>WinVert</span><span class=cF0>(task-&gt;win_top,</span><span class=cF5>Fs</span><span class=cF0>-&gt;win_bottom);
<a name="l164"></a> </span><span class=cF5>Kill</span><span class=cF0>(task);
<a name="l165"></a>}
<a name="l166"></a>
<a name="l167"></a></span><span class=cF1>U0</span><span class=cF0> DoInstructions()
<a name="l168"></a>{
<a name="l169"></a> </span><span class=cF9>CTask</span><span class=cF0> *task;
<a name="l170"></a> </span><span class=cF5>AutoComplete</span><span class=cF0>;
<a name="l171"></a> task=</span><span class=cF5>Fs</span><span class=cF0>-&gt;next_task;
<a name="l172"></a> </span><span class=cF1>while</span><span class=cF0> (task!=</span><span class=cF5>Fs</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l173"></a> </span><span class=cF1>if</span><span class=cF0> (task!=</span><span class=cFB>adam_task</span><span class=cF0> &amp;&amp; task!=</span><span class=cFB>sys_winmgr_task</span><span class=cF0> &amp;&amp; task!=</span><span class=cFB>ac</span><span class=cF0>.task) {
<a name="l174"></a> </span><span class=cF5>XTalk</span><span class=cF0>(task,</span><span class=cF6>&quot;Ed(\&quot;::/Doc/Install.DD.Z\&quot;);\n&quot;</span><span class=cF0>);
<a name="l175"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l176"></a> }
<a name="l177"></a> task=task-&gt;next_task;
<a name="l178"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l179"></a>}
<a name="l180"></a>
<a name="l181"></a></span><span class=cF1>Bool</span><span class=cF0> DoInstall(</span><span class=cF1>Bool</span><span class=cF0> pmt_reboot)
<a name="l182"></a>{
<a name="l183"></a> </span><span class=cF9>I64</span><span class=cF0> res=</span><span class=cF3>FALSE</span><span class=cF0>,vm_install;
<a name="l184"></a> </span><span class=cF6>&quot;\n\n\n\n\nAre you installing inside VMware, QEMU, VirtualBox &quot;</span><span class=cF0>
<a name="l185"></a> </span><span class=cF6>&quot;or a similar virtual machine? &quot;</span><span class=cF0>;
<a name="l186"></a> vm_install=</span><span class=cF5>YorN</span><span class=cF0>;
<a name="l187"></a> </span><span class=cF5>DocBottom</span><span class=cF0>;
<a name="l188"></a>
<a name="l189"></a> </span><span class=cF1>if</span><span class=cF0> (vm_install) </span><span class=cF7>{</span><span class=cF0>
<a name="l190"></a> VMInstallWiz();
<a name="l191"></a> res=</span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l192"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l193"></a> </span><span class=cF6>&quot;\n\nThis wizard works if you have a partition ready. &quot;</span><span class=cF0>
<a name="l194"></a> </span><span class=cF6>&quot;You can partition the drive or BootHDIns() &quot;</span><span class=cF0>
<a name="l195"></a> </span><span class=cF6>&quot;with more options if you do it by hand, not using this wizard.\n\n&quot;</span><span class=cF0>
<a name="l196"></a> </span><span class=cF6>&quot;Continue Install Wizard &quot;</span><span class=cF0>;
<a name="l197"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>YorN</span><span class=cF0>) {
<a name="l198"></a> RegularInstallWiz();
<a name="l199"></a> res=</span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l200"></a> } </span><span class=cF1>else</span><span class=cF0>
<a name="l201"></a> pmt_reboot=</span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l202"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l203"></a> </span><span class=cF1>if</span><span class=cF0> (pmt_reboot) </span><span class=cF7>{</span><span class=cF0>
<a name="l204"></a> </span><span class=cF6>&quot;Reboot Now &quot;</span><span class=cF0>;
<a name="l205"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>YorN</span><span class=cF0>)
<a name="l206"></a> </span><span class=cF5>Reboot</span><span class=cF0>;
<a name="l207"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l208"></a> </span><span class=cF1>return</span><span class=cF0> res;
<a name="l209"></a>}
<a name="l210"></a>
<a name="l211"></a></span><span class=cF1>Bool</span><span class=cF0> OSInstall(</span><span class=cF1>Bool</span><span class=cF0> pmt_reboot=</span><span class=cF3>TRUE</span><span class=cF0>)
<a name="l212"></a>{
<a name="l213"></a> DoInstructions;
<a name="l214"></a> </span><span class=cF1>return</span><span class=cF0> DoInstall(pmt_reboot);
<a name="l215"></a>}
<a name="l216"></a>
<a name="l217"></a>#</span><span class=cF1>if</span><span class=cF0> </span><span class=cF3>__CMD_LINE__</span><span class=cF0>
<a name="l218"></a>OSInstall(</span><span class=cF3>TRUE</span><span class=cF0>);
<a name="l219"></a>#</span><span class=cF1>endif</span><span class=cF0>
</span></pre></body>
</html>