无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
楼主: slore
打印 上一主题 下一主题

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

    [复制链接]
3931#
发表于 2020-4-17 10:48:44 | 只看该作者
本帖最后由 黑中见白 于 2020-4-17 17:26 编辑

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

使用道具 举报

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

使用道具 举报

3933#
 楼主| 发表于 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次修改,实用工具里面有个  卸载按钮,点下就会提交修改打包。
回复

使用道具 举报

3934#
发表于 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]

回复

使用道具 举报

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

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

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
回复

使用道具 举报

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

点评

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

使用道具 举报

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

使用道具 举报

3938#
发表于 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?

回复

使用道具 举报

3939#
 楼主| 发表于 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



回复

使用道具 举报

3940#
发表于 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?
回复

使用道具 举报

3941#
发表于 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)
复制代码


回复

使用道具 举报

3942#
发表于 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"

回复

使用道具 举报

3943#
发表于 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.
回复

使用道具 举报

3944#
发表于 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?




回复

使用道具 举报

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

使用道具 举报

3946#
发表于 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?
回复

使用道具 举报

3947#
 楼主| 发表于 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
回复

使用道具 举报

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

使用道具 举报

3949#
发表于 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".

回复

使用道具 举报

3950#
发表于 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"?






回复

使用道具 举报

3951#
 楼主| 发表于 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.



回复

使用道具 举报

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

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

使用道具 举报

3953#
 楼主| 发表于 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.
回复

使用道具 举报

3954#
 楼主| 发表于 2020-4-19 22:33:20 | 只看该作者
Matthew_Wai 发表于 2020-4-19 18:18
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.
回复

使用道具 举报

3955#
发表于 2020-4-19 23:23:42 | 只看该作者
slore 发表于 2020-4-19 22:33
They are in:
\Windows\WinSxS\amd64_microsoft-windows-t..es-commandlinetools_*
\Windows\WinSxS\wo ...

How can I put them into Win10XPE so as to enable "Switch to Administrator"?
If I just put them into partition X, they will disappear when I shut down Win10XPE, and I still cannot "Switch to Administrator" when I boot into Win10XPE next time.

点评

You need check next option: [Configures]-[Account]-[Enable Administrator account] if you select the Home Edition, tsdiscon.exe and tscon.exe are missing in install.wim\[HOME INDEX]\Windows\System3  详情 回复 发表于 2020-4-20 00:13
回复

使用道具 举报

3956#
 楼主| 发表于 2020-4-20 00:13:08 | 只看该作者
Matthew_Wai 发表于 2020-4-19 23:23
How can I put them into Win10XPE so as to enable "Switch to Administrator"?
If I just put them in ...

You need check next option:
[Configures]-[Account]-[Enable Administrator account]

if you select the Home Edition, tsdiscon.exe and tscon.exe are missing in install.wim\[HOME INDEX]\Windows\System32\, so you have to copy them from WinSxs by yourself.

if you select the Pro Edition, tsdiscon.exe and tscon.exe exist in \Windows\System32\,
WimBuilder2 will add them to X:\Windows\System32\.
回复

使用道具 举报

3957#
发表于 2020-4-20 05:32:32 | 只看该作者
家庭版,进入admin用户
call AddFiles %0 :end_files

goto :end_files
rem 文件列表
\Windows\WinSxS\amd64_*-commandlinetools_*
\Windows\WinSxS\wow64_*-commandlinetools_*

:end_files

MOVE  "%_WB_MNT_PATH%\Windows\WinSxS\amd64_*-commandlinetools_*" "%_WB_MNT_PATH%\Windows\WinSxS\System32"
MOVE  "%_WB_MNT_PATH%\Windows\WinSxS\wow64_*-commandlinetools_*" "%_WB_MNT_PATH%\Windows\WinSxS\SysWOW64"

robocopy /MOV  "%_WB_MNT_PATH%\Windows\WinSxS\System32" "%_WB_MNT_PATH%\Windows\System32" *.exe /s
robocopy /MOV  "%_WB_MNT_PATH%\Windows\WinSxS\SysWOW64" "%_WB_MNT_PATH%\Windows\SysWOW64" *.exe /s

点评

你用了WES 8的fbwf.sys?  发表于 2020-4-20 15:34
是虚拟机金pe之后,我看了,没有admin用户文件夹啊s  发表于 2020-4-20 13:58
Amin是登录才创建  发表于 2020-4-20 08:04
为什么不直接用%X%  发表于 2020-4-20 08:03
但是很奇怪,X:\Users目录,没有admin用户的文件夹 各种设置好像改不了  发表于 2020-4-20 05:56
回复

使用道具 举报

3958#
发表于 2020-4-20 10:02:46 | 只看该作者
谢谢分享!!!
回复

使用道具 举报

3959#
发表于 2020-4-20 13:39:07 | 只看该作者
slore 发表于 2020-4-20 00:13
You need check next option:
[Configures]-[Account]-[Enable Administrator account]

How can I select the Pro Edition? My ISO file is "Win10_1903_V1_Chinese(Traditional)_x64.iso".
回复

使用道具 举报

3960#
发表于 2020-4-20 13:40:45 | 只看该作者
Matthew_Wai 发表于 2020-4-19 22:02
C:\Windows\WinSxS\amd64_microsoft-windows-t..es-commandlinetools_31bf3856ad364e35_10.0.18362.1_non ...

Because I don't know how to select the Pro index of install.wim.
Please tell me how to do so.
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2025-7-19 05:33

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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