Help - Search - Members - Calendar
Full Version: WinPE 2 Made Easy (Easy way to create/maintain your WinPE)
MSFN Forums > Unattended Windows Discussion & Support > Windows PE

   
Google Internet Forums Unattended CD/DVD Guide
MadBoy
WinPE Made Easy is a project that is supposed to lower amount of steps needed to create and maintain one or more Windows PE Custom CD/USB images. The program should work with Windows PE 2.0 and Windows PE 2.1.

How to use it in 3 simple steps:
1) Download and install WAIK 2.1 or WAIK 2.0 (either one should work)
2. Run the program, follow the nessecary steps
3. Create USB Pendrive or Generic CD (.iso image) or Custom CD/DVD using instructions given.

Screenshots: WinPE_Setup.PNG, WinPE_Drivers.PNG, WinPE_AddFiles.PNG, WinPE_RemoveFiles.PNG, WinPE_StartUp.PNG,WinPE_Create.PNG

Abilities of this little proggy:
- add builtin (HTA,VBS etc) components,
- add drivers,
- add files/folders to BOOT.WIM (inside) or just copy files/folders to dir structure (for example to USB/DVD drive),
- remove files/folders from to BOOT.WIM (inside) or just remove files/folders from dir structure (for example from USB). Things like fonts directory, unnessecary .exe's etc
- create startup file
- load/save settings to file to reuse when needed.

Tips & Tricks (Section - StartUp)
1. Program uses starnet.cmd to start it's own created startnet.exe (therfore starnet.cmd will be overwritten and have one value)
2. When adding programs to startup startnet.au3 is created and then compiled into .exe
3. File startnet.au3 is left inside \Windows\System32 folder next to startnet.cmd so you can verify it's contents yourself (might be removed later on)
4. When you add programs to StartUp listview don't forget to add X:\winpeinit.exe as this is nessecary for drivers to be detected
5. When you add programs to StartUp listview don't forget that the order does matter. Program will start programs from top to bottom so don't put winpeinit.exe last ;-)
6. Program by default hides the first CMD window therfore if you want to use console add 'cmd.exe' to StartUp

Tips & Tricks (Section - Loading/Saving)
1. Program by default looks for directory called Configuration in same dir as the .exe file. If you put your config files there then you will have ability to find them easier

Tips & Tricks (Section - Creating WinPE)
1. Program when creating USB PenDrive will delete all files from the USB device. Keep that in mind!

Changelog for Version 1.0.0.3
- Fixed bug where boot.wim wouldn't be mounted at all (code was accidentally deleted)
- Changed WAIK Path. It required full path to PEToolS in WAIK\Tools directory instead of just WAIK directory
For example instead of C:\Program Files\Windows AIK it required C:\Program Files\Windows AIK\Tools\PETools
This has now been changed.
Changelog for Version 1.0.0.2
- Added logging to file. All actions that are visible in the log window can now be found at winpe_made_easy.log located in programs directory
- Fixed bug where boot.wim wouldn't be created (2KB boot.wim empty wim file was created instead)
Changelog for Version 1.0.0.1
- Fixed bug where Generic and Custom .ISO would be created even thou checkboxes weren't checked

