Help - Search - Members - Calendar
Full Version: install.cmd
MSFN Forums > Unattended Windows Discussion & Support > Windows PE

   
Google Internet Forums Unattended CD/DVD Guide
strekship
I would like to make a batch file so that my version of windows pe will automaticly install itself to the hdd. What commands do i need to put in.
likuidkewl
Read this post and then add the needed Diskpart/Xcopy commands:
http://www.msfn.org/board/index.php?showtopic=14316&st=0

Wait where are you installing from?
strekship
I want to boot windows pe that has explorer added to it from the cd and be able to click a .cmd file and have it install all of the files to the hdd and make it bootable.
strekship
Which method should i use? the new one or the old one?
likuidkewl
So if your partition is already setup then it should be easy due to negating the need for diskpart.

so just
ex.
mkdir %driveletter%\minint
Xcopy thefiles %driveletter%\minint
Xcopy ntdetect %driveletter%

easy man just try it out.

QUOTE
To create a bootable WinPE disk (32-bit versions of WinPE)
***Please note this is only the instructions on how to install WinPE and WinPE only to the hard drive, you must modify these instructions to get a "Dual boot"***

Boot the destination computer into WinPE using a WinPE CD.
Create a formatted and active partition.
On the active partition, create a directory called C:\Minint. You must name the directory "Minint".
Copy the contents of build_location\i386 to C:\Minint.
For example:

xcopy "C:\Build.x86\i386\*.*" C:\Minint /S
where C:\Build.x86 is build_location.

Copy Ntdetect.com from build_location to the root of the destination hard disk.
For example:

xcopy "C:\Build.x86\ntdetect.com" C:\
where C:\Build.X86 is build_location.

On the destination hard disk, copy C:\Minint\setupldr.bin to C:\ntldr.
For example:

xcopy "C:\Minint\setupldr.bin" C:\ntldr
Restart the destination computer. The computer starts using WinPE.
likuidkewl
Use the new version it is stated in the post as to why.
strekship
How do i use diskpart? I am haveing trouble creating a partition. can you give me commands? i just want a default C:.
likuidkewl
Diskpart is not meant for existing installations, it is for a fresh hard drive. But here is the info:
http://www.microsoft.com/resources/documen...s/diskpart.mspx

EDIT--
CODE
diskpart /s <path>\diskpart.txt
FORMAT S: /FS:NTFS /V:My_Label

where diskpart.txt would contain:

REM Select future S:\ drive
SELECT DISK 1
REM Wipe the disk clean
CLEAN
REM Create a single Primary Partition
CREATE PARTITION PRIMARY
REM Set the drive to mount at S:\
ASSIGN LETTER=S


Source:http://www.jsiinc.com/SUBO/tip7200/rh7282.htm
strekship
Ok, i did everything, but it will not boot to indows pe. It says that there is not os installed. do i need a boot.ini?
likuidkewl
I guess I should have asked which version of windowsPE you are using, when you got your OPK was there a SP1 sticker on it, or in the documentation does it say you can use it to build from Server 2003?
strekship
I don't know. i got the CD off of ebay and then made an iso of it and added explorer to it using cubies tutorial.
likuidkewl
Well then try the old RTM(pre SP1) way of doing it then.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.