Jump to content











Photo
- - - - -

WinPE From a DVD


  • Please log in to reply
18 replies to this topic

#1 misty

misty

    Gold Member

  • Developer
  • 1069 posts
  •  
    United Kingdom

Posted 15 September 2013 - 11:11 AM

Download available here - http://reboot.pro/fi...le/357-mistype/
 

IMPORTANT/WARNING - DO NOT USE A PATH (TO WINBUILDER.EXE) CONTAINING SPACES - THE PROJECT WILL NOT WORK IF YOU DO


This is yet another WinPE WinBuilder project - temporarily named MistyPE (see post numbers 2-4). Why have I bothered? Good question - mainly because I prefer to customise my own WinPE so that I can keep track of any changes made to the original source files. I have been using a series of batch scripts since the first WAIK (version 1.0) was released back in 2007. These scripts have become increasingly difficult to maintain and I wanted to have a go at scripting a Winbuilder project for my own personal use. Having spent a considerable amount of time over the past few weeks on scripting this project I've decided to share it.

This project can be used to build a lightweight WinPE from a Windows Vista\7\8\8.1 source DVD (tested) and probably Windows Server 2008\2012 (I can't test them as I don't have the relevant sources). BBLean shell and various applications are included in the download - including a WinFE script.

The project goal was to create a small build with the essential tools I require for deployment, backup and recovery. I've attempted to keep the project user interface clean and simple and most of the settings are in the project script.
A local folder or network share can also be used as source. The following files are checked for, if missing the build will be aborted -

  • \bootmgr
  • \boot\*.*
  • \boot.wim (or \sources\boot.wim)
  • \install.wim (or \sources\install.wim)

The source files are cached for later use and to help speed up the (re)build process. Separate caches are created for x86 and x64 versions of WinPE.

Some bugs still need sorting out depending on which source is used (suggestions welcome) -

  • Windows Vista (Build 6.0.6000) - \windows\system32\boot\winload.exe error on booting (error message reads "The selected entry could not be loaded because the application is missing or corrupt"). Bizarrely the boot.wim file modified by running the project will boot successfully if boot.sdi from a Windows 7 (and possibly other) source is used instead of the boot.sdi from 6.0.6000 sources.
  • Windows 8.1 (Build 6.3.9431) - There are problems with file permissions when the files are applied to a local directory (only applies if Method "EXTRACT" is used). Some files cannot be modified from winbuilder or deleted after the build. This can be avoided by building with the method "INJECT". Possibly also applies to 6.2.9200 sources - I've not tested this source using this method.
  • Language support. Wimlib-imagex is used to verify the "Default Language" of boot.wim (from source) and this will be used automatically during the build process. The Language option in the main project script is only used as a fallback if wimlib is not able to obtain this information from boot.wim. I'm hoping to improve language support in the future. This is difficult as microsoft hasn't been consistent with the use of .mui files - as an example the en-GB release of Windows 8.1 still uses a number of en-US .mui files (e.g. BootRec.exe calls \en-US\BootRec.exe.mui - not \en-GB\BootRec.exe.mui)! Does this also happen in WinPE 2.*/3.*/4? I don't have multiple language sources to test this.
  • It's also worth remembering that different source files will give varying results. Browse for folders is working fine in WinPE 3.*/4.0/5.0 - but not in WinPE 2.* - resulting in a number of programs such as Recuva not working.
  • Probably others. I simply don't have enough sources or the time to test further.

There are two build methods - either "EXTRACT" (applies the image to a local directory, customises the applied files and rebuilds a new boot.wim from the customised files) or "INJECT" (this will extract the registry hives only, compile the new files to be added to boot.wim, edit the extracted registry, then add all of these files to boot.wim and finally optimise boot.wim to save space).

I have tried to cover all bases and have no doubt missed something. Feel free to let me know of any bugs.



Quick instructions -

  • Run Winbuilder.
  • Change the settings as required in the main project script.
  • Change path to a valid source.
  • Hit the blue Play button

If a cache was created in a previous run of the project then it can re used by selecting "YES" in the "Attempt to use Existing Cache"option (also change the "WinPE Processor Architecture" to correspond to the architecture of the source files the cache was created from).

