How it works.
PE boots. If you've injected the autostart script into it - disks are scanned and when found USBMultiWIMSetup.cmd is started (if you haven't injected the autostart script you have to manually start the USBMultiWIMSetup.cmd from command prompt). It scans the disk it is on (two dirs, according to path's inside it) for WIM's and XML's. It generates lists/menus including every item it finds. All this is then output to another script which is presented to the end user.
This script currently contains 4 pages/dialogs:
1. IMAGES. Here you can see all the images found and must select one to continue.
2. ANSWER FILES. Same here, only here you select an answer file. If you don't have or don't want to use any - select " - none" or skip to another page/dialog.
3. START SETUP. If you're done you can start setup from here.
0. RESTART WIZARD. This is the page where you can restart the script. It doesn't make much sense now, but I have some future plans for extension of this script, that's where it will be used.
A simple(st) example:
1. You need some files from an NT6.x installation media:
\boot folder with all it's contents
\sources folder with a boot.wim file in it, just this one file, nothing else
all this goes to the root of your boot device, whichever you are using. From now on it will be referred to as [boot disk].
1a. This step is required to have the script loaded automatically on PE boot. You have to inject the StartSetup.cmd and winpeshl.ini files from downloaded archive to boot.wim's second image. The path is:
2. You can now put your WIM's and XML's to some folders on some disk. From now on that disk will be referred to as [source disk]. Next thing to do is to edit the USBMultiWIMSetup.cmd and enter the path's to WIM's and XML's you are using at the top of the file. In this example we are using:
\IMG for WIM's and
\XML for XML's
so it looks like this in the .cmd:
set wimpth=IMG set xmlpth=XML
3. You need to put the modified USBMultiWIMSetup.cmd file to the root of your [source disk].
Now, the [boot disk] and the [source disk] can be two different devices/disks or it can be one disk. In this example it is one disk. So the next picture shows the end file/folder structure one should get after peforming all the above steps. It also shows what files/folders should go to the [boot disk] / [source disk] if they were two different disks (according to the color).
The run.cmd file included in download is the end user generated script for our example.
The following pictures show what it looks like.
Download:USBMultiWIMSetup v0.9.1 RC.zip
Current version doesn't allow to use spaces inside commandline's arguments.
X:\sources\setup.exe /installfrom:H:\IMG\WIM\ENTx64.wim /unattend:%answ_path%
and this doesn't work.
X:\sources\setup.exe /installfrom:H:\MY IMG\WIM\ENT x64.wim /unattend:%answ_path%
Quotes seem to break the command line as well.
This needs further testing.
Edited by POMAH-PRESS, 06 March 2011 - 11:55 AM.