ES5S封装系统问题汇总
1. 在操作系统下开始一键封装,提示找不到sysperp
如果有安装搜狗输入法,切换到默认的微软拼音,然后重新运行ES5S
2. 执行封装过程中报错,代码5.3
查看ES目录下的debug日志,提示如下
2023-12-11 15:05:09, Error SYSPRP Package Microsoft.MicrosoftEdge_44.19041.1266.0_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2023-12-11 15:05:09, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2023-12-11 15:05:09, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
原因是有一部分应用未卸载,此时系统封装已经失败,需要恢复最近的一次备份,然后PowerShell执行
Get-AppxPackage | findstr "Microsoft.MicrosoftEdge"
能找到对应的应用,确定只有一个匹配结果
Name : Microsoft.MicrosoftEdgeDevToolsClient
PackageFullName : Microsoft.MicrosoftEdgeDevToolsClient_1000.19041.1023.0_neutral_neutral_8wekyb3d8bbwe
InstallLocation : C:\Windows\SystemApps\Microsoft.MicrosoftEdgeDevToolsClient_8wekyb3d8bbwe
PackageFamilyName : Microsoft.MicrosoftEdgeDevToolsClient_8wekyb3d8bbwe
Name : Microsoft.MicrosoftEdge.Stable
PackageFullName : Microsoft.MicrosoftEdge.Stable_113.0.1774.42_neutral__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.MicrosoftEdge.Stable_113.0.1774.42_neutral__8wekyb3d8bbwe
PackageFamilyName : Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe
Name : Microsoft.MicrosoftEdge
PackageFullName : Microsoft.MicrosoftEdge_44.19041.1266.0_neutral__8wekyb3d8bbwe
InstallLocation : C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe
PackageFamilyName : Microsoft.MicrosoftEdge_8wekyb3d8bbwe
然后执行删除
Get-AppxPackage Microsoft.MicrosoftEdge | Remove-AppxPackage
参考:https://blog.csdn.net/a13835198325/article/details/130807172