无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 132328|回复: 477

[01-01-2008更新]: 用VistapeBuilder 011打造最新的VistaPE 2.0

[复制链接]
发表于 2006-12-20 13:10:24 | 显示全部楼层 |阅读模式
[01-01-2008]: VistapeBuilder 011 (2008年元旦版) 已经整理完成,现在发放出来,VPEBuilder_011.rar (29,646,137 bytes)已经上传到无忧zhaohj提供的FTP2。这个版本属纯净核心版,不带程式包,采用Vista的Explorer SHELL和MMC,配备了磁盘管理和计算机管理,有网络支持,内置全能管理器(Total Commander),图形介面的 ImageX , DiskPart 和 BootSect。我特别为它编写了脚本,可从程式文件夹,PROGRAMS.WIM或者网络上共享程式文件夹挂入外置程式,并更新桌面,程式菜单和快速登陆栏的图标。因为我的日常语言是英语,菜单都是用英语编写的,没有时间翻译成中文了。这次放出VistaBuilder 011,主要是方便有中等技术水平或以上的人作研究,或者自己打造合用的Windows PE 2.0,所以我不准备提供成品了。假如你需要更多VistaPE的功能,脚本或者驱动,你可以到VistaPE的官方网页下载:
http://www.vistape.net/download.html

下面是VistapeBuilder 011的英文使用说明:

To Build a VistaPE 2.0 CD from a Microsoft Windows Vista DVD :

1.  Decompress VPEBuilder_011.rar. Put the main folder and its content onto the root of your HDD.  e.g. C:\VistaPE
2.  Run C:\VistaPE\WinBuilder.exe
3.  Click on the Paths tab, input the Source directory where your Vista DVD is located. e.g. F:\sources\LRMCFRE_CN
4.  Review and edit the Target directory and the output directory of the ISO File.
5.  Review contents under the Scripts tab and make changes if necessary.
6.  If you build the VistaPE from a Vista DVD of Simplified Chinese version, use "full" Copy Files under Build scripts.
7.  Vista Explorer was set as the default shell in the configuration. Total Commander was added to PEShell as well.
8.  VistaPE Loader v010 (Older Version) was used in the Finalize 6-PostConfig stage because it is more reliable than v011.
9.  When you are ready to go, click on the the Play button (the 3rd at top right corner)to start building your VistaPE.
10. A VistaPE.iso is to be generated under C:\VistaPE\ISO
11. Burn VistaPE.iso onto a CD or use Virtual Machine to test your VistaPE.

(Scripts have been tested on English and Simplified Chinese version of Microsoft Windows Vista DVD.)

khauyeung
01-01-2008

