无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
楼主: slore
打印 上一主题 下一主题

[原创] (2022-02-02 更新) Re:WIN10XPE - 从零开始构建的全功能PE

    [复制链接]
3661#
 楼主| 发表于 2020-4-17 01:48:03 | 只看该作者
本帖最后由 slore 于 2020-5-8 01:41 编辑

Theoven网站恢复了,对04.04版本引入的问题,进行了修正重新打包发布。


  • 修复 WIN7下老版本IE无法打开问题。
  • 修复 网络发现缺失的注册表项目,导致个别菜单无法显示问题。
  • 修复 电源图标显示不正确的问题。
  • 修复 App宏无法下载文件的问题。
  • 新增 【PE外置集】-【网络工具】- Chrome。

直接下载地址: https://lanzous.com/b00z5zy6b 密码: wbrls
直接下载地址: https://github.com/slorelee/wimbuilder2/releases/download/v2020.04.04.ebdf8304/WimBuilder2-Full.v2020-04-04.7z

WimBuilder2-Full.v2020-04-04.7z (49.65 Mb) MD5: MD5: 2a375637642824693d5239cc1a8a34b5
## WimBuilder2 v2020.05.05
这是一个常规更新。添加和改善了以下内容:

* 修复 WIN7下老版本IE无法打开问题。
* 修复 网络发现缺失的注册表项目,导致个别菜单无法显示问题。
* 修复 电源图标显示不正确的问题。
* 修复 App宏无法下载文件的问题。
* 新增 【PE外置集】-【网络工具】- Chrome。
* 新增 【组件】-【Windows 附件】- 写字板。
* 修复 开始菜单中系统目录及程序快捷方式显示英文的问题。
* 改善 PPPoE支持。支持通过命令行进行拨号连接。
* 修复 【PE外置集】将部分程序复制到错误位置的问题。
* 新增 【设置】-【模式】选项。
       入门模式 - 刚开始使用本软件。将隐藏一些复杂选项,使得选项友好,避免因选项设定不正确导致失败。
       专家模式 - 清楚如何使用本软件及各选项含义。将提供更多选项。
       开发模式 - 清楚本软件的结构及代码, 将提供面向开发者的选项。
* 修复 在非简体中文系统环境中使用时,无法构建的问题。
* 修复 zh-TW语言镜像构建后部分界面显示乱码问题(强制保留mingliu字体)。
* 修复 个别定制节点在非中文环境下,总是显示文件夹名的问题。
* 改善 禁用驱动数字签名验证处理,以支持新的Windows版本。


回复

使用道具 举报

3662#
发表于 2020-4-17 05:40:54 | 只看该作者
slore 发表于 2020-4-17 01:48
Theoven网站恢复了,对04.04版本引入的问题,进行了修正重新打包发布。

看看此版0404更新,是否WIFI能去掉第三方了。跟新前的0404 WIFI,32位WIN10 1909,不起作用。还是需要NETWORK第三方的那个来帮忙 才能WIFI登录
回复

使用道具 举报

3663#
发表于 2020-4-17 07:15:57 | 只看该作者
大佬,能不能弄个修改wim的页面。
每次都生成,不太稳定啊

点评

修改wim这个步骤, 可以使用,提取文件, 和复制reg的宏, 主要是这个, 因为我机器好像每次生成的成功率不太稳定。  详情 回复 发表于 2020-4-17 10:34
意思应该是能有个挂载打开生成的wim文件夹,方便替换文件吧  详情 回复 发表于 2020-4-17 09:50
啥意思?手动模式?  发表于 2020-4-17 09:10
回复

使用道具 举报

3664#
发表于 2020-4-17 09:50:28 | 只看该作者
黑中见白 发表于 2020-4-17 07:15
大佬,能不能弄个修改wim的页面。
每次都生成,不太稳定啊

意思应该是能有个挂载打开生成的wim文件夹,方便替换文件吧

点评

[构建]里面,选择 手动卸载,直接操作X盘就行了啊。 话说所有修改都批处理化不好麽。  详情 回复 发表于 2020-4-17 10:14
回复

