Jump to content











Photo
* * * * * 4 votes

Make-PE3 Program to Create Portable Windows 7 PE

7pe tutorial

  • Please log in to reply
867 replies to this topic

#501 nu852

nu852

    Member

  • Members
  • 52 posts
  •  
    Hong Kong

Posted 30 November 2010 - 08:21 AM

Can you share the files and settings that make it booting faster from USB-flash drive.

Many zh-cn win7pe use the method as following (Just on my guess) :

1. the boot.wim contain the essential file to boot up to pe loader phrase.
And use the pecmd.exe as pe loader.
In registry, setup -> pecmd.exe load pecmd.ini (NOT winpeshl.exe)
They marks this stage as (1st core). And the essesntial file occupies around 100 MB.

2. Then, the pecmd.ini contains commands to unzip essential file for explorer.
They marks this stage as (2nd core).
After unzip the essential file for explorer, the pecmd.ini call the explorer.exe.

3. Other files for basic operation, such as MMC, MSIInstall, Network Drivers, Wireless Network Drivers are unzipped after explorer running. Often, they put such Drivers outside the boot.wim, and load the driver only if user need it.

If the reading speed of booting media is slow, such as cdrom, usb 1.1, the above method reduce much of time in booting up. It is because the bottleneck is on reading boot.wim. After reading boot.wim, the time required is no significance difference.

Edited by nu852, 30 November 2010 - 08:25 AM.


#502 captain-midnight

captain-midnight

    Newbie

  • Members
  • 26 posts
  • Interests:Tinkering and tweaking, everything and anything in a voyage of life long discovery.
  •  
    United Kingdom

Posted 30 November 2010 - 08:56 AM

wimb - v3.4 looks really good (Explorer build) - thanks.

Due to wanting to use the build as a secure build, is there a quick/easy way of removing the flash intergration during the build process? (currently looking through the various script files to try and find the flash references)

I know for alot of people it would have been a great addition, but it's too insecure and open to exploits imho for the base build.

#503 Zetup-EXE

Zetup-EXE

    Member

  • Members
  • 56 posts
  • Location:Germany

Posted 30 November 2010 - 03:38 PM

@wimb: the idea of captain-midnight is quite good, because i found out why the internet explorer hung up on websites with flash. if the audioservice isn't started although it's set to automatic the ie hung up. starting that service and the ie will work fine on all sites.

cu..
Zetup-EXE

#504 wimb

wimb

    Gold Member

  • Developer
  • 2,178 posts
  •  
    Netherlands

Posted 30 November 2010 - 05:49 PM

Many zh-cn win7pe use the method as following (Just on my guess) :

Thanks for your interesting description.

In xuantian ISO the driver cab files are indeed located outside boot.wim
but as far as I know the steps 1 and 2 are not separated in his case.
But as you say it is mainly the size of boot.wim that is determing the loading time of the boot image,
but only for the case that loading is slow e.g. boot from USB with slow BIOS or loading from CD or from large USB-drive.
It does not seem to me that pecmd is doing something magic with the boot speed, it is just a way to organize things.

I checked the boottime for xuantian iso booting from my portable USB-HDD Hitachi on machine with slow BIOS.
In that case boot.wim is about 300 MB and loading files takes 8 minutes and booting with install of drivers takes another 4 minutes.
So that is not better than obtained earlier for my 7pe_x86.iso of 300 MB

On slow BIOS I need 6.5 minute to load the image and then can boot again in 1.5 minute.

A disadvantage of the approach of xuantian, is that in this case the harddisk of the host computer is used to extract files for install of drivers.
In general creating such C:\DrvTemp folder is unwanted for rescue PE systems, where you don't like to disturb anything in the harddisk of the host.

_SUB pe3ext

	 TEAM DEVI $.\PE3\DRV3\WNIC.CAB,,C:\DrvTemp|FILE C:\DrvTemp

	 TEAM DEVI $.\PE3\DRV3\VCARD.CAB,,C:\DrvTemp|FILE C:\DrvTemp

	 TEAM DEVI $.\PE3\DRV3\ACARD.CAB,,C:\DrvTemp|FILE C:\DrvTemp

	 EXEC .\PE3\MEDIA.EXE

