无忧启动论坛

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

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

    [复制链接]
991#
 楼主| 发表于 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.
回复

使用道具 举报

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

使用道具 举报

993#
 楼主| 发表于 2020-4-20 19:22:28 | 显示全部楼层
hhh333 发表于 2020-4-20 18:55
老大,今天试了一下最新版,19041显卡自动就装了基本驱动,导致不能安装其他显卡驱动,这个要如何解决?

[驱动],[系统驱动],去掉 基本显卡驱动。
回复

使用道具 举报

994#
 楼主| 发表于 2020-4-20 21:33:31 | 显示全部楼层

难道新版本winre.wim直接自带了?

那就自己删除。

// Load Display drivers
// EXEC =@!%WinDir%\System32\Drvload.exe %WinDir%\inf\basicdisplay.inf %WinDir%\inf\basicrender.inf %WinDir%\inf\c_display.inf %WinDir%\inf\display.inf %WinDir%\inf\displayoverride.inf

你看这些inf中对应的文件,删除看下。我回头构建下19041看看。
回复

使用道具 举报

995#
 楼主| 发表于 2020-4-21 08:49:13 | 显示全部楼层
Matthew_Wai 发表于 2020-4-20 15:40
There are no "Pro index" and "Pro Edition" as shown below:

#How to use
just click buttons to create PE:
wimbuilder.cmd ->select install.wim -> next to PRJECT -> select WIN10PE -> next to Customize -> next to 01-BUILD(cmd)  -> make-iso