Things to do:
- Configuration of logging (whether there should be file created or not)
- Copying file process improvments (to not try to copy something that doesn't exists - but that's how the .cmd's in WAIK were predefined)


Download program below
Version 1.0.0.3 - WinPE Made Easy v 1.0.0.3

Archive of download (left just in case). Use the newest version above.\
Version 1.0.0.2 - WinPE Made Easy v 1.0.0.2
Version 1.0.0.0 - WinPE Made Easy v 1.0.0.0
geemail.email
Madboy....I anxiously await the release...this looks great!
`Felix`
Any idea when this tool will be available?
MadBoy
QUOTE (`Felix` @ Mar 8 2008, 07:12 PM) *
Any idea when this tool will be available?


Got lazy latly and had to pass some exams smile.gif I'll see what i can do but everytime i start doing things on it someone tells me to do other things tongue.gif
gadget
I take it you are studying politics smile.gif
sprack
Any progress on this project?
MadBoy
QUOTE (sprack @ Apr 24 2008, 10:16 PM) *
Any progress on this project?


I'm doing some final tests as the application is functional now. Just adding few touches here and there.
MadBoy
Version 1.0.0.0 is out. This is first version so have mercy. I didn't yet included full instructions on how to use the program but hopefully you guys can find it out. If not lemme know and i'll try to update.

First post updated with relevant information! Enjoy
MadBoy
Anyone tried it? Any comments? Is it working? Does it need more explanation from my side? Any bugs? Feature requests?
Svend Rugaard
Hello.

The tools is a great thing , and tried it out now.

I have installed WAIK 2.1 on Vista x64.

I have tried to make just a "basic" winPE boot from USB, but i cant get it to boot.

I have usually my Custimized Vista Installation on a USB stick, so its not because i dont know how to make a Bootable USB.

But it seems when i want it to boot it actually skips the USB Stick as a boot device as when it isnt present. And just go to next boot priority there is my Harddrive.

So actually it doesnt work for me.

I have tried boot the AMDx64 option and the x86 option. Its the same ..

When i put only my USB flash drive for booting it says BootMgr missing .. Press CTRL+ALT+DELETE .. so my guess is something in your script isnt configure correct to make the boot sector being copied correctly over. In that i think you probaly not configured to copy files over as a systemfile in there attributes. I Probaly havent explain it right, but im not that good in english smile.gif

I hope you maybe have a clue what is going wrong, because i really love the tool and the GUI interface, its easy as h... to use smile.gif
MadBoy
QUOTE (Svend Rugaard @ May 9 2008, 02:02 PM) *
Hello.

The tools is a great thing , and tried it out now.

I have installed WAIK 2.1 on Vista x64.

I have tried to make just a "basic" winPE boot from USB, but i cant get it to boot.

I have usually my Custimized Vista Installation on a USB stick, so its not because i dont know how to make a Bootable USB.

But it seems when i want it to boot it actually skips the USB Stick as a boot device as when it isnt present. And just go to next boot priority there is my Harddrive.

So actually it doesnt work for me.

I have tried boot the AMDx64 option and the x86 option. Its the same ..

When i put only my USB flash drive for booting it says BootMgr missing .. Press CTRL+ALT+DELETE .. so my guess is something in your script isnt configure correct to make the boot sector being copied correctly over. In that i think you probaly not configured to copy files over as a systemfile in there attributes. I Probaly havent explain it right, but im not that good in english smile.gif

I hope you maybe have a clue what is going wrong, because i really love the tool and the GUI interface, its easy as h... to use smile.gif


Have you tried it on XP? I didn't tried it on Vista so wonder where could be problem. Can you list the files copied to usb by my program ?
Svend Rugaard
CODE
T:\bootmgr
T:\efisys.bin
T:\efisys_noprompt.bin
T:\bootmgr.efi
T:\boot
T:\boot\bcd
T:\boot\boot.sdi
T:\boot\etfsboot.com
T:\boot\efisys_noprompt.bin
T:\boot\efisys.bin
T:\boot\bootfix.bin
T:\boot\fonts
T:\boot\fonts\wgl4_boot.ttf
T:\boot\fonts\kor_boot.ttf
T:\boot\fonts\chs_boot.ttf
T:\boot\fonts\cht_boot.ttf
T:\boot\fonts\jpn_boot.ttf
T:\EFI
T:\EFI\microsoft
T:\EFI\microsoft\boot
T:\EFI\microsoft\boot\bcd
T:\EFI\microsoft\boot\fonts
T:\EFI\microsoft\boot\fonts\wgl4_boot.ttf
T:\EFI\microsoft\boot\fonts\kor_boot.ttf
T:\EFI\microsoft\boot\fonts\chs_boot.ttf
T:\EFI\microsoft\boot\fonts\cht_boot.ttf
T:\EFI\microsoft\boot\fonts\jpn_boot.ttf
T:\sources
T:\sources\boot.wim


No i havent tried in Windows XP, and it wouldnt be possible anyway because i dont have x64 XP .. and its the x64 i need to have to work.

But here is the file / folder listing.

I have also tried to make a xcopy of the bootmgr from my windows installation so se if it would work.
MadBoy
Something is not right with mounting the image boot.wim. I will investigate that. It works fine on my system but when i try to test it on virtual vista and xp it doesn't work. Hopefully new version will be out soon tongue.gif
Svend Rugaard
QUOTE (MadBoy @ May 12 2008, 02:01 AM) *
Something is not right with mounting the image boot.wim. I will investigate that. It works fine on my system but when i try to test it on virtual vista and xp it doesn't work. Hopefully new version will be out soon tongue.gif


Thanks .. THen its not me there have done anything wrong, and i wasnt sure about it, but it seem as you say something is not right .. I was also about to think you was abandon me biggrin.gif .. Because i am the only one actually comment on how it works biggrin.gif ..
MadBoy
New version out. Refer to download link to first post.

Version 1.0.0.2
- Added logging to file. All actions that are visible in the log window can now be found at winpe_made_easy.log located in programs directory
- Fixed bug where boot.wim wouldn't be created (2KB boot.wim empty wim file was created instead)
Version 1.0.0.1
- Fixed bug where Generic and Custom .ISO would be created even thou checkboxes weren't checked

Tnx to Svend Rugaard for testing :-) Hope this works for you.

MadBoy
New version out. This time hopefully the critical bugs were fixed.

