mirror of https://github.com/tongzx/nt5src
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.
234 lines
8.7 KiB
234 lines
8.7 KiB
<html>
|
|
|
|
<head>
|
|
<title>Customizing WinPE Images</title>
|
|
<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" />
|
|
</head>
|
|
|
|
<script language="jscript">
|
|
//var wshShell = WScript.CreateObject("WScript.Shell");
|
|
|
|
function Saveit()
|
|
{
|
|
var fso=new ActiveXObject("Scripting.FileSystemObject"); //create file sys obj
|
|
var logfile=fso.OpenTextFile("WinPE.ini",2,true);
|
|
logfile.WriteLine("Input file for CreatePE.js --- "+Date());
|
|
logfile.WriteBlankLines(1);
|
|
|
|
logfile.WriteLine("[Architecture]");
|
|
logfile.WriteLine(Arch.bits.value);
|
|
logfile.WriteBlankLines(1);
|
|
|
|
logfile.WriteLine("[OPK Location]");
|
|
logfile.WriteLine(OPKLoc.F1.value);
|
|
logfile.WriteBlankLines(1);
|
|
|
|
logfile.WriteLine("[WinXP Location]");
|
|
logfile.WriteLine(XPLoc.F2.value);
|
|
logfile.WriteBlankLines(1);
|
|
|
|
logfile.WriteLine("[Image Destination]");
|
|
if(D1.value == "bootable")
|
|
{
|
|
logfile.WriteLine("HDD");
|
|
logfile.WriteLine(T1.value);
|
|
logfile.WriteLine("bootable");
|
|
}
|
|
else
|
|
{
|
|
logfile.WriteLine(D1.value);
|
|
logfile.WriteLine(T1.value);
|
|
}
|
|
logfile.WriteBlankLines(1);
|
|
|
|
|
|
logfile.WriteLine("[Startup]");
|
|
if(startup.value == "")
|
|
{
|
|
logfile.WriteLine("startnet.cmd");
|
|
}
|
|
else
|
|
{
|
|
logfile.WriteLine(startup.value);
|
|
}
|
|
logfile.WriteBlankLines(1);
|
|
|
|
logfile.WriteLine("[Winbom]");
|
|
if(winbom.value == "")
|
|
{
|
|
logfile.WriteLine("winbom.ini");
|
|
}
|
|
else
|
|
{
|
|
logfile.WriteLine(winbom.value);
|
|
}
|
|
logfile.WriteBlankLines(1);
|
|
|
|
logfile.WriteLine("[Optional Components]");
|
|
|
|
if (document.opti.HTA.status == true)
|
|
{
|
|
logfile.WriteLine("BuildWSH.vbs");
|
|
logfile.WriteLine("BuildHTA.vbs");
|
|
}
|
|
|
|
if(document.opti.WSH.status == true && document.opti.HTA.status == false)
|
|
{
|
|
logfile.WriteLine("BuildWSH.vbs");
|
|
}
|
|
|
|
if (document.opti.ADO.status == true)
|
|
logfile.WriteLine("BuildADO.vbs");
|
|
|
|
logfile.WriteBlankLines(1);
|
|
logfile.WriteLine("[Wallpaper]");
|
|
logfile.WriteLine(wallpaper.value);
|
|
|
|
logfile.WriteBlankLines(1);
|
|
logfile.Close();
|
|
self.navigate('scriptit.hta');
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<body bgcolor="#2266CC">
|
|
|
|
<h2 align="center"><font align="center" FACE="Tahoma"><font color="#FFFFFF">Creating
|
|
WinPE Images. </font></font></h2>
|
|
|
|
<p><font FACE="Tahoma"><font size="4" color="#CCFFFF">Step 1: Platform <br>
|
|
</font>Choose the platform for which you would like to create a WinPE image<font size="2">.<br>
|
|
(Note: For a 64-bit image you will need the 64-bit version of Windows XP Pro).</font></font></p>
|
|
<form NAME="Arch">
|
|
<p align="left"><font align="left" FACE="Tahoma"><select Name="bits">
|
|
<option value="32" CHECKED>32-bit (x86)</option>
|
|
<option value="64">64-bit (IA64)</option>
|
|
</select> </font></p>
|
|
</form>
|
|
|
|
<p><font FACE="Tahoma"><font size="4" color="#CCFFFF">Step 2: OPK Location<br />
|
|
</font>Please enter location for OPK (OEM Preinstall Kit):<br />
|
|
<font size="2">(you may use a local drive, CDROM drive or network location.
|
|
<font color="#C0C0C0">Make sure NOT to end with a \</font>)<br />
|
|
(eg: "d:" for CDROM, "c:\opk" for local Harddrive or "\\winbuilds\release\main\usa\latest.tst\opk"
|
|
for net share)</font></font></p>
|
|
<form NAME="OPKLoc">
|
|
<p><font FACE="Tahoma"><font color="#FFFFFF">OPK Location: </font>
|
|
</font><font COLOR="Gray" FACE="Tahoma">
|
|
<input type="text" name="F1" size="50" value /></font><font FACE="Tahoma">
|
|
</font></p>
|
|
</form>
|
|
<font FACE="Tahoma"></font>
|
|
<p align="left"><font align="left" FACE="Tahoma"> </font></p>
|
|
<font FACE="Tahoma"></font>
|
|
<p align="left"><font align="left" FACE="Tahoma">
|
|
|
|
|
|
|
|
<font size="4" FACE="Tahoma" color="#CCFFFF">Step 3: Windows XP Location<br />
|
|
</font>Please enter the location for WinXP Pro (WinXP build must be of the same
|
|
as OPK build). <br />
|
|
</font><font size="2" FACE="Tahoma">(you may use a local drive, CDROM drive or network
|
|
location. <font color="#C0C0C0">Make sure NOT to end with a \</font>)<br />
|
|
(eg: "d:" for CDROM, "c:\winxp" for local Harddrive or "\\winbuilds\release\main\usa\latest.tst\x86fre\pro"
|
|
for net share)</font></p>
|
|
<form NAME="XPLoc">
|
|
<p><font FACE="Tahoma"><font color="#FFFFFF">WinXP Location: </font>
|
|
</font><font COLOR="#FFFFFF" FACE="Tahoma">
|
|
<input type="text" name="F2" size="50" value /></font><font FACE="Tahoma">
|
|
</font><font COLOR="Gray" FACE="Tahoma"></font></p>
|
|
<font COLOR="Gray" FACE="Tahoma"></font>
|
|
</form>
|
|
<font COLOR="Gray" FACE="Tahoma"> </font><br>
|
|
|
|
<font size="4" FACE="Tahoma" color="#CCFFFF">Step 4: Windows PE Destination<br />
|
|
</font>
|
|
|
|
<font FACE="Tahoma">Please enter the destination for the WinPE image:<br />
|
|
To boot into an image of WinPE on Harddrive, choose
|
|
<i>HardDrive (bootable)</i>. For a CD image, specify the name of the image
|
|
in the "Dest Drive and folder" input box. If the folder doesn't exits,
|
|
it will be created.</font><font size="4" FACE="Tahoma" color="#CCFFFF"></p>
|
|
</font>
|
|
<p><font FACE="Tahoma"><font color="#FFFFFF">Drive Type:</font>
|
|
</font><font COLOR="#FFFFFF" FACE="Tahoma"><select size="1" name="D1">
|
|
<option value="HDD" selected>Hard Drive</option>
|
|
<option value="bootable">Hard Drive (bootable)</option>
|
|
<option value="CD">CD-ROM Drive</option>
|
|
</select></font><font FACE="Tahoma">
|
|
</font></p>
|
|
<font FACE="Tahoma"></font>
|
|
<p><font FACE="Tahoma"><font color="#FFFFFF">Dest Drive and folder: </font>
|
|
</font><font COLOR="Gray" FACE="Tahoma">
|
|
<input type="text" name="T1" size="30" /></font><font FACE="Tahoma">
|
|
<font FACE="Tahoma" size="2">(eg: "c:\test_image\1")</font></font></p>
|
|
<font FACE="Tahoma"></font><font COLOR="#FFFFFF" FACE="Tahoma"></font>
|
|
<h2 align="center"><font align="center" COLOR="#FFFFFF" FACE="Tahoma"> </font></h2>
|
|
<font COLOR="#FFFFFF" FACE="Tahoma"></font><font FACE="Tahoma"></font>
|
|
|
|
|
|
|
|
<p><font FACE="Tahoma"><font size="4" FACE="Tahoma" color="#CCFFFF">Step 5:
|
|
Custom Startup and winbom (Optional)<br />
|
|
</font><u>Custom Startup Script/App<br />
|
|
</u>Please select the script or executable file (including its path) to run when
|
|
WinPE starts. By default its set to <i>startnet.cmd</i>:<br />
|
|
<br />
|
|
<font color="#FFFFFF">Startup Script/APP: </font> <b> </b>
|
|
</font><font COLOR="#FFFFFF" FACE="Tahoma">
|
|
<input type="file" name="startup" size="20" value="startnet.cmd"></font><font FACE="Tahoma">
|
|
<font size="2" FACE="Tahoma">(eg: "c:\oem\doit.exe")</font></font></p>
|
|
<font FACE="Tahoma"></font>
|
|
<p align="left"><font align="left" FACE="Tahoma"><u>Custom winbom.ini<br />
|
|
</u>Please select location for winbom.ini file (including its path). By default
|
|
its set to <i>winbom.ini.</i><br />
|
|
<br />
|
|
<font color="#FFFFFF">Custom winbom.ini location:</font>
|
|
</font><font COLOR="Gray" FACE="Tahoma">
|
|
<input type="file" name="winbom" size="20" value="winbom.ini"></font><font FACE="Tahoma">
|
|
<font size="2" FACE="Tahoma">(eg: "c:\oem\winbom.ini")</font></font></p>
|
|
<font FACE="Tahoma"></font><font COLOR="Gray" FACE="Tahoma"></font>
|
|
<p align="left"><font align="left" COLOR="Gray" FACE="Tahoma"> </font></p>
|
|
<font COLOR="Gray" FACE="Tahoma"><font FACE="Tahoma"></font></font>
|
|
<p align="left"><font align="left" FACE="Tahoma">
|
|
<font align="left" FACE="Tahoma" COLOR="Gray" FACE="Tahoma">
|
|
|
|
|
|
|
|
<font size="4" FACE="Tahoma" color="#CCFFFF">Step 6: Optional Components
|
|
(Optional)<br />
|
|
</font></font></font><font FACE="Tahoma">Please select the optional components you
|
|
want to enable in the WinPE environment</font></p>
|
|
|
|
<font face="Tahoma" color="#FFFFFF">
|
|
<form NAME="opti">
|
|
<input type="checkbox" name="HTA" value="ON" >HTML Application (HTA) Support<br>
|
|
<input type="checkbox" name="WSH" value="ON" >Windows Scripting Host (WSH) Support<br>
|
|
<input type="checkbox" name="ADO" value="ON" >Active Database Objectt (ADO) Support<br>
|
|
</form>
|
|
</font>
|
|
|
|
|
|
|
|
<p><font FACE="Tahoma"><font size="4" FACE="Tahoma" color="#CCFFFF">Step 7:
|
|
Custom Wallpaper for WinPE (Optional)<br />
|
|
</font>Please select the custom bitmap wallpaper you would like to use for WinPE:<br />
|
|
<br />
|
|
<font color="#FFFFFF">Custom Wallpaper: </font> <b> </b>
|
|
</font><font COLOR="#FFFFFF" FACE="Tahoma">
|
|
<input type="file" name="wallpaper" size="20" value="winpe.bmp"></font><font FACE="Tahoma">
|
|
<font size="2" FACE="Tahoma">(eg: "c:\oem\logo.bmp")</font></font></p>
|
|
|
|
|
|
|
|
<p> </p>
|
|
<hr>
|
|
<p align="center">
|
|
<button ACCESSKEY="D" STYLE="font-face:Tahoma;font-size:13px;" onclick="Saveit()"><U>D</U>one</button></p>
|
|
</p>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|