Jump to content

Boot Menu in WinPE. Please Help!


LEKFIR

Recommended Posts

Hello,

I want to create a boot menu that when WinPE loads it displays 3 options:

1. Win XP

2. Win XP SP2

3. Win XP SP3

Case the user selects option 2, a batch file called LoadManager.bat will run with parameter 2

For example: "LoadManager.bat 2"

The batch file contains command to run imageX and apply the Win XP SP2 image.

How can I perform that?

Thanks!

Link to comment
Share on other sites


Hi!

It looks like I need to gues how to work with those applications.

Where to install it? how?

How to edit the menu?

Where should I place the exe file in order to have it as the first screen???\

Please help!

Link to comment
Share on other sites

To edit the menu is pretty straight forward. There are some .ini files that correspond to what they are doing. To get this to run at boot up call the file from the winpeshl.ini .... if you place the whole directory in the Program files dir simply call it from the winpeshl.ini using the full path.

Link to comment
Share on other sites

When I load the application in winpe startup I get the "Specify OS to repair installation wizard".

Can someone give me link to more info how to work with those applications?

Do I suppose to guess the information you gave me or there is a manual to work with the applications?

How do I edit the menu?

Thanks and sorry if I am impatience...

Link to comment
Share on other sites

  • 1 month later...
With a combination of 'errorlevel' and 'choice' I'm sure you can append the captured keypress to your batch file.

That way you stick with the command prompt and not 3rd party software.

I had guessed that "choice" was removed since 2K thanks to "SET /P" :whistle:

Or are we talking about DOS? :unsure:

jaclaz

Edited by jaclaz
Link to comment
Share on other sites

Choice is available from my Vista command prompt. I've just tried it from the WinPE command and no joy - oops! sorry Lekfir, please ignore my previous post. I just assumed that it would work under WinPE without checking.

As for 3rd party software, Kix32 could be another alternative.

Ray

Link to comment
Share on other sites

  • 1 month later...

This would be really good for me too.

I'm looking for a basic imagex menu that will either Create or Apply and image depending on a user defined .wim file.

1st ever go at writing a batch file so probably a bit messy. Not sure if the user variable works either, but would be quite nice and useful.

The prepdrive.txt file will just format the entire disk for image to be applied.

@ECHO OFF
ECHO 1 - Create Image
ECHO 2 - Apply Image

REM Need to enter something here to make option 1 or 2 available


:CRE
net use j: "ServerShare"
timeout 3
SET USRINPUT=
ECHO Enter Image name and press enter . . .
COPY CON %TEMP%.~USRINP.TMP
ECHO.>> %TEMP%.~USRINP.TMP
TYPE %TEMP%.~USRINP.TMP | DATE | FIND "):" > %TEMP%.~USRINP.BAT
CALL %TEMP%.~USRINP.BAT
imagex /compress fast /check /scroll /capture c: c:%USRINPUT%.wim
timeout 3
copy c:%USRINPUT%.wim j:
timeout 3
GOTO FINAL

:APP
SET USRINPUT=
ECHO Enter Image name then press enter . . .
COPY CON %TEMP%.~USRINP.TMP
TYPE %TEMP%.~USRINP.TMP | DATE | FIND "):" > %TEMP%.~USRINP.BAT
diskpart /s %SYSTEMROOT%prepdrive.txt
timeout 3
net use j: "ServerShare"
timeout 3
CALL %TEMP%.~USRINP.BAT
imagex /apply j:%USRINPUT%.wim 1 c:
timeout 3
GOTO FINAL

:FINAL
EXIT

Seen people mention these hta files to, any advice would be appreciated. Would love just a basic menu system that auto loads up with those options eventually.

http://www.msfn.org/board/index.php?showto...amp;hl=bat+menu

Found this extremely useful, will post finished bat file soon, hopefully

Edited by Tripredacus
Merged posts
Link to comment
Share on other sites

Geezery's HTA (which I use) is not locked down so that you cannot edit it. Therefore you can remove (remark) options out of the code to limit what your users can do. For example, in my version of his HTA (see it in my signature for a link) I remarked out the buttons for Capture, Append, Mount network drive. I did this because, in my production model, the standard users of this program should not need to ever use these options. In my case, mounting network drives is done via startnet.cmd and image maintenance is only the task of the evaluation guy, and myself, the image control guy. All the users get to do is deploy images and install software after the image is deployed. Of course your scope may be different and you can change things as you need to.

Some knowledge of HTML and scripting languages is needed to edit them, but everything is open source so you can research it easily. I still do not understand everything in the HTA either.

Edited by Tripredacus
Moved reply to http://www.msfn.org/board/index.php?showtopic=97512
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...