Changelog for Version 1.0.0.3
- Fixed bug where boot.wim wouldn't be mounted at all (code was accidentally deleted - SIC!)
- Changed WAIK Path. It required full path to PETools in WAIK\Tools directory instead of just WAIK directory
For example instead of C:\Program Files\Windows AIK it required C:\Program Files\Windows AIK\Tools\PETools
This has now been changed.

Please use the newest version. 1.0.0.2 and 1.0.0.0 won't realy work.
Svend Rugaard
QUOTE (MadBoy @ May 17 2008, 06:27 AM) *
New version out. This time hopefully the critical bugs were fixed.

Changelog for Version 1.0.0.3
- Fixed bug where boot.wim wouldn't be mounted at all (code was accidentally deleted - SIC!)
- Changed WAIK Path. It required full path to PETools in WAIK\Tools directory instead of just WAIK directory
For example instead of C:\Program Files\Windows AIK it required C:\Program Files\Windows AIK\Tools\PETools
This has now been changed.

Please use the newest version. 1.0.0.2 and 1.0.0.0 won't realy work.



Hey madboy, and thanks for the update .. i havent got time the last few days because of work .. but now i have try it .. i am actually coming further except now its just "hanging" when it should boot up to the WinPE via USB the cursor thing is just flashing and nothing more happen , it dont com to the logon.

I am little confuse about this because i have use it as states earlier to install Vista from and have even use the VistaPE project on it.

So something isnt working correct .. i have now tried at this moment when i write added drivers to see if this help ... is shouldnt normal not be necesarry

MadBoy
@Svend Rugaard

I must say I am a bit lost here. You are speaking about VISTA. DO you mean WAIK 2.1 or 2.0. Did you install it? Also can you send me the log file that the new version produces? Does the generic iso works for you? (not speaking about USB device now) but the created cd or dvd images? Have you tried creating manually winpe from WAIK 2.1 or 2.0 and running it on the same machine?
lenova
Hi there,

First off, just wanted to say 'thanks' for this program. It looks brilliant! I've ran into a few problems trying to run it, however. I'll step through my setup process first:


WinPE Setup Tab:

- Using WAIK 2.1
- Installing HTA, MDAC, Scripting, WMI, XML packages

WinPE Drivers Tab:

- Added about 100 drivers from the Ultimate Boot CD for Windows distribution

WinPE StartUp Tab:

- Added 'cmd.exe' to startup list

WinPE Create Tab:

- Installed to a USB Key


The problem:

- The packages, drivers, and image are created and copied to the USB key successfully.

- I can boot up into WinPE and open the command prompt

- However, it fails to load startnet.exe. I receive the following error message:

"AutoIt Error

Line -1:
Error: Unable to execute the external program.
The system cannot find the file specified.
"

Then it returns to the command prompt.

Any ideas?

Thanks!








MadBoy
QUOTE (lenova @ May 30 2008, 09:40 PM) *
Hi there,

First off, just wanted to say 'thanks' for this program. It looks brilliant! I've ran into a few problems trying to run it, however. I'll step through my setup process first:


WinPE Setup Tab:

- Using WAIK 2.1
- Installing HTA, MDAC, Scripting, WMI, XML packages

WinPE Drivers Tab:

- Added about 100 drivers from the Ultimate Boot CD for Windows distribution

WinPE StartUp Tab:

- Added 'cmd.exe' to startup list

WinPE Create Tab:

- Installed to a USB Key


The problem:

- The packages, drivers, and image are created and copied to the USB key successfully.

- I can boot up into WinPE and open the command prompt

- However, it fails to load startnet.exe. I receive the following error message:

"AutoIt Error

Line -1:
Error: Unable to execute the external program.
The system cannot find the file specified.
"

Then it returns to the command prompt.

Any ideas?

Thanks!


Can you please send me the log file from the program? Also can you mount the copied .wim file and copy the files from \Windows\System32
- startnet.au3
- startnet.exe
- startnet.cmd

Also is the cmd.exe started properly? Is it the CMD.EXE with startnet.cmd in the title or more likely it's CMD.exe that you defined in the startup tab? Can you try adding wpeinit command or so to initialize the drivers (as this also should be added as a part of startup).

I'll take a look tommorow (going to sleep now and uni in the morning).
jason.claude
Thanks a heap man, Was having trouble with Waiks command line, so this worked a treat

Jason
brosy
Hi my question is related to HTA

in the tool there is 2 HTA components

WinPE-HTA-Package
Winpe-HTA-Support

as far as i can see there is only one HTA Package

C:\Program Files\Windows AIK\Tools\PETools>peimg /list D:\Mount
Preinstallation Environment Image Setup Tool for Windows
Copyright © Microsoft Corporation. All rights reserved.