使用道具 举报

3665#
 楼主| 发表于 2020-4-17 10:14:07 | 只看该作者
泰立信 发表于 2020-4-17 09:50
意思应该是能有个挂载打开生成的wim文件夹,方便替换文件吧

[构建]里面,选择 手动卸载,直接操作X盘就行了啊。
话说所有修改都批处理化不好麽。
回复

使用道具 举报

3666#
发表于 2020-4-17 10:29:43 | 只看该作者
技术流,期待早日有成熟的作品
回复

使用道具 举报

3667#
发表于 2020-4-17 10:34:55 | 只看该作者
本帖最后由 黑中见白 于 2020-4-17 11:20 编辑
黑中见白 发表于 2020-4-17 07:15
大佬,能不能弄个修改wim的页面。
每次都生成,不太稳定啊
整理了一下思路:1二次修改boot。wim,修改wim这个步骤,可以使用,提取文件,
和复制reg的宏,
2 修改,_Factory_到z:/_Factory_
怎么改





回复

使用道具 举报

3668#
发表于 2020-4-17 10:48:44 | 只看该作者
本帖最后由 黑中见白 于 2020-4-17 17:26 编辑

咦,想起来,
就是挂载wim+运行main.bat
对,就是这样。
问题是要从ins。wim提取文件到pe。。。

点评

准备界面选择二次修改的wim,预设选择手动,勾选 手动卸载,构建打开的命令行窗口,就是你要的环境,可以直接敲命令,或者选择二次修改的补丁main. bat。也可以直接打开X盘复制,删除文件。  详情 回复 发表于 2020-4-17 11:47
回复

使用道具 举报

3669#
发表于 2020-4-17 10:58:31 | 只看该作者
期盼分享SlimPE(160MB或带net的260MB)
回复

使用道具 举报

3670#
 楼主| 发表于 2020-4-17 11:47:42 | 只看该作者
本帖最后由 slore 于 2020-4-17 11:49 编辑
黑中见白 发表于 2020-4-17 10:48
咦,想起来,
就是挂载wim+运行main.bat
对,就是这样。

准备界面选择二次修改的wim,预设选择手动,勾选 手动卸载,构建打开的命令行窗口,就是你要的环境,可以直接敲命令,或者选择二次修改的补丁main. bat。也可以直接打开X盘复制,删除文件。
做完了2次修改,实用工具里面有个  卸载按钮,点下就会提交修改打包。

点评

nb。。。  详情 回复 发表于 2020-4-17 11:56
回复

使用道具 举报

3671#
发表于 2020-4-17 11:56:20 | 只看该作者
本帖最后由 黑中见白 于 2020-4-17 12:22 编辑
slore 发表于 2020-4-17 11:47
准备界面选择二次修改的wim,预设选择手动,勾选 手动卸载,构建打开的命令行窗口,就是你要的环境,可以 ...

nb。。。//
请问修改Factory文件夹到z盘,
set "Factory=Z:\WimBuilder2\_Factory_"
set "ISO_DIR=Z:\WimBuilder2\_ISO_"

已经修改了这2个,请问还需要哪里
日志显示
文件名、目录名或卷标语法不正确。
[WIN10XPE] --- MOUNT [Z:\WimBuilder2\_Factory_\target\WIN10XPE\winre.wim:1] -* [Z:\WimBuilder2\_Factory_\target\WIN10XPE\mounted]

点评

(●'◡'●),硬链接搞定了  发表于 2020-4-17 15:45
内部使用的相对路径,你这绝对路径会有问题。用符号连接吧。  发表于 2020-4-17 15:45
回复

使用道具 举报

3672#
发表于 2020-4-17 13:54:05 来自手机 | 只看该作者
楼主,为啥现在--wait的命令行没有效果了?没有等待,而且--help的命令行也不显示帮助了

Screenshot_2020-04-17-13-52-24-373_com.microsoft.rdc.android.jpg (41.99 KB, 下载次数: 199)