_END


#505 wimb

wimb

    Gold Member

  • Developer
  • 2,178 posts
  •  
    Netherlands

Posted 30 November 2010 - 05:56 PM

Due to wanting to use the build as a secure build, is there a quick/easy way of removing the flash intergration during the build process?


I think you might just remove the folder Macromed in PE3_mod\PE3_add\x86\Windows\System32
and additionally disable PE3-MACROMED_FLASH.reg in folder PE3_mod\PE3_reg\x86\plugins
by changing the extension from .reg into .txt

@Zetup-EXE

Use of Adobe Flash Player plugin requires working Audio driver, which is assured by auto start of Driver Fix.

Since version 3.2 See post #422
http://www.boot-land...?...1852&st=420

#506 nu852

nu852

    Member

  • Members
  • 52 posts
  •  
    Hong Kong

Posted 30 November 2010 - 07:31 PM

It does not seem to me that pecmd is doing something magic with the boot speed, it is just a way to organize things.

yes, the way to organize things is not relative to the pecmd.exe.
I means using pecmd to create shortcut on Desktop, StartMenu & Taskband is
very convenience.

But as you say it is mainly the size of boot.wim that is determing the loading time of the boot image,
but only for the case that loading is slow e.g. boot from USB with slow BIOS or loading from CD or from large USB-drive.

Yes, It is arguable that the way to organize thing is just helpful for such slow BIOS only. Even in Chinese WinPE forum, some people take an opposite stand.

In general creating such C:\DrvTemp folder is unwanted for rescue PE systems, where you don't like to disturb anything in the harddisk of the host.

In my win7pe created by make_pe3.cmd, I use the commands as follows:
_SUB InstallCard     TEAM DEVI $\Driver\Network.CAB,,X:\Temp|FILE X:\Temp     TEAM DEVI $\Driver\Sound.CAB,,X:\Temp|FILE X:\Temp     TEAM DEVI $\Driver\Video.CAB,,X:\Temp|FILE X:\Temp_END
I just don't know why the creators of zh-cn win7pe tend to use harddisk.
Many users have complained about it in Chinese winpe forum.

#507 wimb

wimb

    Gold Member

  • Developer
  • 2,178 posts
  •  
    Netherlands

Posted 30 November 2010 - 08:29 PM

I'm been using xuantian's way for 32bit for a couple months ago.
Just tried with your one and it take about 10 minutes to boot. And I've changed to pecmd loader and quite faster 20 sec to boot and 35 sec to completed scanning all net + video drivers. No luck with IE8 and WMP although.

Booting in 10 min from USB-stick sounds quite normal for the case of slow BIOS.
It seems to me that using pecmd cannot be the cause for reducing the boot time from 10 min into 20 sec.

The 20 sec would be a normal boot time for booting the ISO from grub4dos menu on HDD

Can you explain or give details about the way you are booting in both cases ?

#508 Aye Htay

Aye Htay

    Frequent Member

  • Advanced user
  • 163 posts
  •  
    Myanmar

Posted 30 November 2010 - 09:30 PM

Hi Wimb,

I'll send my one on weekends. You can compare and contrast.

ah

#509 captain-midnight

captain-midnight

    Newbie

  • Members
  • 26 posts
  • Interests:Tinkering and tweaking, everything and anything in a voyage of life long discovery.
  •  
    United Kingdom

Posted 01 December 2010 - 09:01 AM

Will give your advice on removing flash in IE a run through today.

Thanks again wimb.

#510 skyide

skyide

    Frequent Member

  • Advanced user
  • 194 posts

Posted 01 December 2010 - 09:36 AM

How about you put a check box in your main dialog "Adobe Flash Support" and this way everyone will be happy? :cheers: It shouldn't be too hard :cheers:

#511 nu852

nu852

    Member

  • Members
  • 52 posts
  •  
    Hong Kong

Posted 02 December 2010 - 04:28 AM

@wimb

