to make Bootable USB-stick or USB-Harddisk for Install of Windows XP.
Important Changes in usb_prep8.cmd Batch Program:
The code of BT_folder.cmd program for making Windows XP Setup Bootfolder $WIN_NT$.~BT
by Parsing DOSNET.INF was added to the usb_prep8.cmd program,
so that launching of winnt32.exe /noreboot .... can be avoided and is no longer needed.
A Custom winnt.sif file in the usb_prep folder is needed now,
which will be copied by the usb_prep8.cmd program to the $WIN_NT$.~BT Bootfolder.
For UNATTENDED Install make Changes in usb_prep folder:
Change Product Key in winnt.sif and winnt_dp.sif and Change $OEM$ folder to your needs.
Use for Preparing USB-Drive Only winnt.sif file without an [Unattended] Section.
Don't change commands for using BTS DriverPacks.
winnt_dp.sif is used by usb_prep.cmd when using XPSOURCE with DriverPacks Integrated.
It is not needed anymore to Set the Drive Letter for the Virtual TempDrive,
since there is used now an Automatic Preset Value (mostly Drive T: is used).
VBScript was used for making GUI enhancements for the usb_prep8.cmd Batch Program.
When a .vbs script file is executed by cscript.exe from a Command Window,
then the wscript.echo of VBScript is send as output of cscript to that Command Window
instead of giving for the wscript.echo a GUI pop-up.
When a .vbs script is executed by doubleclick then a wscript.echo statement
is giving as you can try just only a GUI pop-up message with the echo of the return value
e.g. displaying the return value of a VBScipt Function.
The return value of the VBScript Function given as output of cscript to the Command Window,
can be evaluated by using the FOR /F command according to
FOR /F "tokens=*" %%A IN ('CSCRIPT.EXE //NoLogo u_script\FolderSel.vbs') DO SET src_ok=%%A
This mechanism enables the possibility to use GUI enhancements in a CMD Batch Program.
Rob van der Woude gives very valuable information on this subject.
SEE: http://www.robvander...ermessages.html
And a lot of handy Windows Script Host Examples, among which BrFolder.vbs implemented as FolderSel.vbs
http://www.robvander...amples_b.html#B
MsgBox References:
http://www.w3schools...func_msgbox.asp
http://msdn2.microso...y/sfw6660x.aspx
The Wizard's Apprentice as proposed by jaclaz,
can provide also GUI enhancements in a Batch Program,
but that would require an additional download, since adding the 82 kB of this program
would make the usb_prep.zip file larger than the 200 kB Upload limit of MSFN.
So I decided to use a similar but integrated solution using cscript.exe with VBScript files,
which has the advantage that it requires only a very small amount of extra code in the Batch Program.
The usb_prep8.cmd program is given in the Attachment as usb_prep8.zip file
Regards,
wimb
Edit 4dec7: Small changes in usb_prep8.zip Attachment: mainly MsgBox icons and Help_usb_prep.txt file
Attached File(s)
-
usb_prep8.zip (145.02K)
Number of downloads: 1083
This post has been edited by wimb: 04 December 2007 - 02:46 AM



Help
This topic is locked
Back to top