[WimBuilder2 - Chinese Video Tutorial ( 3 MB Animated Gif)](http://lancelot.cwcodes.net/file ... ated_1_Chinese.html)

A small step by step pictures for new users. (by Lancelot)

http://lancelot.theoven.org/TheO ... y_Step_20191111.zip
回复

使用道具 举报

996#
 楼主| 发表于 2020-4-21 21:54:06 | 显示全部楼层
Matthew_Wai 发表于 2020-4-21 21:25
Your are right. I copied "ampa.sys" into "X:\Windows\System32\ampa.sys". Then, the portable  ...

Why not package it in your AOMEI_Protable.zip?
PASsistant.exe will auto load the driver.

The driver is not Windows system file, it maybe upgrade, so won't copy it,
you can add it yourself.

Or you can use "02-PEMaterial" to make it easy to be upgraded.

Z:\WimBuilder2\vendor\_PEMaterial_\
    AOMEI_Drivers\
          x64\ampa.sys
          x86\ampa.sys

    PEStartup.bat
    copy "%~dp0AOMEI_Drivers\x%_V8664%\ampa.sys" "%windir%\System32\drivers\"
回复

使用道具 举报

997#
 楼主| 发表于 2020-4-21 22:04:54 | 显示全部楼层
本帖最后由 slore 于 2020-4-21 22:06 编辑
Matthew_Wai 发表于 2020-4-20 21:28
I am running an English version of Windows 10. In the screenshot below, under the WIM file path "K:\ ...

An English version of Windows 10 Can't show the traditional Chinese characters ...

You can use 7z.exe to open install.wim\
[1]\
[2]\
[3]\

check which one has \Windows\System32\tsdiscon.exe.

So you can select the [Index] of  install.wim to be it.


Or you can boot the PE that you built(zh-TW, SYSTEM account),
mount the ISO in PE.

Dism.exe /Get-WimInfo /WimFile:G:\source\install.wim /Index:1
Dism.exe /Get-WimInfo /WimFile:G:\source\install.wim /Index:2
Dism.exe /Get-WimInfo /WimFile:G:\source\install.wim /Index:3

to test it.

専業版 => Professional
企業版 => Enterprise
回复

使用道具 举报

998#
 楼主| 发表于 2020-4-22 07:52:22 | 显示全部楼层
Matthew_Wai 发表于 2020-4-20 21:28
I am running an English version of Windows 10. In the screenshot below, under the WIM file path "K:\ ...

I replied on github,  but it failed.

On the top right,  there is a button to change the language to English,  or access directly:
http://hello.wimbuilder.world/en


This website is developing and slowly,  the newest information is on github & forum.
回复

使用道具 举报

999#
 楼主| 发表于 2020-4-22 08:40:29 | 显示全部楼层
nf17b 发表于 2020-4-22 04:46
19041.207 應該是正式版了

如果方便的話 , 是否可以順便研究一下 , 在另一個主題提到的遠端桌面連接 , ...

看吧,不太用的功能。

长时间用的话,桌面右键属性,隐藏任务栏吧。WinXShell外壳的话,会自动隐藏,没太注意。
回复

使用道具 举报

1000#
 楼主| 发表于 2020-4-22 17:54:14 | 显示全部楼层
本帖最后由 slore 于 2020-4-22 17:57 编辑
liuzhaoyzz 发表于 2020-4-22 17:07
wpeuitl.exe有的。

shutdown.exe没有。我用shutdown.exe作为关键字,用filelocator pro搜索了下,

搞错了,应该连续操作,关机中,第二次wpeutil.exe出错了。

UI_Shutdown只是显示全屏壁纸高斯模糊的UI,按钮点击事件是main. lua中写的,如果有shutdown命令用shutdown,没有用Wpeutil所以,确保Windows和PE下都可以用。
可以UI_Shutdown.zip/main.lua中加一个变量,点击一次改变默认值,第二次就不响应按钮事件来回避。

点评

还是请slore大神出手吧,因为我即使改好了,你一更新我又要改,我改了你一更新我又要改,我改了你一更新我又要改,我改了你一更新我又要改。。。  详情 回复 发表于 2020-4-22 20:01
回复

使用道具 举报

1001#
 楼主| 发表于 2020-4-22 18:05:45 | 显示全部楼层
本帖最后由 slore 于 2020-4-22 18:55 编辑
a465186962 发表于 2020-4-22 12:16
品牌通的winpe生成器是收费的,老哥不收费吗?

项目本身是开源的,本意是把PE经验变成代码,体积极小,永久保留收藏学习,快速转存。

通过简便自由的自定义扩展,让更多人可以DIY PE,鼓励分享。

1年多开发,基本上设计,UI,扩展性,速度上都超过已有生成器,支持范围窄些,只支持Win10(框架自身支持全版本)。
比起收费,我更愿意有其他人参与项目,创新,完善,
目前直接参与提交,分享现成组件代码的人非常少。

随着这个项目逐步成熟完善,我会减少投入时间,减慢开发速度。时间就是金钱啊。
没有收费计划,但是知识,技术分享获取的所得也无可厚非。不强制,如果项目确实有所帮助,可根据自身情况,可以扫描二维码支持开发。没有捐赠免费使用我也没有什么意见。不盗用,恶意摸黑,提出无理要求,遵守基本的互联网,开源分享精神就行。


后续,也会考虑一些独立补丁,优化,原创组件,仅发给捐赠者,
或捐赠者优先拥有新功能。


基于这个框架可以做出很多东西,我也会尝试。

点评

目前效率确实是最高的  详情 回复 发表于 2020-4-22 18:12

评分

参与人数 1无忧币 +5 收起 理由
a465186962 + 5 很给力!

查看全部评分

回复

使用道具 举报

1002#
 楼主| 发表于 2020-4-25 16:20:59 | 显示全部楼层
本帖最后由 slore 于 2020-4-25 21:34 编辑
Matthew_Wai 发表于 2020-4-25 13:39
Does ChrisR know that you have used his Win10XPE?

He knows,  and now he merged some features from mine.
The project started in theoven firstly,  and the concept is earlier than WIN10XPE.
回复

使用道具 举报

1003#
 楼主| 发表于 2020-4-25 16:22:52 | 显示全部楼层
Matthew_Wai 发表于 2020-4-24 23:03
After "rasdial.exe" has been copied into "X:\Windows\System32\rasdial.exe", a PPPoE connection can b ...

call AddFiles \Windows\System32\rasdial.exe


It already be there with PPPoE option.

点评

please add in ‪Z:\WimBuilder2\Projects\WIN10XPE\01-Components\PPPoE\main.bat. I only add rasphone.exe  发表于 2020-4-25 19:25
回复

使用道具 举报

1004#
 楼主| 发表于 2020-4-25 16:25:32 | 显示全部楼层
pseudo 发表于 2020-4-25 11:02
很好用啊。
剩下一些小疑问:
1、开始菜单,附件里有记事本,但没有mspaint、snippingtool菜单项是什么原 ...

call LinkToStartmenu 附件(英文名那个)\mspaint.lnk mspaint.exe

PEStartup.bat 有一句 复制或者自动外置 Program Files目录的语句,改下路径。
回复

使用道具 举报

1005#
 楼主| 发表于 2020-4-25 23:27:26 | 显示全部楼层
本帖最后由 slore 于 2020-4-26 00:18 编辑
Matthew_Wai 发表于 2020-4-25 20:54
\Projects\WIN10XPE\01-Components\PPPoE\main.bat The following line already exists in the above fil ...

YES, but I added it before rasphone.exe,

ras"d"ial.exe < ras"p"hone.exe.

https://github.com/slorelee/wimbuilder2/commit/3283ccaffb63fd12a42929fab495bc22ebf5fe82




回复

使用道具 举报

1006#
 楼主| 发表于 2020-4-25 23:28:45 | 显示全部楼层
pseudo 发表于 2020-4-25 11:02
很好用啊。
剩下一些小疑问:
1、开始菜单,附件里有记事本,但没有mspaint、snippingtool菜单项是什么原 ...

https://github.com/slorelee/wimbuilder2/commit/39e250f07a61c4e16afc570be33f551f587cc2ff
保持和Windows一致,不自己创建快捷方式,用系统的。



回复

使用道具 举报

1007#
 楼主| 发表于 2020-4-26 00:08:30 | 显示全部楼层
本帖最后由 slore 于 2020-4-26 00:11 编辑
Matthew_Wai 发表于 2020-4-25 21:40
I want to add a desktop shortcut to "rasphone.pbk". What should be added into "PEStartup.bat"?
...

if you use [[STRING, you needn't to use "..." (quotes).

LINK([[%Desktop%\Rasphone.lnk, [[%ProgramData%\Microsoft\Network\Connections\pbk\rasphone.pbk)

if you want to use quotes("), you need use \\ to instead of one single \.

LINK("%Desktop%\\Rasphone.lnk", "%ProgramData%\\Microsoft\\Network\\Connections\\pbk\\rasphone.pbk")

This is a Windows feature, not 3rd part application, it is better to add one of next codes for the shortcut in the end of:
‪Z:\WimBuilder2\Projects\WIN10XPE\01-Components\PPPoE\main.bat than the PEStartup.bat.

rem if you want to modify the pbk file directly, use this
call LinkToDesktop "Rasphone.lnk" "#pProgramData#p\Microsoft\Network\Connections\pbk\rasphone.pbk"


rem just want to connect with PPPoE
call LinkToDesktop Rasphone.lnk Rasphone.exe


if you only want to add the shortcut on Desktop,
you can just add the batch code in
‪Z:\WimBuilder2\Projects\WIN10XPE\_CustomFiles_\MyCustom\Last\_CustomDesktopItems.bat.

Or Even better, you call add a new batch file:
‪Z:\WimBuilder2\Projects\WIN10XPE\_CustomFiles_\MyCustom\Last\_RasphoneShortcut.bat
  1. call LinkToDesktop "#{@shell32.dll,22056}.lnk" Rasphone.exe
复制代码


So that you won't worry about that if I modify the WIN10XPE\01-Components\PPPoE\main.bat file.

回复

使用道具 举报

1008#
 楼主| 发表于 2020-4-26 01:28:39 | 显示全部楼层
Matthew_Wai 发表于 2020-4-25 20:54
\Projects\WIN10XPE\01-Components\PPPoE\main.bat The following line already exists in the above fil ...

Yes, the code is in the master.zip.
copy the vendor\ and _CustomFiles_\(if you changed some code) to the WimBuilder2-master folder,  you will get the latest version.
回复

使用道具 举报

1009#
 楼主| 发表于 2020-4-26 20:02:34 | 显示全部楼层
本帖最后由 slore 于 2020-4-26 20:03 编辑
2013mqqdg 发表于 2020-4-26 16:50
请问S大,定制时shell用winxshell+Lua,可以生成iso启动后进入pe桌面,查看“此计算机”属性时,弹出的窗口 ...

需要 install.wim\Windows\System32\zh-CN\systemcpl.dll.mui

提取放到:
X:\Program Files\WinXShell\zh-CN\systemcpl.dll.mui

X:\Windows\System32\zh-CN\systemcpl.dll.mui 也行。
回复

使用道具 举报

1010#
 楼主| 发表于 2020-4-27 00:29:15 | 显示全部楼层
本帖最后由 slore 于 2020-4-27 00:41 编辑
黑中见白 发表于 2020-4-22 22:31
ramos模式搞定了吗
RAMOS(不依赖第三方进程)直接登录admin进桌面可切换
告诉我怎么弄

RAMOS帖子里面的脚本 last.bat,没有问题啊。
不过没有感觉到有任何优势。。。加载速度没觉得变快反而慢了。




把用户数据提前放了,系统还是给重新生成。。。不知道是不是新版本的问题,依赖装好的系统注册表有点烦。
回复

使用道具 举报

1011#
 楼主| 发表于 2020-4-27 12:36:08 | 显示全部楼层
黑中见白 发表于 2020-4-27 12:09
加载速度是不能比,要说快,立邦的是启动非常快。
ramos模式主要是没有第三方进程

没有第三方工具又有什么好处?
不要PECMD, WinXShell启动管理器,用startnet.cmd也能开Admin用户。

RAMOS没有SYSTEM用户。。。

倒是可以把自己用的系统转成内存系统,也没特别的。
回复

使用道具 举报

1012#
 楼主| 发表于 2020-4-27 13:12:25 | 显示全部楼层
乾坤大地 发表于 2020-4-27 08:24
slore大神
1、用了你的生成器WimBuilder2-Full.v2020-04-04
     生的bootpe.iso,启动后没有网络托盘, ...

网络图标需要启动Network List Service (netprofm) ,
你是不是自己修改了启动处理?这个应该会在网络初始化的代码里面启动。
回复

使用道具 举报

1013#
 楼主| 发表于 2020-4-27 13:14:38 | 显示全部楼层
回复

使用道具 举报

1014#
 楼主| 发表于 2020-4-29 12:30:56 | 显示全部楼层
Matthew_Wai 发表于 2020-4-28 22:51
If I do not use Internet Explorer to download files, do I have to "Switch to Administrator"?
What  ...

AFAIK

TeamViewer needs Admin account.
IE download action.
Chm viewer(System one,  not 3rd part app)
LAN-Network discovery.


or something else.
回复

使用道具 举报

1015#
 楼主| 发表于 2020-4-29 22:56:36 | 显示全部楼层
Matthew_Wai 发表于 2020-4-29 21:59
if exist "%dp0%wallpaper.jpg" (
    copy /y "%dp0%wallpaper.jpg" "%windir%\Web\wallpaper\img0.jp ...

delete the wallpaper.jpg in vendor\_PEMaterial_, you needn't remove the codes.

About the default wallpaper, you can select one from:
Components - Shell - click the wallpaper image to select a new one.

Or you can replace ‪Z:\WimBuilder2\Projects\WIN10XPE\_CustomFiles_\wallpaper.jpg directly.
回复

使用道具 举报

1016#
 楼主| 发表于 2020-5-1 17:53:06 | 显示全部楼层
Matthew_Wai 发表于 2020-5-1 13:24
function PostShell()
  Startmenu:Pin(dp0 .. [])
  Taskbar:Pin(dp0 .. [])

Did F:\  exist? and there is double.exe in your line.
you can try to put it in PortableApps folder like others.
回复

使用道具 举报

1017#
 楼主| 发表于 2020-5-1 22:48:58 | 显示全部楼层
sunshineboy 发表于 2020-5-1 13:20
期待新版wimbuilder2,可不可以提前透露一下,RAMOS模式可以用了吗?

05.05预计就是修复04.04引入的问题,以及这个月网友反馈的问题,和需求。

RAMOS直接用原帖子的批处理就可以,不过依赖已经装好的系统的注册表文件,
没法直接从install.wim做。另外,目前启动变慢,没有SYSTEM用户,
除了不需要启动管理器以外,没有任何功能改善,估计不会加上,
还不如VHD写入,支持更改保存下来,PE的RAMOS模式感觉没啥用,
如果能处理好,加快登录速度的话后续会添加。

新版本要说功能的话,可能会有发布一个新的补丁--- ADK组件。
支持使用ADK的winpe.wim添加ADK组件,然后添加其他组件,
有时间的话,把驱动集成的补丁测试下,
不过5.1放假,出去玩的多,看时间吧,完成了就加。

如果2004的RTM发布,带ADK的话,对新版本要研究,
新功能就放到06.06,仅发布修复和小的修正。

外置支持完毕了,就是驱动这快,
然后蓝牙,麦克风组件也有突破,
比较完善了,就没啥可更新的了,所以后面2个月,3个月或者随微软出新版本再更新了(半年)。
回复

使用道具 举报

1018#
 楼主| 发表于 2020-5-1 22:51:27 | 显示全部楼层
本帖最后由 slore 于 2020-5-1 22:52 编辑
Matthew_Wai 发表于 2020-5-1 20:40
I copied "Apps.exe" into the following locations:  

I think that your F drive is not ready on booting.

Did you write
Start "" "F:\My apps\Apps.exe"

in PEStartup.bat?

I can't see your screenshot, please upload the image on github.


回复

使用道具 举报

1019#
 楼主| 发表于 2020-5-2 12:55:26 | 显示全部楼层
本帖最后由 slore 于 2020-5-3 08:31 编辑
Matthew_Wai 发表于 2020-5-2 12:05
The following drive G: contained the Win10XPE folders and files.  
After booting into Win10XPE, I a ...

I don't limit the Pin command. It should be OK for all files.

goto G:\My apps\, right click the Apps.exe, can it work(Pin To Taskbar)?

After booting, open a CMD console, type next code, won't it be run?

start WinXShell.exe -code "Tasbar:Pin([[G:\My apps\Apps.exe]])"


I can't access MediaFire nor google.
Upload to github is fine.
You can delete it after I downloaded.

Or you can show me the official download url.(also give me  the md5 of the file)


回复

使用道具 举报

1020#
 楼主| 发表于 2020-5-3 00:15:43 | 显示全部楼层
Matthew_Wai 发表于 2020-5-2 12:05
The following drive G: contained the Win10XPE folders and files.  
After booting into Win10XPE, I a ...

Well, I tested it. seem it is the Windows feature.

You can't Pin an application which are in READONLY device, like the DVD drive.

If you want to do it, here is a trick for them.
if you give it a name, they will be Pinned.

  1. Taskbar:Pin([[G:\My apps\Apps.exe]], 'Apps')
复制代码


Explorer is already Pinned on the taskbar, and for the exe in Windows\ or System32\, you needn't write the full path for Taskbar:Pin.

回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-5-11 22:02

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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