Jump to content

WinPE to HDD


thuun derboy

Recommended Posts

There's nothing quite like having PE installed to HDD.

After some trial and error I thought I may help others interested

First let me point to some information on the subject here.

I actually had mixed results running Bart's installer script, some files were not copied over as expected.

Using Barts tools for adding boot info. is however the way to go!

_____________________________________________________

edit:

sorry for any problems, though on to other things, here's the script I wound up using for HDD setup, pls. try updating .cmd in attached.

@echo off
Color 81
MODE CON: COLS=65 LINES=15
echo.
title MiniNT Installer for active partition
echo - WinPE to Harddisk -
echo.
pause
RD /S /Q %SystemDrive%\minint\
RD /S /Q %SystemDrive%\Programs\
if exist %SystemDrive%\boot.ini.bak ATTRIB -H -S -R %SystemDrive%\boot.ini.bak&del /q /f %SystemDrive%\boot.ini.bak
XCOPY /E /H /Y /K "i386" "%SystemDrive%\minint\"
XCOPY /E /H /Y /K "Programs" "%SystemDrive%\Programs\"
copy %systemdrive%\minint\setupldr.bin %SystemDrive%\peldr
start /wait mkbt.exe -x -c %SystemDrive% %SystemDrive%\peboot.bin
start /wait nt2peldr.exe %SystemDrive%\peboot.bin
echo.
echo Bootsector updated.
echo.
echo Setting boot.ini timeout to 15 seconds and adding MiniNT...
echo.
bootcfg.exe /Timeout 15
findstr /I /B /L /V "%SystemDrive%\peboot.bin" %SystemDrive%\boot.ini > %SystemDrive%\boot$.ini
echo %SystemDrive%\peboot.bin="MiniNT" >> %SystemDrive%\boot$.ini
ATTRIB -H -S -R %SystemDrive%\boot.ini
REN %SystemDrive%\boot.ini *.ini.BAK
REN %SystemDrive%\boot$.ini boot.ini
ATTRIB +H +S +R %SystemDrive%\boot.ini
echo.
echo Setup is finished.
echo.
pause

hope this works ok.

PEBootSetup.cab

Edited by thuun derboy
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...