POMAH-PRESS Posted January 9, 2011 Share Posted January 9, 2011 (edited) I've put together techniques from different guides and made a script that allows one to place several WIM's and XML answer files in some directories on one disk (USB, HDD, CD/DVD,...) and have them listed in script's menu after the installation media's PE boot. You can select an image and an answer file to use and start the installation.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 "[0] - 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\bootmgr fileall 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:Windows\System32\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'sso it looks like this in the .cmd:set wimpth=IMGset xmlpth=XML3. 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.zipKnown issues:Current version doesn't allow to use spaces inside commandline's arguments.Example:this worksX:\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.My original thread at boot-land.net (reboot.pro) Edited March 6, 2011 by POMAH-PRESS Link to comment Share on other sites More sharing options...
metalx Posted January 10, 2011 Share Posted January 10, 2011 a great guide.thx alot Link to comment Share on other sites More sharing options...
POMAH-PRESS Posted January 24, 2011 Author Share Posted January 24, 2011 mb stick this for a while? Link to comment Share on other sites More sharing options...
Tripredacus Posted January 25, 2011 Share Posted January 25, 2011 I've subscribed to it for now. I'm not one to sticky topics just for fun. We'll see how it goes and I'll keep an eye on it. May end up moving to WinPE forum as well, we shall see. Link to comment Share on other sites More sharing options...
grabben Posted January 25, 2011 Share Posted January 25, 2011 Nice little guide. Im sorry for this (probably) dumb question but does vista work as well? Link to comment Share on other sites More sharing options...
POMAH-PRESS Posted January 25, 2011 Author Share Posted January 25, 2011 Well, I don't see why it shouldn't. I don't have any Vista's to test though. Link to comment Share on other sites More sharing options...
grabben Posted January 25, 2011 Share Posted January 25, 2011 Well, I don't see why it shouldn't. I don't have any Vista's to test though.I happen to have vista sp2 and windows 7. If no one else is faster I can try later:)Just place all wims in wimfiles in wim but boot? From 7 then i guess hehe. Link to comment Share on other sites More sharing options...
POMAH-PRESS Posted January 25, 2011 Author Share Posted January 25, 2011 (edited) I happen to have vista sp2 and windows 7. If no one else is faster I can try later:)That would be great and appreciated.Just place all wims in wimfiles in wim but boot? From 7 then i guess hehe.Didn't get that. Edited January 25, 2011 by POMAH-PRESS Link to comment Share on other sites More sharing options...
grabben Posted January 25, 2011 Share Posted January 25, 2011 I happen to have vista sp2 and windows 7. If no one else is faster I can try later:)That would be great and appreciated.Just place all wims in wimfiles in wim but boot? From 7 then i guess hehe.Didn't get that.Place all *wim in images.. But Im whondering a little thing with vista.. If i make an 7+vista AIO (in same *.wim) the first part of setup will complete fine but after restart it will fail.. Im whondering if same thing will happen here.. Link to comment Share on other sites More sharing options...
Tripredacus Posted January 25, 2011 Share Posted January 25, 2011 Not sure if it is related, but the XML inside of the default install.wims for Win7 and Vista have different structure. Link to comment Share on other sites More sharing options...
grabben Posted January 25, 2011 Share Posted January 25, 2011 Not sure if it is related, but the XML inside of the default install.wims for Win7 and Vista have different structure.I see, so there is a possibility this could work? Link to comment Share on other sites More sharing options...
Tripredacus Posted January 25, 2011 Share Posted January 25, 2011 I haven't tried capturing a Win7 install using Vista WAIK but you could capture a Vista WIM with the Win7. The only problem I can see is you'd lose a generalize. Link to comment Share on other sites More sharing options...
grabben Posted January 25, 2011 Share Posted January 25, 2011 (edited) Well i tried exporting first win7 to a new install.wim and then vista using windows 7 waik and i can tell its not working.New *.wim was moved to windows 7 dvd.. Edited January 25, 2011 by grabben Link to comment Share on other sites More sharing options...
Tripredacus Posted January 25, 2011 Share Posted January 25, 2011 Oh waiit, duh! So in the end, you are attempting to install the Vista WIM using the Windows 7 setup.exe? That could be the problem. You may need to script it to use the Vista setup.exe, call it setup2.exe or something and you could put it in the same place as the Win7 setup.exe. You can try run depends on both to see if the older setup needs different files if that still doesn't work. Link to comment Share on other sites More sharing options...
grabben Posted January 25, 2011 Share Posted January 25, 2011 Oh waiit, duh! So in the end, you are attempting to install the Vista WIM using the Windows 7 setup.exe? That could be the problem. You may need to script it to use the Vista setup.exe, call it setup2.exe or something and you could put it in the same place as the Win7 setup.exe. You can try run depends on both to see if the older setup needs different files if that still doesn't work.Yea i figured it mustve been something with setup.exe.. Yea I am, atleast i tried once hehe..How can I do that? Not that I need vista today but would be interesting to know:) Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now