The project will automate the following tasks -

  • Check source (or existing cache) for the required files
  • Find build version from boot.wim (ignored if using a cache as this check was carried out when the cache was created)
  • i) Extract the contents of image 2 from boot.wim (image 2 is required when using a Windows Installations DVD - Image 1 will not work (and doesn't have a boot flag)) to the %TargetDir% (this can be changed to use a different image number - e.g. Image 1 if using WinPE built from WAIK/ADK or WinRE) OR ii) Copy boot.wim and extract the registy files from it to %TargetDir%
  • Customise the contents of %TargetDir%
  • Either Repack boot.wim or add the files to existing boot.wim
  • Create a bootable ISO

This project is optimised for WinPE 3.* - some features may well be missing from other versions. As previously stated WinPE 2.* has a missing browse for folder dialog that results in some programs not functioning correctly. WinPE 4.0/5.0 doesn't support the 'open with' list - at least not with the same settings used in WinPE 3.0, Etc.

Quick note on using the cache. Once a cache has been created, boot.wim (copied from the source media) can be replaced with boot.wim from WAIK/ADK (change image number on the project script to use Image 1).

This is a beta release. This is not really aimed at people without an understanding of using winbuilder as the instructions are not up to scratch. If I can get the bugs listed above ironed out then I'll make the project more presentable and produce some proper instructions. Credits (and links to program websites, etc) will also be added to a future release. As an interim measure, my thanks to all of the creators of the software used in this project.

Quick thanks to the Winbuilder team, Reboot team, Mr B.G. Miller ((the author of a43 and FileManagerPE) who kindly consented to his programs being included in the download) and Mr Colin Ramsden ((Author of the Write Protect Tool - see WinFE script) who kindly consented to the distribution of WProtect.exe for non profit uses only). Also a special thanks to synchronicity (the author of wimlib-imagex.exe) - the extraction and build process used for this project has been made possible by his fantastic work.

I've done my best to avoid distributing any files/programs whose license restricts distribution. I have taken the liberty of including AccessGain as I can't find the authors site or contact them.

Regards,

Misty

P.s. If you want to report any errors then please include information about -

  • Host OS used when running the project (including whether it's 32 or 64 bit)
  • Source files (including architecture and language)
  • Method used ("Extract and Repack..." or "Inject")

  • Brito likes this

#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 15 September 2013 - 02:32 PM

This is yet another WinPE WinBuilder project - I haven't decided on a name yet.

Nice. :)
I would say that MistyPE could be a good idea.
 
 
 

I have taken the liberty of including AccessGain as I can't find the authors site or contact them.

The Author's site is down:
http://web.archive.o...ccessgain-tool/

Is the one included" the 1.0 or the 1.1 one? (unfortunately the Wayback machine has not a cache of either :()

:cheers:
Wonko

#3 misty

misty

    Gold Member

  • Developer
  • 1069 posts
  •  
    United Kingdom

Posted 15 September 2013 - 02:36 PM

@Wonko

Nice suggestion for the name - catchy, but perhaps a little bit egotistical!

 

AccessGain is version 1.1 - both 32 and 64 bit versions.

 

Misty



#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 15 September 2013 - 08:36 PM

@Wonko
Nice suggestion for the name - catchy, but perhaps a little bit egotistical!

Sure, but it can be easily mistaken for MisteryPE, which would open a whole world of implied hidden secrets waiting to be to discovered....

.... and even MistyPE in itself may recall something that can have unexpected twists... :)

:cheers:
Wonko



#5 misty

misty

    Gold Member

  • Developer
  • 1069 posts
  •  
    United Kingdom

Posted 20 September 2013 - 11:32 AM

New version uploaded and first post edited to reflect the changes to the project.
  • The new version has a more user friendly and simple UI.
  • Includes much improved handling of potential build errors.
  • Now contains one project for x86 and x64 builds - just select the source type in the main project script.
Feedback welcome. I hope to add MistyPE to the DOWNLOADS section of the forum - I just need to negiotiate for a larger maximum file size for the uploads.

Regards,

Misty

#6 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 20 September 2013 - 11:49 AM

 I just need to negiotiate for a larger maximum file size for the uploads.

No real need IMHO to "negotiate" in the traditional way:

 

Just e-mail Nuno, and plainly tell him :w00t: "If you won't allow me to upload the project on your board, NOW, I will post it on another board" (you may add something about the bad effect this would have on Alexa's Ranking ;))

 

:cheers:

Wonko

 

JFYI, aggressive diplomacy:

Spoiler



#7 misty

misty

    Gold Member

  • Developer
  • 1069 posts
  •  
    United Kingdom

Posted 20 September 2013 - 12:17 PM

@Wonko

 

I like your style, you clearly missed your true calling. Wonko the diplomat - now there's a scary thought  :P

 

I had already PM'd Nuno before reading our post - if I hadn't already sent a polite request I'd have followed your advice!!!



#8 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 20 September 2013 - 12:34 PM

Yep :smiling9:

 

 

:cheers:

Wonko



#9 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 20 September 2013 - 12:50 PM

Just e-mail Nuno, and plainly tell him :w00t: "If you won't allow me to upload the project on your board, NOW, I will post it on another board" (you may add something about the bad effect this would have on Alexa's Ranking ;))

 

Now this would be something that MedEvil would say. He has been awfully quiet for a while, I wonder what is he doing.

 

In fact, I remember one time over private messages when MedEvil actually deleted his brand new wb project along with all copies of the thing just because something went wrong. This was some years ago and I don't even remember any more what it was, but heck, did that impressed me. :lol:

 

No need to threat my precious Alexa ranking. I've already addressed the issue with Misty over personal message.

 

:cheers:



#10 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 20 September 2013 - 01:02 PM

Now this would be something that MedEvil would say.


Naah, this would be what he would actually do :w00t: ;), which is another thing.
 

He has been awfully quiet for a while, I wonder what is he doing.


Yep, strange, maybe he is busy in his real life, let's hope he is well and everything is cool BUT it's taking part on the forum. :)

 

No need to threat my precious Alexa ranking. I've already addressed the issue with Misty over personal message.

Sure, but you are not a good negotiator either, if you were, you would have given Misty the filespace he needed on the board on the condition that he published a nice video of the project :whistling:

:cheers:
Wonko

#11 misty

misty

    Gold Member

  • Developer
  • 1069 posts
  •  
    United Kingdom

Posted 20 September 2013 - 01:18 PM

I'll look forward to the Fith Element clip when I get home - streaming via a tethered mobile connection is not an option in my current location.

Big thank you to Nuno for all of his help and support via PM over the past week. :cheers:

 

Project is now added to Downloads section (initially as MiniXP for some reason, but now titled MistyPE - see http://reboot.pro/fi...le/357-mistype/



#12 boulcat

boulcat

    Member

  • Advanced user
  • 51 posts
  •  
    Belgium

Posted 20 September 2013 - 01:22 PM

I have not seen any project with Win8.1, I wanted to try it to see.

There is a problem between WinPE.From.DVD and MistyPE in all scripts.

Run,"%BaseDir%\Projects\WinPE.From.DVD....

 

 

 



#13 misty

misty

    Gold Member

  • Developer
  • 1069 posts
  •  
    United Kingdom

Posted 20 September 2013 - 01:29 PM

@boulcat

Well spoted. This results from a last minute name change to MistyPE - I'll correct this asap.

 

Thank you.

 

Regards,

 

Misty



#14 misty

misty

    Gold Member

  • Developer
  • 1069 posts
  •  
    United Kingdom

Posted 20 September 2013 - 01:42 PM

File is uploading as we speak. Temporary edit -

 

Core Files script (Core) - edit line 361, changing -

Run,"%BaseDir%\Projects\WinPE.From.DVD\Core\keyboard.script",process

to

Run,"%BaseDir%\Projects\MistyPE\Core\keyboard.script",process

 

BlackBox Lean script (Shell.Then.End) - edit line 45, changing -
Run,"%BaseDir%\Projects\WinPE.From.DVD\Shell.Then.End\make.wim.script",process

to

Run,"%BaseDir%\Projects\MistyPE\Shell.Then.End\make.wim.script",process



#15 misty

misty

    Gold Member

  • Developer
  • 1069 posts
  •  
    United Kingdom

Posted 20 September 2013 - 01:50 PM

Upload has failed - mobile phone connections are not ideal. It will have to wait until I ger home later this evening. I've deleted the previous version and can't upload the new one. My sincere apologies. Sorry.



#16 boulcat

boulcat

    Member

  • Advanced user
  • 51 posts
  •  
    Belgium

Posted 20 September 2013 - 01:59 PM

File is uploading as we speak. Temporary edit -

Run,"%BaseDir%\Projects\WinPE.From.DVD\Core\keyboard.script",process

...

 

If you allow me with my little experience with Win8PESE ( the Original! )
Why do not you use the existing variable %ProjectDir%
Run,%ProjectDir%\Core...

 

Do you have a screenshot with BBLean shell?



#17 misty

misty

    Gold Member

  • Developer
  • 1069 posts
  •  
    United Kingdom

Posted 20 September 2013 - 02:07 PM

@everyone

Hopefully the upload has just completed successfully. I have to rush for the school run and will check later.

 

@boulcat

Thanks for the suggestion. I didn't know that variable existed :frusty:

 

BBlean screenshot is on the project page in the Download section - see link in first post.



#18 boulcat

boulcat

    Member

  • Advanced user
  • 51 posts
  •  
    Belgium

Posted 20 September 2013 - 02:51 PM

After correcting, I tried with Win8.1 RTM 6.3.9600
I got the message (normal): This source has not been tested... (I do not have the Win8.1 Preview you've tested).
The building finished successfully :good:

It started well in VmWare, but it is not really conclusive with Win8.1
I have the menu bbLean on a black wallpaper and unfortunately the application freezes.
I'll try later with Win8 even if I am happy with Win8PESE.



#19 boulcat

boulcat

    Member

  • Advanced user
  • 51 posts
  •  
    Belgium

Posted 20 September 2013 - 07:05 PM

With Win8, it works better
I do not have the wallpaper, but the apps works.

2 3 tricks noted at first sight:
no wifi for now, maybe PeNetwork can help, I do not know.
For Opera, it would be good to remove the request for updated.
I do not see the interest of 2 defragmenters.
Good continuation :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users