LEKFIR Posted December 17, 2008 Posted December 17, 2008 Hello,I want to create a boot menu that when WinPE loads it displays 3 options:1. Win XP2. Win XP SP23. Win XP SP3Case the user selects option 2, a batch file called LoadManager.bat will run with parameter 2For 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!
Eagle710 Posted December 17, 2008 Posted December 17, 2008 I use BS Explorer which can be located here:http://www.kursknet.ru/~boa/en/index.html
LEKFIR Posted December 17, 2008 Author Posted December 17, 2008 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!
Eagle710 Posted December 17, 2008 Posted December 17, 2008 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.
LEKFIR Posted December 17, 2008 Author Posted December 17, 2008 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...
Lasray Posted January 26, 2009 Posted January 26, 2009 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.
jaclaz Posted January 26, 2009 Posted January 26, 2009 (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" Or are we talking about DOS? jaclaz Edited January 26, 2009 by jaclaz
Lasray Posted January 26, 2009 Posted January 26, 2009 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
IcemanND Posted January 26, 2009 Posted January 26, 2009 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?
grungething Posted February 27, 2009 Posted February 27, 2009 (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 OFFECHO 1 - Create ImageECHO 2 - Apply ImageREM Need to enter something here to make option 1 or 2 available:CREnet use j: "ServerShare"timeout 3SET USRINPUT=ECHO Enter Image name and press enter . . .COPY CON %TEMP%.~USRINP.TMPECHO.>> %TEMP%.~USRINP.TMPTYPE %TEMP%.~USRINP.TMP | DATE | FIND "):" > %TEMP%.~USRINP.BATCALL %TEMP%.~USRINP.BATimagex /compress fast /check /scroll /capture c: c:%USRINPUT%.wimtimeout 3copy c:%USRINPUT%.wim j:timeout 3GOTO FINAL:APPSET USRINPUT=ECHO Enter Image name then press enter . . .COPY CON %TEMP%.~USRINP.TMPTYPE %TEMP%.~USRINP.TMP | DATE | FIND "):" > %TEMP%.~USRINP.BATdiskpart /s %SYSTEMROOT%prepdrive.txttimeout 3net use j: "ServerShare"timeout 3CALL %TEMP%.~USRINP.BATimagex /apply j:%USRINPUT%.wim 1 c:timeout 3GOTO FINAL:FINALEXITSeen 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+menuFound this extremely useful, will post finished bat file soon, hopefully Edited February 27, 2009 by Tripredacus Merged posts
Tripredacus Posted February 27, 2009 Posted February 27, 2009 (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 March 2, 2009 by Tripredacus Moved reply to http://www.msfn.org/board/index.php?showtopic=97512
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now