Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

233 lines
9.0 KiB

  1. <html>
  2. <head>
  3. <title>Customizing WinPE Images</title>
  4. <HTA:APPLICATION APPLICATIONNAME="Cust_WinPE" ID="CustWPE" MAXIMIZEBUTTON="no" MINIMIZEBUTTON="yes" SHOWINTASKBAR="yes" SINGLEINSTANCE="yeS" SCROLL="yes" SIZE="no" NAVIGABLE="yes" VERSION="1.0" ICON="Images\CPE.ico" />
  5. </head>
  6. <script language="jscript">
  7. //var wshShell = WScript.CreateObject("WScript.Shell");
  8. function Saveit()
  9. {
  10. var fso=new ActiveXObject("Scripting.FileSystemObject"); //create file sys obj
  11. var logfile=fso.OpenTextFile("WinPE.ini",2,true);
  12. logfile.WriteLine("Input file for CreatePE.js --- "+Date());
  13. logfile.WriteBlankLines(1);
  14. logfile.WriteLine("[Architecture]");
  15. logfile.WriteLine(Arch.bits.value);
  16. logfile.WriteBlankLines(1);
  17. logfile.WriteLine("[OPK Location]");
  18. logfile.WriteLine(OPKLoc.F1.value);
  19. logfile.WriteBlankLines(1);
  20. logfile.WriteLine("[WinXP Location]");
  21. logfile.WriteLine(XPLoc.F2.value);
  22. logfile.WriteBlankLines(1);
  23. logfile.WriteLine("[Image Destination]");
  24. if(D1.value == "bootable")
  25. {
  26. logfile.WriteLine("HDD");
  27. logfile.WriteLine(T1.value);
  28. logfile.WriteLine("bootable");
  29. }
  30. else
  31. {
  32. logfile.WriteLine(D1.value);
  33. logfile.WriteLine(T1.value);
  34. }
  35. logfile.WriteBlankLines(1);
  36. logfile.WriteLine("[Startup]");
  37. if(startup.value == "")
  38. {
  39. logfile.WriteLine("startnet.cmd");
  40. }
  41. else
  42. {
  43. logfile.WriteLine(startup.value);
  44. }
  45. logfile.WriteBlankLines(1);
  46. logfile.WriteLine("[Winbom]");
  47. if(winbom.value == "")
  48. {
  49. logfile.WriteLine("winbom.ini");
  50. }
  51. else
  52. {
  53. logfile.WriteLine(winbom.value);
  54. }
  55. logfile.WriteBlankLines(1);
  56. logfile.WriteLine("[Optional Components]");
  57. if (document.opti.HTA.status == true)
  58. {
  59. logfile.WriteLine("BuildWSH.vbs");
  60. logfile.WriteLine("BuildHTA.vbs");
  61. }
  62. if(document.opti.WSH.status == true && document.opti.HTA.status == false)
  63. {
  64. logfile.WriteLine("BuildWSH.vbs");
  65. }
  66. if (document.opti.ADO.status == true)
  67. logfile.WriteLine("BuildADO.vbs");
  68. logfile.WriteBlankLines(1);
  69. logfile.WriteLine("[Wallpaper]");
  70. logfile.WriteLine(wallpaper.value);
  71. logfile.WriteBlankLines(1);
  72. logfile.Close();
  73. self.navigate('scriptit.hta');
  74. }
  75. </script>
  76. <body bgcolor="#2266CC">
  77. <h2 align="center"><font align="center" FACE="Tahoma"><font color="#FFFFFF">Creating
  78. WinPE Images. </font></font></h2>
  79. <p><font FACE="Tahoma"><font size="4" color="#CCFFFF">Step 1: Platform <br>
  80. </font>Choose the platform for which you would like to create a WinPE image<font size="2">.<br>
  81. (Note: For a 64-bit image you will need the 64-bit version of Windows XP Pro).</font></font></p>
  82. <form NAME="Arch">
  83. <p align="left"><font align="left" FACE="Tahoma"><select Name="bits">
  84. <option value="32" CHECKED>32-bit (x86)</option>
  85. <option value="64">64-bit (IA64)</option>
  86. </select> </font></p>
  87. </form>
  88. <p><font FACE="Tahoma"><font size="4" color="#CCFFFF">Step 2: OPK Location<br />
  89. </font>Please enter location for OPK (OEM Preinstall Kit):<br />
  90. <font size="2">(you may use a local drive, CDROM drive or network location.
  91. <font color="#C0C0C0">Make sure NOT to end with a \</font>)<br />
  92. (eg: &quot;d:&quot; for CDROM, &quot;c:\opk&quot; for local Harddrive or &quot;\\winbuilds\release\main\usa\latest.tst\opk&quot;
  93. for net share)</font></font></p>
  94. <form NAME="OPKLoc">
  95. <p><font FACE="Tahoma"><font color="#FFFFFF">OPK Location: </font>&nbsp;&nbsp;
  96. </font><font COLOR="Gray" FACE="Tahoma">
  97. <input type="text" name="F1" size="50" value /></font><font FACE="Tahoma">
  98. </font></p>
  99. </form>
  100. <font FACE="Tahoma"></font>
  101. <p align="left"><font align="left" FACE="Tahoma">&nbsp;</font></p>
  102. <font FACE="Tahoma"></font>
  103. <p align="left"><font align="left" FACE="Tahoma">
  104. <font size="4" FACE="Tahoma" color="#CCFFFF">Step 3: Windows XP Location<br />
  105. </font>Please enter the location for WinXP Pro (WinXP build must be of the same
  106. as OPK build). <br />
  107. </font><font size="2" FACE="Tahoma">(you may use a local drive, CDROM drive or network
  108. location. <font color="#C0C0C0">Make sure NOT to end with a \</font>)<br />
  109. (eg: &quot;d:&quot; for CDROM, &quot;c:\winxp&quot; for local Harddrive or &quot;\\winbuilds\release\main\usa\latest.tst\x86fre\pro&quot;
  110. for net share)</font></p>
  111. <form NAME="XPLoc">
  112. <p><font FACE="Tahoma"><font color="#FFFFFF">WinXP Location:&nbsp; </font>&nbsp;
  113. </font><font COLOR="#FFFFFF" FACE="Tahoma">
  114. <input type="text" name="F2" size="50" value /></font><font FACE="Tahoma">
  115. </font><font COLOR="Gray" FACE="Tahoma"></font></p>
  116. <font COLOR="Gray" FACE="Tahoma"></font>
  117. </form>
  118. <font COLOR="Gray" FACE="Tahoma">&nbsp;</font><br>
  119. <font size="4" FACE="Tahoma" color="#CCFFFF">Step 4: Windows PE Destination<br />
  120. </font>
  121. <font FACE="Tahoma">Please enter the destination for the WinPE image:<br />
  122. To boot into an image of WinPE on Harddrive, choose
  123. <i>HardDrive (bootable)</i>.&nbsp; For a CD image, specify the name of the image
  124. in the &quot;Dest Drive&nbsp; and folder&quot; input box.&nbsp; If the folder doesn&#39;t exits,
  125. it will be created.</font><font size="4" FACE="Tahoma" color="#CCFFFF"></p>
  126. </font>
  127. <p><font FACE="Tahoma"><font color="#FFFFFF">Drive Type:</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  128. </font><font COLOR="#FFFFFF" FACE="Tahoma"><select size="1" name="D1">
  129. <option value="HDD" selected>Hard Drive</option>
  130. <option value="bootable">Hard Drive (bootable)</option>
  131. <option value="CD">CD-ROM Drive</option>
  132. </select></font><font FACE="Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  133. </font></p>
  134. <font FACE="Tahoma"></font>
  135. <p><font FACE="Tahoma"><font color="#FFFFFF">Dest Drive and folder: </font>&nbsp;&nbsp;
  136. </font><font COLOR="Gray" FACE="Tahoma">
  137. <input type="text" name="T1" size="30" /></font><font FACE="Tahoma">&nbsp;&nbsp;&nbsp;
  138. <font FACE="Tahoma" size="2">(eg: &quot;c:\test_image\1&quot;)</font></font></p>
  139. <font FACE="Tahoma"></font><font COLOR="#FFFFFF" FACE="Tahoma"></font>
  140. <h2 align="center"><font align="center" COLOR="#FFFFFF" FACE="Tahoma">&nbsp;</font></h2>
  141. <font COLOR="#FFFFFF" FACE="Tahoma"></font><font FACE="Tahoma"></font>
  142. <p><font FACE="Tahoma"><font size="4" FACE="Tahoma" color="#CCFFFF">Step 5:
  143. Custom Startup and winbom (Optional)<br />
  144. </font><u>Custom Startup Script/App<br />
  145. </u>Please select the script or executable file (including its path) to run when
  146. WinPE starts.&nbsp; By default its set to <i>startnet.cmd</i>:<br />
  147. <br />
  148. <font color="#FFFFFF">Startup Script/APP: </font>&nbsp; <b>&nbsp;</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  149. </font><font COLOR="#FFFFFF" FACE="Tahoma">
  150. <input type="file" name="startup" size="20" value="startnet.cmd"></font><font FACE="Tahoma">&nbsp;&nbsp;&nbsp;
  151. <font size="2" FACE="Tahoma">(eg: &quot;c:\oem\doit.exe&quot;)</font></font></p>
  152. <font FACE="Tahoma"></font>
  153. <p align="left"><font align="left" FACE="Tahoma"><u>Custom winbom.ini<br />
  154. </u>Please select location for winbom.ini file (including its path).&nbsp; By default
  155. its set to <i>winbom.ini.</i><br />
  156. <br />
  157. <font color="#FFFFFF">Custom winbom.ini location:</font>&nbsp;&nbsp;&nbsp;
  158. </font><font COLOR="Gray" FACE="Tahoma">
  159. <input type="file" name="winbom" size="20" value="winbom.ini"></font><font FACE="Tahoma">&nbsp;&nbsp;&nbsp;
  160. <font size="2" FACE="Tahoma">(eg: &quot;c:\oem\winbom.ini&quot;)</font></font></p>
  161. <font FACE="Tahoma"></font><font COLOR="Gray" FACE="Tahoma"></font>
  162. <p align="left"><font align="left" COLOR="Gray" FACE="Tahoma">&nbsp;</font></p>
  163. <font COLOR="Gray" FACE="Tahoma"><font FACE="Tahoma"></font></font>
  164. <p align="left"><font align="left" FACE="Tahoma">
  165. <font align="left" FACE="Tahoma" COLOR="Gray" FACE="Tahoma">
  166. <font size="4" FACE="Tahoma" color="#CCFFFF">Step 6: Optional Components
  167. (Optional)<br />
  168. </font></font></font><font FACE="Tahoma">Please select the optional components you
  169. want to enable in the WinPE environment</font></p>
  170. <font face="Tahoma" color="#FFFFFF">
  171. <form NAME="opti">
  172. <input type="checkbox" name="HTA" value="ON" >HTML Application (HTA) Support<br>
  173. <input type="checkbox" name="WSH" value="ON" >Windows Scripting Host (WSH) Support<br>
  174. <input type="checkbox" name="ADO" value="ON" >Active Database Objectt (ADO) Support<br>
  175. </form>
  176. </font>
  177. <p><font FACE="Tahoma"><font size="4" FACE="Tahoma" color="#CCFFFF">Step 7:
  178. Custom Wallpaper for WinPE (Optional)<br />
  179. </font>Please select the custom bitmap wallpaper you would like to use for WinPE:<br />
  180. <br />
  181. <font color="#FFFFFF">Custom Wallpaper: </font>&nbsp; <b>&nbsp;</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  182. </font><font COLOR="#FFFFFF" FACE="Tahoma">
  183. <input type="file" name="wallpaper" size="20" value="winpe.bmp"></font><font FACE="Tahoma">&nbsp;&nbsp;&nbsp;
  184. <font size="2" FACE="Tahoma">(eg: &quot;c:\oem\logo.bmp&quot;)</font></font></p>
  185. <p>&nbsp;</p>
  186. <hr>
  187. <p align="center">
  188. <button ACCESSKEY="D" STYLE="font-face:Tahoma;font-size:13px;" onclick="Saveit()"><U>D</U>one</button></p>
  189. </p>
  190. </body>
  191. </html>