Culture: en-US
Time zone offset: (GMT-08:00) Pacific Time (US & Canada)
Time zone name: "Pacific Standard Time" (use with /timezone)
Scratch space: 32 MB
Target Path: X:\

Lang | Version | Ins | Name
------+---------------+-----+-----------------------------------------------
|6.0.6001.18000 | - | WinPE-FontSupport-JA-JP-Package
------+---------------+-----+-----------------------------------------------
|6.0.6001.18000 | - | WinPE-FontSupport-KO-KR-Package
------+---------------+-----+-----------------------------------------------
|6.0.6001.18000 | - | WinPE-FontSupport-ZH-CN-Package
------+---------------+-----+-----------------------------------------------
|6.0.6001.18000 | - | WinPE-FontSupport-ZH-HK-Package
------+---------------+-----+-----------------------------------------------
|6.0.6001.18000 | - | WinPE-FontSupport-ZH-TW-Package
------+---------------+-----+-----------------------------------------------
en-US |6.0.6001.18000 | - | WinPE-HTA-Package
------+---------------+-----+-----------------------------------------------
|6.0.6001.18000 | - | WinPE-HTA-Package
------+---------------+-----+-----------------------------------------------
en-US |6.0.6001.18000 | - | WinPE-MDAC-Package
------+---------------+-----+-----------------------------------------------
|6.0.6001.18000 | - | WinPE-MDAC-Package
------+---------------+-----+-----------------------------------------------
en-US |6.0.6001.18000 | - | WinPE-Scripting-Package
------+---------------+-----+-----------------------------------------------
|6.0.6001.18000 | - | WinPE-Scripting-Package
------+---------------+-----+-----------------------------------------------
en-US |6.0.6001.18000 | - | WinPE-WMI-Package
------+---------------+-----+-----------------------------------------------
|6.0.6001.18000 | - | WinPE-WMI-Package
------+---------------+-----+-----------------------------------------------
en-US |6.0.6001.18000 | - | WinPE-XML-Package
------+---------------+-----+-----------------------------------------------
|6.0.6001.18000 | - | WinPE-XML-Package
------+---------------+-----+-----------------------------------------------

Listed 15 package(s).

PEIMG completed the operation successfully.

also not sure if this is related but i cannot run the following directly

mshta htafile.hta

instead i must run taskmgr and run the above line from "new Task". if you have any work around for this it would be appreciated

Damian
MadBoy
QUOTE (brosy @ Jun 4 2008, 09:07 AM) *
Hi my question is related to HTA

in the tool there is 2 HTA components

WinPE-HTA-Package
Winpe-HTA-Support

as far as i can see there is only one HTA Package


It's a bug on my side. I've typed too many checkboxes (copy/paste). The HTA-Package is legit. The HTA-Support is not. However no harm is done. Simply when program tries to execute this it fails and just continues for another. I will fix it in 1.0.4 or so. Sorry that i don't update this instantly but i don't realy have time since I've changed jobs (3 days in new job now) and don't realy have time since a lot of stuff at new job is kinda new to me newwink.gif

As for the HTA and TaskManager i realy can't say. I don't write scripts in HTA and never used it :-) But i would guess that my program doesn't affect work of HTA at all so this must be "normal" for this. It simply runs the command (in the background) to add HTA component and that's it.

Hope that helps. If you got some ideas how I can enhance the program let me know however i don't know when i will add them newwink.gif
lenova
Hi again,

I think I've figured it out now. I had to add "wpeinit.exe" to the list of commands in "WinPE Startup".

Cheers!
boats2000
Can you explain how destination Directory works? I would like to add files to folder that in the path on winpe environment. What is inside/outside? Do you have a help file?

Thanks,

Chris
Nuno Brito
Don't forget Alland's project PE21 that also creates a Windows PE 2.x boot disk very easily.

The difference is that it also allows to add third party programs and use some desktop shells like emerge desktop or bblean. It's easy to use since it only requires to click on the "Play" button to produce a working boot disk.

http://www.boot-land.net/forums/?showtopic=4431

There is also VistaPE from Nightman that also creates a Windows PE 2.x boot disks from either Vista DVD's or regular Windows AIK.

VistaPE goes a bit farther and even includes the explorer shell as option when using the Vista DVD as source for building the boot disk: http://vistape.net - I also consider it very easy to use because it adds so many scripts to automate features addons that it would simply take too long to do it manually.

DriverPacks are dynamically included inside both projects.

smile.gif
MadBoy
QUOTE (boats2000 @ Jul 23 2008, 05:43 PM) *
Can you explain how destination Directory works? I would like to add files to folder that in the path on winpe environment. What is inside/outside? Do you have a help file?

Thanks,

Chris


Inside is inside the boot.wim, outside is outside of boot.wim (typically simple files folder just the way you would copy them over to pendrive or drive).

Hope this explains newwink.gif
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.