Screenshot_2020-04-17-13-52-24-373_com.microsoft.rdc.android.jpg

点评

WimBuilder.cmd 下面参数解析的3个 WB_START_OPT,改成 APP_START_OPT (应该叫APP_OPT_START?)。 WB_OPT_HELP改成APP_OPT_HELP。  发表于 2020-4-18 18:57
新版本,改了内部结构已适合变成其他应用程序,这里应该是改出问题了。  发表于 2020-4-17 15:46
回复

使用道具 举报

3673#
发表于 2020-4-17 17:21:48 | 只看该作者
添加nvme驱动程序的话,是直接拷贝到 Projects\WIN10XPE\01-Drivers\ 的system还是custom目录,然后定制里勾选“驱动”吗?

点评

设计上是的,放进去自动集成驱动。启动集成的代码没写。那个目录目前没有用。  发表于 2020-4-18 18:59
回复

使用道具 举报

3674#
发表于 2020-4-17 23:21:33 | 只看该作者
话说你们的pe能玩游戏吗,
比如暗黑3什么的
回复

使用道具 举报

3675#
发表于 2020-4-18 02:25:22 | 只看该作者
slore 发表于 2020-4-14 18:35
LibreOffice is already tested.

rename Office\APP_LibreOfficePortable.bat.sample  to bat,

I downloaded LibreOfficePortable_6.4.1_MultilingualStandard. It can be run on Win10XPE, but when I try to use it to open a file, it says the following:
  1. 位于 0x000000006B1B47CF 的指令参考位于 0x0000000000000000 的记忆体。该记忆体不能为 read。<div>
  2. </div><div>请按 [确定] 终止程式</div>
复制代码
How can it be fixed? Which version of LibreOffice have you tested?

点评

Hi, Matthew >Which version of LibreOffice have you tested? Which is in the bat, it is same as you --- LibreOfficePortable_6.4.1_MultilingualStandard.paf.exe. When I use the Windows ISO >= 20H  详情 回复 发表于 2020-4-18 14:49
回复

使用道具 举报

3676#
 楼主| 发表于 2020-4-18 14:49:33 | 只看该作者
本帖最后由 slore 于 2020-4-18 17:30 编辑
Matthew_Wai 发表于 2020-4-18 02:25
I downloaded LibreOfficePortable_6.4.1_MultilingualStandard. It can be run on Win10XPE, but when I ...

Hi, Matthew

>Which version of LibreOffice have you tested?

Which is in the APP_LibreOffice.bat, it is same as you --- LibreOfficePortable_6.4.1_MultilingualStandard.paf.exe.

When I use the Windows ISO >= 20H1, there is the same as you.
but you can drag the file to \libreoffice\program\swriter.exe, it will be opened.

you can use assoc, ftype to make .odt, .rtf extensions to writer.exe "%1",
to avoid the problem.

Use can see the code in Z:\WimBuilder2\vendor\_PEMaterial_\PEStartup.bat.
There is the commands to assoc .PDF extension with SumatraPDF.

I think there needs some more SysWOW64\dlls for that in 20h1.

I build with Windows 10 RS5 (17763), the "Open" button works.

AND for Office Tools:
rtf, odt file you can use:
Atlantis Word Processor
https://www.atlantiswordprocessor.com/en/

This one is only 3MB, and can be installed in USB drive to be Portable application.

30 days trial is good for PE.

Apache OpenOffice
http://www.openoffice.org/download/

I tried this one, install it in PE, or copy the installed C:\Program Files\OpenOffice 4 (380MB) to your USB device,
(or boot.wim\X:\)

it can used in WIN10XPE. the "Open" button can't use also, but it won't crash, just do nothing.
you can also drag to document file to the \OpenOffice 4\program\swriter.exe to open/edit it.
of cause the assoc code is also good for that.

It works on 20H1 x86 PE. need to add more dlls into SysWOW64\.

==============(edited)===================

The missing file is SysWOW64\shellstyle.dll .


