This methode works for all kinds of drives, like HDD, USB-Stick, USB-HDD, USB-CDROM.
However it does not work for CDs. As soon as you put your CD into a different CD-Drive it reverts back to X:
How to do it?
First you need to attach the drive you want to put your PE on to your computer. If the drive is a fixed one and is in another computer located, perform the following steps on that computer.
- start up Windows - any XP or PE will do
- start Explorer and check which drive letter your drive has gotten (Remeber that or write it down! )
- start Regedit and navigate to HKEY_LOKAL_MACHINE\SYSTEM\MountedDevices
- mark MountedDevices
- export that entry and remember where you put it!
Now get the file to the computer you will build your PE on. The file is already on that computer?
Great! Less work for you.
Now start WB and set your project up. Once your done with that, make a few final changes.
- go to 'Define Fundamentals' and set the 'PE Drive Letter' to C: or whatever you like.
- go to 'Create ISO' and uncheck it, just like 'Run ISO in ...'
Run your project.
Once the project finishes, don't close WB!!!
Now it's time to take care of the previously exported Registry entries.
Go to the file right click on it and choos edit not open! If you do choose open by accident, answer the following dialog with NO or you're royaly screwed!
If you've done it right Notepad will have opened and show you your reg file.
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices]and start deleting all entries but the one \\DosDevices\\with the drive letter that was appointed to the drive you wanna put PE on, when you've exported those entries.
An entry always starts with
"\\and ends with
After slimming down the reg file, we still have to modify it a bit.
First we change the drive letter to what we entered in the Define Fundamentals script.
If you've followed my lead, that should be C:.
It should now read
And after we change HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices to HKEY_LOCAL_MACHINE\setupreg\MountedDevices we're done and can save the file and close the editor.
Now we need to get those settings we just created to the right place and that is the setupreg.hiv in the i386\system32 folder in your Target folder.
To get it there, do the following:
- start Regedit
- mark the HKEY_LOCAL_MACHINE
- go to the menu file and click on 'load hiv' or something similar
- you'll get a file choosing dialog, navigate to 'your taget folder'\i386\system32\setupreg.hiv and click open
- in the now presented dialog window enter
- go to you modified reg file and double click it, say YES to the following dialog
- go to the menu file and click on 'unload hiv' or similar
Puhhh, That was that.
All that's now left to do, is to actually create the ISO.
We switch back to WB (which we left hopefully clever open) go to the 'create ISO' script and press the button 'Create a new ISO file'.
Wait a few days, i'm sure Peter will include this in his buildmodel.