According to the NetFramework v2.0 Script of Leopard v1 with Sp3 "Max_Real Qnx", I create the NetFramework v2.0 plugin for Make_PE3 (for x86 explorer only). Thanks "Max_Real Qnx".
NetFramework v2.0 plugins for Make_PE3 v3.4

The KeePass that requires NetFramework v2.0 can run on the result iso. And the PowerShell v1.0 can run as well.

However, Data Access is unusable. And I think the NetFramework v2. 0 is not in full effectiveness.

Perhaps, some files may be deleted from the NetFramework Folders. But I don't know which files could be deleted or not.

#512 wimb

wimb

    Gold Member

  • Developer
  • 2,178 posts
  •  
    Netherlands

Posted 02 December 2010 - 06:58 AM

According to the NetFramework v2.0 Script of Leopard v1 with Sp3 "Max_Real Qnx", I create the NetFramework v2.0 plugin for Make_PE3 (for x86 explorer only). Thanks "Max_Real Qnx".
NetFramework v2.0 plugins for Make_PE3 v3.4


Very GOOD ;)

A nice example of using plugins.
For testing I would like to know what apps are suitable
as testing programs for this NetFramework v2.0 plugin.

Can you give an indication of the increase in size of the 7 PE ISO for this case.

:)

#513 nu852

nu852

    Member

  • Members
  • 52 posts
  •  
    Hong Kong

Posted 02 December 2010 - 09:04 AM

Can you give an indication of the increase in size of the 7 PE ISO for this case.

for 7pe_x86_exp, boot.wim around 307 MB.
for 7pe_x86_exp (NF20 - index 1 of install.wim), boot.wim around 444 MB.
for 7pe_x86_exp (NF20 - index 5 of install.wim), boot.wim around 471 MB.
If using index 5 of install.wim, it should be manually copying files from folder '5' to mounting directory in the middle of make_pe3.cmd running.

For testing I would like to know what apps are suitable
as testing programs for this NetFramework v2.0 plugin.

Testing NetFramework v2.0
Inside the TestNF20.rar,
TryNet20_Console.exe shows "Hello World!" in console.
TryNet20_Winform.exe shows "Hello World!" after press button "show hello".
TryNet20_MDB.exe shows ERROR when press button "Get Data", since Data Access fails! (TryNet20_MDB.exe should be run successfully in Windows 7)