Z:\WimBuilder2\Projects\WIN10XPE\00-Configures\System\Compatibility.bat

; LENOVO BIOS Updater
lz32.dll
; OpenOffice, LibreOffice (Open file)
shellstyle.dll
-if
:end_files



回复

使用道具 举报

3677#
发表于 2020-4-18 20:58:14 | 只看该作者
slore 发表于 2020-4-18 14:49
Hi, Matthew

>Which version of LibreOffice have you tested?

You wrote, "When I use the Windows ISO >= 20H1, there is the same as you."
My Win10XPE was created from Windows 10 Version 1903, not ">= 20H1".

You wrote, "you can drag the file to \libreoffice\program\swriter.exe, it will be opened."
Do you mean copying the file into "X:\libreoffice\program\swriter.exe" or "Y:\libreoffice\program\swriter.exe"?

You posted the link to "Atlantis Word Processor".
I have downloaded Atlantis portable. I am running installed Windows 10. When I click on the "Open" button, it hangs.
When will I be allowed to post a link on this forum?

点评

it is typo. >= 19h1 needs shellstyle.dll.  发表于 2020-4-19 19:40
回复

使用道具 举报

3678#
发表于 2020-4-18 21:18:09 | 只看该作者
slore 发表于 2020-4-18 14:49
Hi, Matthew

>Which version of LibreOffice have you tested?

You wrote, "you can use assoc, ftype to make .odt, .rtf extensions to writer.exe "%1""
The default program for RTF files is:
"X:\Program Files\Windows NT\Accessories\WORDPAD.EXE" "%1"

