Jump to content

Windows PE Operating System Installation Edition


CuBie

Which Is Better?  

79 members have voted

  1. 1. Which Is Better?

    • Grey
      33
    • Blue
      34


Recommended Posts


In keeping with the theory of this...I have made a commandline batch file for pe...

wpeosi.bat

@ECHO OFF
@color 17
cls
ECHO ================================================================================
ECHO                      Windows PE Operating System Installer                      
ECHO ================================================================================
ECHO.
ECHO Choose the OS you wish to install:
ECHO.
ECHO  1) 98
ECHO  2) 98 Second Edition
ECHO  3) 2000 Workstation
ECHO  4) 2000 Server
ECHO  5) 2000 Advanced Server
ECHO  6) 2000 DataCenter
ECHO  7) XP Home
ECHO  8) XP Professional
ECHO  9) XP Media Center
ECHO 10) XP Tablet
ECHO 11) 2003 Web Server
ECHO 12) 2003 Server
ECHO 13) 2003 Enterprise
ECHO 14) 2003 DataCenter
SET /P OSI=Please type a number and hit Enter
SET /P UA=Is this unattended? (Y/N)
IF %OSI%==1 (set OSI=98)
IF %OSI%==2 (set OSI=98se)
IF %OSI%==3 (set OSI=2kw)
IF %OSI%==4 (set OSI=2ks)
IF %OSI%==5 (set OSI=2ka)
IF %OSI%==6 (set OSI=2kd)
IF %OSI%==7 (set OSI=xph)
IF %OSI%==8 (set OSI=xpp)
IF %OSI%==9 (set OSI=xpm)
IF %OSI%==10 (set OSI=xpt)
IF %OSI%==11 (set OSI=23w)
IF %OSI%==12 (set OSI=23s)
IF %OSI%==13 (set OSI=23e)
IF %OSI%==14 (set OSI=23d)
IF %OSI%==15 (set OSI=custom)
for /F "tokens=2,3 delims==" %i in ('"findstr %OSI%= wpeosi.ini"') do set dir=%i
IF %UA%==y (
goto UA
) ELSE (
goto Start
)
UA:
SET /P UAFILE=Please type in the name of your unattended file. (If Default, type winnt.sif)
%dir%\winnt32.exe /s:%dir% /u:%UAFILE%
goto end
Start:
%dir%\winnt32.exe
end:
set UA=
set UAFILE=
set OSI=
set dir=

wpeosi.ini

[Directories]
98=%systemroot%\98\setup.exe
98se=%systemroot%\98se\setup.exe
2kw=%systemroot%\2KWK\nr1wfre_en\I386
2ks=%systemroot%\2KSV\nr1sfre_en\I386
2ka=%systemroot%\2KAD\nr1afre_en\I386
2kd=%systemroot%\2KDC\nr1dfre_en\I386
xph=%systemroot%\XPHC\nr2hfre_en\I386
xpp=%systemroot%\XPPC\nr2pfre_en\I386
xpm=%systemroot%\XPMC\nr2mfre_en\I386
xpt=%systemroot%\XPTC\nr2tfre_en\I386
23w=%systemroot%\23WC\nr2wfre_en\I386
23s=%systemroot%\23SC\nr2sfre_en\I386
23e=%systemroot%\23EC\nr2efre_en\I386
23d=%systemroot%\23DC\nr2dfre_en\I386
custom=%systemroot%\23PC\nr2pfre_en\I386\winnt32.exe

This is not completely done because I dont execute 98 setup anywhere...I will add some string to the batch file for 98 later...and I need to add in the custom routine.

Link to comment
Share on other sites

Thanks EvilVoice..

At the moment were still putting .net into PE - I got a PM from someone who said they have done it.. If this works out i can put a tutorial up to put the program into pe with .net... :)

Also, has anyone figured out how to launch windows 98 setup from windows PE??

Thanks alot Guys & Gurls,

Chris.

Link to comment
Share on other sites

Ram disk.

You can specify the unattended winnt.sif via commandline parameters passed to winnt32.exe.

ALL is revealed in the docs :)

Ramdisk gets cleared on reboot.

Yes, but winnt32.exe copies it to the target path before installation :rolleyes: ($~WINNT.BT$ or whatever it's called...)

Link to comment
Share on other sites

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...