Jump to content

Boot Menu in WinPE. Please Help!


Recommended Posts

Posted

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!


Posted

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!

Posted

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.

Posted

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

  • 1 month later...
Posted

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.

Posted (edited)
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
Posted

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

Posted

Let's see, make a CMD scripted style menu that lovely dos look, use VBS/HTA, or an Autoit script would also work nicely for this, how pretty do you want it to look?

  • 1 month later...
Posted (edited)

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
Posted (edited)

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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