Credits are given to:
NightMan for his VistaPE project (http://www.vistape.net/vistape.html)
Nuno Brito for his WinBuilder (http://www.boot-land.net/)


[12-25-2007]: VistaPE的稳定的版本已经发展到010,测试版则是011。我用011版本调教和制作成功了最新的VistaPE英文成品,先发三张图片,VistapeBuilder在整理完成后再放出来。

用011版本制作的VistaPE:

VistaPE 最新的011版本

VistaPE 最新的011版本


Vista Explorer的外壳 + MMC的计算机和磁碟管理:

Vista Explorer外壳加 MMC

Vista Explorer外壳加 MMC


ImageX, Diskpart和Bootsect的图介面:

ImageX,Diskpart和Bootsect的图型介面

ImageX,Diskpart和Bootsect的图型介面



[3-11-2007]: 新的VistapeBuilder 默认以Explorer作外壳(Shell), 并具有齐全的桌面,快登栏和开始菜单连结图标。仍然使用PEShell作为外壳转换器,以便选择其他外壳如bsexplorer。而新的BSExplorer外壳亦更显美观大方。PENetCfg已经原作者为WinPE 2.0而作出改进,网络支持更为完善了。新的FBWF服务(在光盘用虚拟空间写临时文件)大小设定为64MB,如果计算机有足够的内存,我们将有更多写空间可用。bsexplorer脚本有开关选择是否使用中文介面,默认用中文。Standard-7-Finalizing脚本有开关选择是否打包成boot.wim在Ramdrive运行(否则在光盘直接运行),默认是打包。文件夹Projects\VistaPE\Build\windows\system32下面有两只文件,lnk_chi.cmd和lnk_eng.cmd,分别用来控制VistaPE中英文介面的桌面,快登栏和开始菜单连结的生成,如有需要请自行编辑修改。

我把这个版本正名为VistapeBuilder_SP1a,已经上传到无忧zhaohj1的FTP里面,放在\khauyeung\VistapeBuilder SP1a的文件夹下面。有需要的话自行下载。另外你也可以在下面地址下载到VistapeBuilder和用它建造好的成品:

1  VistapeBuilder_SP1a.rar (制造工具, 28MB): http://www.sendspace.com/file/n81sr0
2. VistaPESP1a_CN.iso (中文成品, 130MB): http://www.sendspace.com/file/kkf7sj
3. VistaPESP1a_EN.iso (英文成品, 130MB): http://www.sendspace.com/file/ar0gge

因为加入了不少东西. 我本来不想发更改补钉的,怕容易出错。不过为了方便一些知道来龙去脉的高手,还是做了一个,要是文件不全的话,就请下载个完整的VistapeBuilder_SP1a.rar吧:

VistapeBuilderSP1a_Patch.part1.rar (390.63 KB, 下载次数: 6460)
 楼主| 发表于 2006-12-20 13:15:26 | 显示全部楼层
更多图片:

[ 本帖最后由 khauyeung 于 2006-12-28 07:41 AM 编辑 ]

2. 全面支持中文显示和输入

2. 全面支持中文显示和输入

3. 采用A43资源管理器

3. 采用A43资源管理器
回复

使用道具 举报

 楼主| 发表于 2006-12-20 13:19:53 | 显示全部楼层
更多图片:

[ 本帖最后由 khauyeung 于 2006-12-28 07:45 AM 编辑 ]

4. 也可使用英文bsexplorer做外壳l

4. 也可使用英文bsexplorer做外壳l

5. 支持网络和网页浏览

5. 支持网络和网页浏览
回复

使用道具 举报

发表于 2006-12-20 13:22:58 | 显示全部楼层
虽然短时间里不会弄,但还是要顶!
回复

使用道具 举报

发表于 2006-12-20 13:24:34 | 显示全部楼层
支持一下。
回复

使用道具 举报

发表于 2006-12-20 13:41:40 | 显示全部楼层
作出来的体积多少?呵呵
回复

使用道具 举报

发表于 2006-12-20 13:42:33 | 显示全部楼层
希望大家把精力转移到pe 2.0 进行新一轮的精简! 因为据说2.0和1.0的硬件要求是一样的!
回复

使用道具 举报

 楼主| 发表于 2006-12-20 13:46:14 | 显示全部楼层
125MB的ISO,120MB的boot.wim,可以运行于256MB RAM上面,最好有320MB RAM或者以上。

[ 本帖最后由 khauyeung 于 2006-12-27 03:48 AM 编辑 ]
回复

使用道具 举报

发表于 2006-12-20 13:51:25 | 显示全部楼层
原帖由 zts59 于 2006-12-20 01:41 PM 发表
作出来的体积多少?呵呵


嘿嘿,出乎想象的小!
回复

使用道具 举报

发表于 2006-12-20 14:14:40 | 显示全部楼层
原帖由 khauyeung 于 2006-12-20 01:10 PM 发表
Click on the Paths tab, input the Source directory where your Vista DVD is located. e.g. Q:\ ...


居然不用解开那个大大的install.wim ?我原本想解开再弄!现在好了。

谢谢khauyeung,给Vista加Shell是你教我的,老师好!

WinBuilder0.52已经上传到无忧的FTP里了,在civiwu目录下。不知道khauyeung老师的插件支持哪个版本的?

[ 本帖最后由 Civiwu 于 2006-12-20 02:53 PM 编辑 ]
回复

使用道具 举报

发表于 2006-12-20 14:37:43 | 显示全部楼层
虽然太菜不会自己弄,E文也差,但还是来顶一下,期待各位大师的杰作。
回复

使用道具 举报

发表于 2006-12-20 14:54:12 | 显示全部楼层
昨天下载了,今天有空试一下,谢谢你的分享
回复

使用道具 举报

发表于 2006-12-20 14:57:45 | 显示全部楼层
搞不定,太多错误了.
回复

使用道具 举报

发表于 2006-12-20 15:14:47 | 显示全部楼层
原帖由 wolfteeth 于 2006-12-20 02:57 PM 发表
搞不定,太多错误了.


很多插件都不要选,因为没有相应文件。khauyeung 能否说明以下,最少要选择哪些插件?其它的让大家自选。因为如果插件选太多,这个WIM文件会很大。最好像l老毛桃的外置程序那样!
回复

使用道具 举报

发表于 2006-12-20 16:14:20 | 显示全部楼层
可惜我做的每次都是在出现鼠标后自动重启。
回复

使用道具 举报

发表于 2006-12-20 16:35:21 | 显示全部楼层
我怎么出错呢?
11.PNG
回复

使用道具 举报

发表于 2006-12-20 16:47:41 | 显示全部楼层
下来用用看!
回复

使用道具 举报

 楼主| 发表于 2006-12-20 21:25:32 | 显示全部楼层
原帖由 Civiwu 于 2006-12-20 04:35 PM 发表
我怎么出错呢?
...因为如果插件选太多,这个WIM文件会很大。最好像l老毛桃的外置程序那样!

VistaBuilder的原Build Script中有一脚本 Standard-3-Strip.script负责减肥,俄国人把全部中文的字体等等都减掉了。请参考我在顶楼的附件,里面我更改过的全部脚本可以缩短你要跑的弯路!

我使用的WinBuilder版本是052稳定版,也是原作所用版本。千万不要使用053 Beta版!

原作英文版里面所选的就是基本的选项,虽然不是最小的。放在Programs文件夹下面的全部插件是可以外置的,原作者就是这样做的。这样做的好处是可以缩小WIM文件(不会太多,因为WIM里面的文件是高度压缩的),坏处是不方便,在虚拟机测试时看不到Programs文件夹。反正这个大小的WIM不可能在256MB以下的RAM跑得动,我就宁可让WIM大个十来MB使取其方便了。

[ 本帖最后由 khauyeung 于 2006-12-21 04:56 AM 编辑 ]
回复

使用道具 举报

 楼主| 发表于 2006-12-21 04:15:55 | 显示全部楼层
最新消息:
我已经把整个VistapeBuilder打包成VistapeBuilder.rar并上传到无忧的FTP,放在khauyeung的文件夹里面,有需要的可自行下载。它包含了Builder本身,所有我用以产生成品的脚本和辅加系统文件,可供共享的所有程式夹和脚本,还有simsun.ttc字库,方便那些用英文Vista DVD (它的boot.wim不包含中文字库)生成VistaPE的人使用。我用VistapeBuilder在中文和英文版的源Microsoft Windows Vista DVD都做了测试,均能成功产生中文或者英文版的VistaPE。建议使用者先用我的脚本和自己的源DVD建造一只VistaPE,有条件的用虚拟机测试一下,成功了再开始修改脚本和加入你想要的东西,打做你自己的 WinPE 2.0.

(我会拷贝以上消息到顶楼,方便那些初访此帖的人!)
回复

使用道具 举报

发表于 2006-12-21 06:41:36 | 显示全部楼层
谢谢!可是搞不定。
回复

使用道具 举报

发表于 2006-12-21 08:24:38 | 显示全部楼层
原帖由 khauyeung 于 2006-12-20 09:25 PM 发表

放在Programs文件夹下面的全部插件是可以外置的,原作者就是这样做的。这样做的好处是可以缩小WIM文件(不会太多,因为WIM里面的文件是高度压缩的),坏处是不方便,在虚拟机测试时看不到Programs文件夹 ...


看到了,我用原作者程序生成的ISO中有2个WIM文件,一个是BOOT.WIM,另外一个是Programs.WIM.我感兴趣的是如何在启动到PE状态下如何自动Mount那个Programs.WIM?
回复

使用道具 举报

发表于 2006-12-21 08:49:36 | 显示全部楼层
支持一下, 很不错
回复

使用道具 举报

 楼主| 发表于 2006-12-21 08:53:40 | 显示全部楼层
原帖由 Civiwu 于 2006-12-21 08:24 AM 发表


看到了,我用原作者程序生成的ISO中有2个WIM文件,一个是BOOT.WIM,另外一个是Programs.WIM.我感兴趣的是如何在启动到PE状态下如何自动Mount那个Programs.WIM?

基于原作者程序,VistaPE起动时会运行PEShell.exe,PEShell.exe的主要功能是让使用人选择不同的外壳(Shell),但它在选择窗口跳出前会先执行作者预先设计的两个指定程式:第一个是wininit.exe用来启动网络,第二个是下面的mount.cmd,用来Mount那个Programs.WIM并把%ramdrv%\programs命名为y:。所以,假如你要外置Programs,你必须同时选用Ramdrv:

  1. @echo off
  2. title Searching device with programs...
  3. ::echo Starting services...
  4. ::net start FltMgr
  5. ::net start WiwFltr
  6. echo Finding files archive...
  7. mkdir %ramdrv%\programs
  8. for %%i in (x q w e r t y u i o p s d f g h j k l z c v n m) do (
  9.       if exist %%i:\programs.wim (
  10.          echo Trying mount %%i:\programs.wim read-write...
  11.          imagex.exe /mountrw %%i:\programs.wim 1 %ramdrv%\programs >nul
  12.          if not exist %ramdrv%\programs\program.cd (
  13.             if not exist %ramdrv%\program.cd (
  14.                echo Error. Trying mount %%i:\programs.wim read-only...
  15.                imagex.exe /mount %%i:\programs.wim 1 %ramdrv%\programs >nul
  16.             )
  17.          )

  18.       )
  19. )
  20. if exist %ramdrv%\programs\program.cd (
  21.    echo Creating link to program...
  22.    subst y: %ramdrv%\programs
  23.    echo All done
  24. ::   pause
  25.    exit
  26. )
  27. if exist %ramdrv%\program.cd (
  28.    echo Creating link to program...
  29.    subst y: %ramdrv%\
  30.    echo All done
  31. ::   pause
  32.    exit
  33. )

  34. ::imagex /unmount b:\programs
  35. if not exist %ramdrv%\programs\program.cd (
  36.    if not exist %ramdrv%\program.cd (
  37.       echo Finding program folder...
  38.       for %%i in (x q w e r t y u i o p s d f g h j k l z c v n m) do (
  39.           if exist %%i:\vistape.cd (
  40.             echo Creating link to program...
  41.             subst y: %%i:\programs
  42.           )
  43.       )
  44.    )
  45. )
  46. ::pause
复制代码
回复

使用道具 举报

发表于 2006-12-21 09:19:36 | 显示全部楼层
原帖由 khauyeung 于 2006-12-21 08:53 AM 发表

基于原作者程序,VistaPE起动时会运行PEShell.exe,PEShell.exe的主要功能是让使用人选择不同的外壳(Shell),但它在选择窗口跳出前会先执行作者预先设计的两个指定程式:第一个是wininit.exe用来启动网络,第二 ...


但PE2.0默认的系统盘(X:)默认是可写的(大概也是虚拟的),还是需要这个RAMDrive?

另外,我用你提供的插件成功制作了PE2.0,但网络好像还是不能用?如图:
00.png
回复

使用道具 举报

发表于 2006-12-21 10:05:24 | 显示全部楼层
希望能发个中文版PE2.0的上来
回复

使用道具 举报

 楼主| 发表于 2006-12-21 10:11:20 | 显示全部楼层
原帖由 Civiwu 于 2006-12-21 09:19 AM 发表


但PE2.0默认的系统盘(X:)默认是可写的(大概也是虚拟的),还是需要这个RAMDrive?

另外,我用你提供的插件成功制作了PE2.0,但网络好像还是不能用?如图:

你说的没有错,系统盘(X:)是可写的,它是基与FBWF (File Based Write Filter)原理的。但是,FBWF在没有对CacheThreshold做特殊处理的程况下,一般只会设定32MB的可写空间,假如我们把Programs.WIM 挂到系统盘(X:),很快就会填满。作者可能是想避免这程况而使用RAMDrive吧。

PENetCfg.exe由于是设计给BartPE使用,不错是会检查Factory.exe, NetCfgx或者BartPE的存在的。但是,我们是靠WinPE本身的wininit.exe来启动网络的,启动成功的话PENetCfg运行时根本就不需要再检查了,所以我没有遇到你的情况。你的情况看来是wininit.exe没能启动上网络引起的。会否是因为使用虚拟机的缘故?我用的虚拟机是VMWare 5.5.3,并把网卡虚拟为intel e1000,一切正常!假如你使用的是实机,应该就是网卡不在Vista支持之列所引至了。

顺带问一下,我在另外的贴子好像看到你成功把极品五笔输入法加入了VistaPE。以我所知道,Vista输入法的处理跟之前XP/2K3有很大不同,所以,我一直没能成功挂入极品五笔输入法。你是如何做到的?注册项应该如何处理?可否介绍一下?

[ 本帖最后由 khauyeung 于 2006-12-21 10:31 AM 编辑 ]
回复

使用道具 举报

发表于 2006-12-21 10:52:32 | 显示全部楼层
请教一下如何安装到硬盘上啊?
回复

使用道具 举报

发表于 2006-12-21 10:55:08 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2006-12-21 11:11:53 | 显示全部楼层
23楼的Mount.cmd代码倒数第6行:subst y: %%i:\programs,是不是错了?是否应该是“subst y: %ramdrv%\”?
执行此条命令老是提示出错:“找不到路径 f:\programs” (F是我的光驱盘符)
个人感觉这条命令有点多余?

[ 本帖最后由 Civiwu 于 2006-12-21 11:48 AM 编辑 ]
回复

使用道具 举报

 楼主| 发表于 2006-12-21 11:20:14 | 显示全部楼层
原帖由 agteng 于 2006-12-21 10:52 AM 发表
请教一下如何安装到硬盘上啊?

下面是你要的资料,是英文的,恕不翻译:
  1. Walkthrough: Boot Windows PE from Hard Disk
  2. This walkthrough describes how to boot Windows PE directly from a hard disk but not into RAM disk, which enables you to start a computer for the purposes of deployment or recovery.

  3. PrerequisitesTo complete this walkthrough, you need the following:

  4. A technician computer that provides all the tools and source files. For more information, see Building a Technician Computer.


  5. Step 1: Create a Bootable Windows PE RAM MediaSelect one of the options below and follow the instructions for building a bootable Windows PE RAM media. Make sure you include ImageX with your image. After you create your bootable media, continue to the next step.

  6. Walkthrough: Create a Bootable Windows PE RAM Disk on CD/ROM


  7. Walkthrough: Create a Bootable Windows PE RAM Disk on UFD


  8. Step 2: Prepare the Hard DriveIn this step, you boot the new computer with your Windows PE media and format the hard drive.

  9. On the new computer, insert your Windows PE media and restart the computer.

  10. Windows PE will start and launch a Command Prompt window.


  11. Note:  
  12. If the hard drive contains an active partition, you must override the boot order to boot from the CD/DVD drive. During initial boot, select the appropriate function key to override the boot order. If this is a new computer, the hard drive will be unformatted, so you can skip this step.



  13. At a command prompt, format the hard drive by using DiskPart. Windows PE requires an active partition with a size equal to or greater than the size of your Windows PE image. For example,


  14. diskpart
  15. select disk 0
  16. clean
  17. create partition primary size=<insert size>
  18. select partition 1
  19. active
  20. format fs=ntfs
  21. exit

  22. Step 3: Copy Windows PE Files to the Hard DiskIn this step, you copy Windows PE resource files to the hard drive from your bootable media. You need ImageX to apply the Boot.wim to the hard drive. This example assumes the hard drive is blank.

  23. At a command prompt, use ImageX to apply the Windows PE image (Boot.wim) from your bootable media to the hard drive. For example,


  24. d:\imagex /apply d:\sources\boot.wim 1 c:


  25. Where d: is your bootable Windows PE media that contains ImageX and a Windows PE image.


  26. Copy the \boot folder from your bootable media to the root of your hard drive. For example,


  27. xcopy d:\boot\*.* /e /f c:\boot\


  28. Copy the Bootmgr file (no extension) from your bootable media to the root of your hard drive. For example,


  29. copy d:\bootmgr c:


  30. Delete the boot configuration data (BCD) file that you copied from your bootable media. (You will create a new one in the next step.) For example,


  31. del c:\boot\bcd

  32. Step 4: Configure BCD StoreIn this step, you will create a new boot configuration file called BCD by using BCDEdit. BCD replaces Boot.ini. BCDEdit is a command/line tool designed to manage BCD stores. BCDEdit is available in Windows PE and Windows Vista. For example,

  33. Bcdedit /createstore c:\temp\BCD
  34. Bcdedit /store c:\temp\BCD /create {bootmgr} /d "Boot Manager"
  35. Bcdedit /store c:\temp\BCD /set {bootmgr} device boot
  36. Bcdedit /store c:\temp\BCD /create  /d "WINPE" /application osloader    <--- This command will return a GUID value
  37. Bcdedit /import c:\temp\BCD

  38. The last command returns a GUID value. Substitute GUID with this value in the following examples.

  39. Bcdedit /store c:\boot\BCD /set GUID osdevice partition=c:
  40. Bcdedit /store c:\boot\BCD /set GUID device partition=c:
  41. Bcdedit /store c:\boot\BCD /set GUID path \windows\system32\boot\winload.exe

  42. Bcdedit /store c:\boot\BCD /set GUID systemroot \windows

  43. Bcdedit /store c:\boot\BCD /set GUID winpe yes
  44. Bcdedit /store c:\boot\BCD /set GUID detecthal yes

  45. Bcdedit /store c:\boot\BCD /displayorder GUID /addlast


  46. Your computer is now ready to boot Windows PE directly from the hard disk.
复制代码


上面内容涉及的GUID是由代码的上半部分倒数第二行执行后根据硬件产生的,不同的硬件会得出它的唯一的(Unique)GUID,以我的虚拟机为例子,它产生出的GUID是{466f5a88-0af2-4f76-9038-095b170dc21c}。接下来要打的代码就应该是:


  1. Bcdedit /store c:\boot\BCD /set {466f5a88-0af2-4f76-9038-095b170dc21c} osdevice partition=c:
  2. Bcdedit /store c:\boot\BCD /set {466f5a88-0af2-4f76-9038-095b170dc21c} device partition=c:
  3. Bcdedit /store c:\boot\BCD /set {466f5a88-0af2-4f76-9038-095b170dc21c} path \windows\system32\boot\winload.exe
  4. Bcdedit /store c:\boot\BCD /set {466f5a88-0af2-4f76-9038-095b170dc21c} systemroot \windows
  5. Bcdedit /store c:\boot\BCD /set {466f5a88-0af2-4f76-9038-095b170dc21c} winpe yes
  6. Bcdedit /store c:\boot\BCD /set {466f5a88-0af2-4f76-9038-095b170dc21c} detecthal yes
  7. Bcdedit /store c:\boot\BCD /displayorder {466f5a88-0af2-4f76-9038-095b170dc21c} /addlast
复制代码

提醒一下,原文基于的WinPE 2.0,它的winload.exe是位于\windows\system32\winload.exe的,在我们的VistaPE里面它的新位置是\windows\system32\boot\winload.exe,所以相应的path改动就变成了上列的:

Bcdedit /store c:\boot\BCD /set {466f5a88-0af2-4f76-9038-095b170dc21c} path \windows\system32\boot\winload.exe

[ 本帖最后由 khauyeung 于 2006-12-25 11:18 PM 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-4-16 19:30

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表