KeePass v2.x requires NetFramework v2.0,
WinMD5 requires NetFramework (don't know the version, it should be v2.0 or lower).
Both KeePass v2.x & WinMD5 successfully run on resulted ISO created by NF20 plugins.

Powershell v1.0 in the resulted ISO successfully run also.

#514 wimb

wimb

    Gold Member

  • Developer
  • 2,178 posts
  •  
    Netherlands

Posted 02 December 2010 - 01:09 PM

Testing NetFramework v2.0

Thanks for size info and test apps.

It will be intersting to try NetFramework 2.0 plugin
and I am sure it will be a desired addon for many users.

Thanks for sharing.

:cheers:

#515 wimb

wimb

    Gold Member

  • Developer
  • 2,178 posts
  •  
    Netherlands

Posted 02 December 2010 - 02:44 PM

I have tested the NetFramework v2.0 plugin for Make_PE3

TryNet20_Console.exe is nicely showing "Hello World"
Unfortunately the other mentioned apps did NOT yet work for me.

Any idea what might be done to improve performance ?

Posted Image

#516 nu852

nu852

    Member

  • Members
  • 52 posts
  •  
    Hong Kong

Posted 03 December 2010 - 03:12 AM

I have tested the NetFramework v2.0 plugin for Make_PE3

TryNet20_Console.exe is nicely showing "Hello World"
Unfortunately the other mentioned apps did NOT yet work for me.

Any idea what might be done to improve performance ?

Previous NetFramwork plugin has some mistake.
The mistake is about file extraction and language related.

The result of new NetFramwork plugins (20101203).
(I have tested both en-us and zh-tw in real machine)
Posted Image

NetFramework20 plugins for v3.4 (20101203)

Post the test tools here again.
Test NF20

#517 wimb

wimb

    Gold Member

  • Developer
  • 2,178 posts
  •  
    Netherlands

Posted 03 December 2010 - 05:22 AM

NetFramework20 plugins for v3.4 (20101203)

Post the test tools here again.
Test NF20


This version is working OK :cheers:

For MD5 verify I think WinMD5.exe is rather slow as compared to
Nero MD5 Verifier.exe which does not need .NET

Posted Image

Thanks a lot for this NetFramework v2.0 plugin for Make_PE3.

Do you allow me to make an 7-zip SFX and add your plugin to Make_P3 folder at MediaFire,
so that it is available at same download location as Make_PE3.exe ?

:cheers:

#518 nu852

nu852

    Member

  • Members
  • 52 posts
  •  
    Hong Kong

Posted 03 December 2010 - 05:46 AM

Do you allow me to make an 7-zip SFX and add your plugin to Make_P3 folder at MediaFire,
so that it is available at same download location as Make_PE3.exe ?

No Problem!
Just do it. :cheers:

#519 wimb

wimb

    Gold Member

  • Developer
  • 2,178 posts
  •  
    Netherlands

Posted 03 December 2010 - 06:00 AM

No Problem!
Just do it. :cheers:

Thanks.

:cheers:

#520 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5,013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 03 December 2010 - 05:23 PM

Hi nu852,
thanks for .net test tools :cheers:

#521 Aye Htay

Aye Htay

    Frequent Member

  • Advanced user
  • 163 posts
  •  
    Myanmar

Posted 05 December 2010 - 05:15 PM

,,,,,,,,,,,,,,,,,,,,NetFramework20 plugins for v3.4 (20101203)

Post the test tools here again.
Test NF20


Thank you. It works fine for me.

@wimb

I'll send my one on weekends. You can compare and contrast.

ah


As above post in #508, I think it is non sense to post all files here.
I can't explain the mechanicm of pecmd.exe more than the menual.

@nu852
So I'try to translate as my best and any errors and mismatches, could you fix into it, as you are a Chinese, please?

This is a translated pecmd.doc.

pecmd.ini is the same as in its origin as follow.
TEAM EXEC winpeshl|INIT I|EXEC UX

SHEL %SystemRoot%\explorer.exe

EXEC !WIMTOOL /REG /M

CALL $%WinDir%\System32\Macromed\Flash\Flash10k.ocx

CALL $%WinDir%\System32\SysFxUI.dll

CALL $inetcomm.dll

FORX *.ocx,regocx,0,CALL $%regocx%

REGI HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Audit\!

EXEC @!=netcfg.exe -e -c p -i MS_NDISWAN

EXEC @!=netcfg.exe -e -c p -i MS_PPPOE

EXEC %ProgramFiles%\PENetwork\PENetwork.exe

REGI HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.cab\!

REGI HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinPE\SkipWaitForNetwork=#1

LINK %Desktop%\Network Settings,%CurDir%\ncpa.cpl,,%CurDir%\Skins\net.ico,Configure or start a local connection IP broadband connection

LINK %Desktop%\Broadband (PPPOE),%ProgramData%\Microsoft\Network\Connections\Pbk\rasphone.pbk,,%CurDir%\Skins\adsl.ico,Start a broadband connection

TEAM EXEC X:\|exec ctfmon|LOAD EnvSet.wcs

I think more people can use it and can create more effecient and effected powerful tool in Eng version. Because they had anaylised the details of 7peldr loader from YahooUK HERE.

@wimb anything wants to know, please PM me. Hope you like it too.

For your convenience, HERE is pecmd files pack.

ah

Edited by Aye Htay, 05 December 2010 - 05:22 PM.


#522 nu852

nu852

    Member

  • Members
  • 52 posts
  •  
    Hong Kong

Posted 06 December 2010 - 05:12 AM

@nu852
So I'try to translate as my best and any errors and mismatches, could you fix into it, as you are a Chinese, please?

My English is not enough to translate pecmd manual into english.
Moreover, I only use few commands of total 99 commands of pecmd in my win7pe.
I think I am not able to help you on this translation job. Sorry! :worship:

Perhaps, I can tell you the pecmd commands that I know.

#523 wimb

wimb

    Gold Member

  • Developer
  • 2,178 posts
  •  
    Netherlands

Posted 06 December 2010 - 06:55 AM

This is a translated pecmd.doc.

@wimb anything wants to know, please PM me. Hope you like it too.

For your convenience, HERE is pecmd files pack.

Thanks for all info on pecmd :worship:
I think the English translation is good enough to use it
in combination with the given example and the given pecmd files pack.

Allthough pecmd can be interesting for oranizing thinghs e.g. creating Desktop shortcuts,
but I don't think it has so much influence on the boot speed.
The change of 10 min into 20 sec that you described cannot be attributed to pecmd I think.
Also xuantian iso which uses pecmd is booting not faster for me from USB-drive on machine with slow BIOS.
It would be interesting for me to test your fast booting ISO on my machine.
Would it be possible to Upload the ISO somewhere ?

:worship:

#524 wimb

wimb

    Gold Member

  • Developer
  • 2,178 posts
  •  
    Netherlands

Posted 06 December 2010 - 09:58 AM

The result of new NetFramwork plugins (20101203).

The NetFramework plugins has some disadvantages:
- folder assembly\NativeImages_v2.0.50727_32 is quite large about 548 MB
- when Make_PE3 folder is not in root of drive, then assembly\GAC_MSIL is incompletely copied
- at present the plugin overrules the program Make_PE3.cmd and the filelist WIN7_add_explor.txt
and is consequently not compatible with future program development
- at present the plugin does not work correctly with Make_PE3.exe
- at present after adding the plugin, one cannot easily make version without NetFrame support
- the NF20 registry in plugins folder without adding NF20 files is giving error mscories is missing

In order to overcome these drawbacks, I have made a slightly different approach:
- The NetFramework plugin is build-in in the program, and can be switched on and off
- The extra files needed for NetFramework are listed in a separate file win7_add__nf20.txt
- The NF20 registry is not in plugins folder, but is added by the program only when NetFramework is Selected
- The folder assembly\NativeImages_v2.0.50727_32 is omitted (this seems to work quite well)
- Make_PE3.exe must be extracted to Root of drive, needed for correct processing of assembly\GAC_MSIL folder

:worship:

#525 wimb

wimb

    Gold Member

  • Developer
  • 2,178 posts
  •  
    Netherlands

Posted 06 December 2010 - 11:36 AM

=
*** Update of Make_PE3 package to Create Portable Windows 7 PE ***

  • Added - amd64 Media version with Windows Media Player, NetCenter, Wireless Connect, PPPoE
  • Added - x86 version has .NET Framework support as selectable option
  • Changed - Adobe Flash Player is selectable option
  • Changed - Media version instead of IE8 version and having Optimized filelist to reduce size
  • Changed - Program Version - latest version is now 3.5

Thanks to nu852 for making .NET Framework plugin, now being replaced and build-in in Make_PE3
http://www.boot-land...?...1852&st=500
See posts #516 and #524

- Download - Make-PE3
It is required to extract Make_PE3.exe to the root of your drive, needed because of .NET Framework support

- Download ATI Video Driver from http://driverpacks.n...verpacks/latest
Add your nt6 video driver folder to Make_PE3\PE3_mod\WIN7_drivers\x86
DriverPack Vista (x86) Graphics A - folder G_A\ATI\4 is used by me as Win 7 PE x86 video driver

For nvidia video driver read here especially post #353 of hemmes for Nvidia Geforce 8400M GS
http://www.boot-land...?...1852&st=340

- Download VLC Media Player for PStart menu from
http://portableapps....eo/vlc_portable
Run VLCPortable_1.1.4.paf.exe
Browse to your \Make_PE3\MULTI\PStart\Progs folder
Install in your \Make_PE3\MULTI\PStart\Progs\VLCPortable folder

Copy PStart folder and wallpaper.jpg as normal from Make_PE3\MULTI to root of HDD or USB boot drive.


:worship:





Also tagged with one or more of these keywords: 7pe, tutorial