However, WORDPAD.EXE does not exist on my Win10XPE. I don't know why.
So, I have copied WPS Office into "Y:\Programs\WPS Office\office6\wps.exe".
I have created a CMD script, which will be run at Win10XPE startup.
The script will set the default program for RTF, DOC, and DOCS to be "wps.exe".Both the script and "wps.exe" work fine on my Win10XPE. However, "wps.exe" does not support ODT.
  1. :: The following lines are for RTF.
  2. (REG ADD "HKCR\rtffile\shell\open\command" /T REG_EXPAND_SZ /D """"Y:\Programs\WPS Office\office6\wps.exe""" """%%1"""" /F)
  3. (REG ADD "HKCR\rtffile\DefaultIcon" /T REG_EXPAND_SZ /D """"Y:\Programs\WPS Office\office6\wps.exe""",1" /F)
复制代码


点评

\Program Files\Windows NT\Accessories\wordpad.exe is 2.91MB. it is big, and it is infrequently used. So I don't add it(boot.wim/winre.wim don't have it either). I just add a option for it in:  详情 回复 发表于 2020-4-19 20:48
回复

使用道具 举报

3679#
发表于 2020-4-19 12:24:34 | 只看该作者
本帖最后由 黑中见白 于 2020-4-19 14:52 编辑

19536,卡在switch to admin...
这个页面,进不去桌面,//
能知道是什么原因吗{明白了,我用的是家庭版wim


//
添加exe之后,家庭版也进去了
家庭版 需要提取
\Windows\WinSxS\amd64_microsoft-windows-t..es-commandlinetools_*
\Windows\WinSxS\wow64_microsoft-windows-t..es-commandlinetools_*

然后
amd64的移动到Windows\System32
wow64的移动到SysWOW64
写是这么写,
我发现是永远失败的
MOVE  "A:\Windows\WinSxS\amd64_microsoft-windows-t..es-commandlinetools_*" "A:\Windows\System32"
MOVE  "A:\Windows\WinSxS\wow64_microsoft-windows-t..es-commandlinetools_*" "A:\Windows\SysWOW64"

回复

使用道具 举报

3680#
发表于 2020-4-19 14:56:04 | 只看该作者
黑中见白 发表于 2020-4-19 12:24
19536,卡在switch to admin...
这个页面,进不去桌面,//
能知道是什么原因吗{明白了,我用的 ...

You wrote, "添加exe之后,家庭版也进去了".
Can you explain how to do so? What .exe file should be added? Where can I find the file? I cannot switch to Administrator either.

点评

MOVE "A:\Windows\WinSxS\amd64_microsoft-windows-t..es-commandlinetools_*" "A:\Windows\System32" MOVE "A:\Windows\WinSxS\wow64_microsoft-windows-t..es-commandlinetools_*" "A:\Windows\S   发表于 2020-4-19 22:54
tsdicon.exe, tscon.exe  发表于 2020-4-19 16:07
回复

使用道具 举报

3681#
发表于 2020-4-19 15:11:31 | 只看该作者
slore 发表于 2020-4-18 14:49
Hi, Matthew

>Which version of LibreOffice have you tested?

You wrote, "The missing file is SysWOW64\shellstyle.dll".I copied "C:\Windows\SysWOW64\shellstyle.dll" into "X:\Windows\SysWOW64\shellstyle.dll". Then the "Open" button worked.
Now I have another problem: "AOMEI_Partition_Assistant_Standard_Edition 8.4_portable" works on my installed Windows but not on Win10XPE. The error message is "Load driver failed, please reinstall the program." How can I fix the error?




点评

About the ]AOMEI_Partition_Assistant_Standard_Edition, I don't know where you got the Portable one. I only find the installer: http://www2.aomeisoftware.com/download/pa/PAssist_Std.exe AND it  详情 回复 发表于 2020-4-19 22:32
回复

使用道具 举报

3682#
发表于 2020-4-19 18:18:45 | 只看该作者
Where can I find "tsdicon.exe" and "tscon.exe"? Which folder should I copy them into?

点评

They are in: \Windows\WinSxS\amd64_microsoft-windows-t..es-commandlinetools_* \Windows\WinSxS\wow64_microsoft-windows-t..es-commandlinetools_* or you can get them from Windows 10 Pro Edition.  详情 回复 发表于 2020-4-19 22:33
回复

使用道具 举报

3683#
发表于 2020-4-19 18:26:05 | 只看该作者
I selected "Edit BCD" and "Show loading progress", but no progress bar is shown at startup. What is wrong?

点评

It only works if you use the Windows ISO's boot files. if you have Windows ISO, just delete the _ISO_ folder.  发表于 2020-4-19 22:34
回复

使用道具 举报

3684#
 楼主| 发表于 2020-4-19 20:48:02 | 只看该作者
Matthew_Wai 发表于 2020-4-18 21:18
You wrote, "you can use assoc, ftype to make .odt, .rtf extensions to writer.exe "%1""
The defaul ...
However, WORDPAD.EXE does not exist on my Win10XPE. I don't know why.


\Program Files\Windows NT\Accessories\wordpad.exe is 2.91MB.
it is big, and it is infrequently used. So I don't add it(boot.wim/winre.wim don't have it either).

I just add a option for it in:
Z:\WimBuilder2\Projects\WIN10XPE\01-Components\za-Accessories\
    main.html

<div style="margin:3px;font-size:1em;">
    <label><input type="checkbox" name="component.wordpad" class="opt_item"> WordPad</label></div>


     main.bat

if "x%opt[component.wordpad]%"=="xtrue" (
  call AddFiles "\Program Files\Windows NT\Accessories\"
  call RegCopyEx Classes ".docx,.odt,.rtf,docxfile,odtfile,rtffile"
)


if you use full SOFTWARE, the RegCopyEx Classes is useless.

Then you will have Wordpad.exe and docx, odt, rtf files are associated with it.

If you want to assoc them with other application, like OpenOffice/LibreOffice, you need:

ftype odtfile="Y:\ProgramFile\OpenOffice 4\program\swriter.exe" "%%1"
assoc.odt=odtfile
回复

使用道具 举报

3685#
发表于 2020-4-19 21:11:34 | 只看该作者
好的&#128076;谢谢
回复

使用道具 举报

3686#
发表于 2020-4-19 21:35:01 | 只看该作者
本帖最后由 Matthew_Wai 于 2020-4-19 22:08 编辑
slore 发表于 2020-4-19 20:48
\Program Files\Windows NT\Accessories\wordpad.exe is 2.91MB.
it is big, and it is infrequentl ...
I just add a option for it in:
Z:\WimBuilder2\Projects\WIN10XPE\01-Components\za-Accessories\
    main.html

Do you mean "wordpad.exe" will be available in the next version of WimBuilder2? I use the latest version: "WimBuilder2-Full.v2020-04-04.7z".

点评

Yes. it will be available in next version. But you can add the code of main.html, main.bat by yourself as WimBuilder2 is open-source project. Or you can download the develop version: https://  详情 回复 发表于 2020-4-19 22:14
回复

使用道具 举报

3687#
发表于 2020-4-19 22:02:17 | 只看该作者
黑中见白 发表于 2020-4-19 12:24
19536,卡在switch to admin...
这个页面,进不去桌面,//
能知道是什么原因吗{明白了,我用的 ...

C:\Windows\WinSxS\amd64_microsoft-windows-t..es-commandlinetools_31bf3856ad364e35_10.0.18362.1_none_b70dc961763cab21\tscon.exe
C:\Windows\WinSxS\amd64_microsoft-windows-t..es-commandlinetools_31bf3856ad364e35_10.0.18362.1_none_b70dc961763cab21\tsdiscon.exe
C:\Windows\WinSxS\wow64_microsoft-windows-t..es-commandlinetools_31bf3856ad364e35_10.0.18362.1_none_c16273b3aa9d6d1c\tscon.exe
C:\Windows\WinSxS\wow64_microsoft-windows-t..es-commandlinetools_31bf3856ad364e35_10.0.18362.1_none_c16273b3aa9d6d1c\tsdiscon.exe


I just found the above files. How can I add them into Win10XPE so as to enable "Switch to Administrator"?






点评

Why not just select the Pro index of install.wim to build the WIN10XPE?  发表于 2020-4-19 23:45
回复

使用道具 举报

3688#
 楼主| 发表于 2020-4-19 22:14:01 | 只看该作者
本帖最后由 slore 于 2020-4-19 22:35 编辑
Matthew_Wai 发表于 2020-4-19 21:35
Do you main WordPad will be available in the next version of WimBuilder2? I use the latest version ...
Do you main WordPad will be available in the next version of WimBuilder2?
I use the latest version: "WimBuilder2-Full.v2020-04-04.7z".

Yes. it will be available in next version.
But you can add the code of main.html, main.bat by yourself as WimBuilder2 is open-source project.

Or you can download the latest develop version:
https://github.com/slorelee/wimbuilder2/archive/master.zip

extract it, and copy the WimBuilder2-Full.v2020.04.04\vendor folder to

WimBuilder2-master\vendor.



回复

使用道具 举报

3689#
发表于 2020-4-19 22:31:22 | 只看该作者
黑中见白 发表于 2020-4-17 23:21
话说你们的pe能玩游戏吗,
比如暗黑3什么的

这个用来玩游戏有点大材小用了吧!
回复

使用道具 举报

3690#
 楼主| 发表于 2020-4-19 22:32:24 | 只看该作者
本帖最后由 slore 于 2020-4-19 22:35 编辑
Matthew_Wai 发表于 2020-4-19 15:11
You wrote, "The missing file is SysWOW64\shellstyle.dll".I copied "C:\Windows\SysWOW64\shellstyle. ...

About the ]AOMEI_Partition_Assistant_Standard_Edition, I don't know where you got the Portable one.

I only find the installer:
http://www2.aomeisoftware.com/download/pa/PAssist_Std.exe

AND it can be run in WIN10XPE, after install it in WIN10XPE, you can copy:
X:\Program File(x86)\AOMEI Partiton Assistant\ folder to your USB device.

reboot WIN10XPE, you can run U:\PETools\AOMEI Partiton Assistant\x64\passist.exe to use it.

maybe your portable version is missing the native\*\ampa.sys or something.
you can make a comparison.
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-5-22 01:56

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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