mirror of
https://github.com/dragonflylee/WimHelper.git
synced 2025-01-09 03:58:30 +08:00
win11 优化
This commit is contained in:
parent
d0ead5207c
commit
2f50b34a1c
@ -1 +1 @@
|
|||||||
<License xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ID="7dc75244-cd08-426b-a6b9-d51a9fc5c18f" LicenseID="5c0db099-f413-5aa0-afc0-f40f668da91c" ContentID="d06a1b07-dd36-5158-552a-2d1968c87690" Version="3" xmlns="urn:schemas-microsoft-com:windows:store:licensing:ls"><Binding Binding_Type="Machine"><ProductID>9N0DX20HK701</ProductID><PFM>microsoft.windowsterminal_8wekyb3d8bbwe</PFM><LicenseInstanceID>50914f86-8b4e-4a30-89a0-7e0d39227084</LicenseInstanceID><RequestorID>2c3f1d47-426d-c7d7-face-ef1add208818</RequestorID><LeaseRequired>False</LeaseRequired></Binding><LicenseInfo Type="Full" LicenseUsage="Offline" LicenseCategory="OEM"><IssuedDate>2021-10-20T15:58:05.146783Z</IssuedDate><LastUpdateDate>2021-10-20T15:58:05.1388178Z</LastUpdateDate><BeginDate>2021-10-20T15:58:05.1388166Z</BeginDate></LicenseInfo><SPLicenseBlock>FAAAALgAAADJAAAACgAAAAMAAQCNPHBhAgDLAAAAEAAAAJmwDVwT9KBar8D0D2aNqRzOAAAAUAAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AdwBpAG4AZABvAHcAcwB0AGUAcgBtAGkAbgBhAGwAXwA4AHcAZQBrAHkAYgAzAGQAOABiAGIAdwBlAAAAzQAAACIAAAABAKFxw0qGug9YAP8kW4sg4ynbRNQEyJee2U91aKvfmfA4IAAAAAQAAACNPHBhzAAAAEQAAAABAAIAAWn5HOF3DSlraOPYt+IFzynZlT+I+hTTpfD20FMaE6fNuGNCLUlbOWKx8cIMdmdUGhADHaIIXP/9uLiaEGAznA==</SPLicenseBlock><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /><SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /><DigestValue>uX3yXuDawfwuYZt8WHWPuoOrSPQkySxH9am0ohtdTGk=</DigestValue></Reference></SignedInfo><SignatureValue>U6sBdwtQKEniBjs9rPBfVqwzqYClnCI32/SnR5HYeNoWaiF2I7vmD5Fn9H4HtjrIGTbsH6B+I+chiTTLtWtelm1kfrTF5sof941K2Cl49mLmAZDQL1D2bJInxFa2CytIj+tN1dVjmB6N2c4+PQdLKszJe62hbXWQsibK71Bjk4gbWOtT+jl9Se6VyR1+ANrPQfctq9xzDBmY6N18QvxU33hE5q9BoqLGbWMebAdcGDFlKFo2ExB37gUCIMdfK0VBdoLV6xgnfCli2gpRVvxOTH5r0kw8WJrl4NTdeD4yzEJOxojvgJw4E0TgkvQZSngkrQU43g5b+BL4TMXAfNYPnA==</SignatureValue><KeyInfo Id="_0f81b24f-bc40-2712-0d5d-e7c10085c330"><KeyValue><RSAKeyValue><Modulus>oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==</Modulus><Exponent>AAEAAQ==</Exponent></RSAKeyValue></KeyValue></KeyInfo></Signature></License>
|
<License xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ID="1c52770d-63b9-4b1a-b343-ae9553638a0f" LicenseID="5c0db099-f413-5aa0-afc0-f40f668da91c" ContentID="d06a1b07-dd36-5158-552a-2d1968c87690" Version="3" xmlns="urn:schemas-microsoft-com:windows:store:licensing:ls"><Binding Binding_Type="Machine"><ProductID>9N0DX20HK701</ProductID><PFM>microsoft.windowsterminal_8wekyb3d8bbwe</PFM><LicenseInstanceID>eec6ced3-3158-47d6-a0f0-d0bc03c6bb09</LicenseInstanceID><RequestorID>2c3f1d47-426d-c7d7-face-ef1add208818</RequestorID><LeaseRequired>False</LeaseRequired></Binding><LicenseInfo Type="Full" LicenseUsage="Offline" LicenseCategory="OEM"><IssuedDate>2022-12-14T16:08:13.2318902Z</IssuedDate><LastUpdateDate>2022-12-14T16:08:13.235477Z</LastUpdateDate><BeginDate>2022-12-14T16:08:13.2354765Z</BeginDate></LicenseInfo><SPLicenseBlock>FAAAALgAAADJAAAACgAAAAMAAQDt9JljAgDLAAAAEAAAAJmwDVwT9KBar8D0D2aNqRzOAAAAUAAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AdwBpAG4AZABvAHcAcwB0AGUAcgBtAGkAbgBhAGwAXwA4AHcAZQBrAHkAYgAzAGQAOABiAGIAdwBlAAAAzQAAACIAAAABAKFxw0qGug9YAP8kW4sg4ynbRNQEyJee2U91aKvfmfA4IAAAAAQAAADt9JljzAAAAEQAAAABAAIAF4uAQEWjh+vh4l6w1D9VQ4GfWnBep6m2BRYK96u1lY+UDPhS6LkCM9V9lo4SIAN+2VZ1OyaBxBFizh06TcjPOA==</SPLicenseBlock><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /><SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /><DigestValue>/7xvRvsKrv+4iwdrQXxYmWVpdR3SVW+c7U2eFUWV8dY=</DigestValue></Reference></SignedInfo><SignatureValue>PDMRcNhZcLf8eHrt52Amo+tDVWI5HwT7uuDnv7vbSdDrfqjyiIJOxCX8bK61TIKTZqNM5/emX41xhgR4GKKIx2QA0nbb3mq1hY55L7qliOxAxHO9kls5YjnSDEWroOTXpkkeAOgRKSlsTOEh/YRIin45ZHPgWCIRYp9ZyH+VSmaI7DcpFE2Xe0ZYIHMDXf3OKCK0RAtQ01cuBlWge/Db7MTHJ5F1Yp3fGkm3ki0ifi03ZmKxSlxnrDkKtsUMRLhIgO4vXkTcXp+fqgK5wXXDdtVpH4UQewtxQebOiRShyFYy536k04EVE/tgSfogoj7mzASnhAR005glUYkMO1aHtA==</SignatureValue><KeyInfo Id="_0f81b24f-bc40-2712-0d5d-e7c10085c330"><KeyValue><RSAKeyValue><Modulus>oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==</Modulus><Exponent>AAEAAQ==</Exponent></RSAKeyValue></KeyValue></KeyInfo></Signature></License>
|
@ -37,6 +37,8 @@ Windows Registry Editor Version 5.00
|
|||||||
;快速访问中不显示最近文件和常用文件夹
|
;快速访问中不显示最近文件和常用文件夹
|
||||||
;"ShowRecent"=dword:00000000
|
;"ShowRecent"=dword:00000000
|
||||||
;"ShowFrequent"=dword:00000000
|
;"ShowFrequent"=dword:00000000
|
||||||
|
;隐藏通知区域图标
|
||||||
|
"EnableAutoTray"=dword:00000001
|
||||||
|
|
||||||
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
|
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
|
||||||
;显示所有文件扩展名
|
;显示所有文件扩展名
|
||||||
@ -55,6 +57,8 @@ Windows Registry Editor Version 5.00
|
|||||||
"ShowSyncProviderNotifications"=dword:00000000
|
"ShowSyncProviderNotifications"=dword:00000000
|
||||||
;开始按钮右键命令提示符
|
;开始按钮右键命令提示符
|
||||||
"DontUsePowerShellOnWinX"=dword:00000001
|
"DontUsePowerShellOnWinX"=dword:00000001
|
||||||
|
;始终合并任务栏
|
||||||
|
"TaskbarGlomLevel"=dword:00000000
|
||||||
|
|
||||||
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer]
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer]
|
||||||
;关闭应用商店中查找应用
|
;关闭应用商店中查找应用
|
||||||
|
11
Pack/Optimize/11.0.reg
Normal file
11
Pack/Optimize/11.0.reg
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
;Win10 쒔듕塘숩
|
||||||
|
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32]
|
||||||
|
@=""
|
||||||
|
|
||||||
|
;훨蛟으앙璘
|
||||||
|
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
|
||||||
|
"TaskbarAl"=dword:00000000
|
||||||
|
|
||||||
|
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\OpenCMDHere]
|
@ -42,3 +42,9 @@ Windows Registry Editor Version 5.00
|
|||||||
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AllFilesystemObjects\shell\LaunchWorkfoldersControl]
|
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AllFilesystemObjects\shell\LaunchWorkfoldersControl]
|
||||||
;右键 "包含到库中"
|
;右键 "包含到库中"
|
||||||
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\Library Location]
|
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\Library Location]
|
||||||
|
|
||||||
|
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\runas]
|
||||||
|
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\notepad]
|
||||||
|
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\copypath]
|
||||||
|
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\runas2]
|
||||||
|
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\copypath]
|
@ -73,11 +73,10 @@ Win10 1709|10.0.16299|[32位](http://download.windowsupdate.com/d/msdownload/upd
|
|||||||
|
|
||||||
访问 https://store.rg-adguard.net/ 下载 appx 包
|
访问 https://store.rg-adguard.net/ 下载 appx 包
|
||||||
|
|
||||||
比如应用商店的ID为 9WZDNCRFJBMP
|
比如应用商店的ID为 9WZDNCRFJBMP
|
||||||
|
应用安装器的ID为 9NBLGGH4NNS1
|
||||||
应用安装器的ID为 9NBLGGH4NNS1
|
VP9 9N4D0MSMP0PT
|
||||||
|
HEVC 9N4WGH0Z6VHQ
|
||||||
VP9 9N4D0MSMP0PT
|
|
||||||
|
|
||||||
|
|
||||||
## 使用说明
|
## 使用说明
|
||||||
|
@ -73,8 +73,9 @@ rem call :IntRollupFix "%~1"
|
|||||||
rem call :AddAppx "%~1", "DesktopAppInstaller", "VCLibs"
|
rem call :AddAppx "%~1", "DesktopAppInstaller", "VCLibs"
|
||||||
call :AddAppx "%~1", "WindowsStore", "VCLibs UI.Xaml Runtime Framework"
|
call :AddAppx "%~1", "WindowsStore", "VCLibs UI.Xaml Runtime Framework"
|
||||||
call :AddAppx "%~1", "DesktopAppInstaller"
|
call :AddAppx "%~1", "DesktopAppInstaller"
|
||||||
call :AddAppx "%~1", "WebExperience"
|
if "%ImageVersion%" geq "10.0.22000" (
|
||||||
call :AddAppx "%~1", "WindowsTerminal"
|
call :AddAppx "%~1", "WindowsTerminal"
|
||||||
|
)
|
||||||
call :ImportOptimize "%~1"
|
call :ImportOptimize "%~1"
|
||||||
call :ImportUnattend "%~1"
|
call :ImportUnattend "%~1"
|
||||||
call :ImageClean "%MNT%"
|
call :ImageClean "%MNT%"
|
||||||
@ -87,14 +88,15 @@ call :GetImageInfo "%~1", "%~2"
|
|||||||
title 正在处理 [%~2] 镜像 %ImageName% 版本 %ImageVersion% 语言 %ImageLanguage%
|
title 正在处理 [%~2] 镜像 %ImageName% 版本 %ImageVersion% 语言 %ImageLanguage%
|
||||||
%Dism% /Mount-Wim /WimFile:"%~1" /Index:%~2 /MountDir:"%MNT%"
|
%Dism% /Mount-Wim /WimFile:"%~1" /Index:%~2 /MountDir:"%MNT%"
|
||||||
call :RemoveAppx "%MNT%"
|
call :RemoveAppx "%MNT%"
|
||||||
for /f %%f in ('type "%~dp0Pack\FeatureList.%ImageShortVersion%.txt" 2^>nul') do call ::RemoveCapability "%MNT%", "%%f"
|
rem for /f %%f in ('type "%~dp0Pack\FeatureList.%ImageShortVersion%.txt" 2^>nul') do call ::RemoveCapability "%MNT%", "%%f"
|
||||||
for /f %%f in ('type "%~dp0Pack\RemoveList.%ImageVersion%.txt" 2^>nul') do call :RemoveComponent "%MNT%", "%%f"
|
rem for /f %%f in ('type "%~dp0Pack\RemoveList.%ImageVersion%.txt" 2^>nul') do call :RemoveComponent "%MNT%", "%%f"
|
||||||
call :IntRollupFix "%MNT%"
|
|
||||||
call :AddAppx "%MNT%", "WindowsStore", "VCLibs Runtime Framework UI.Xaml"
|
call :AddAppx "%MNT%", "WindowsStore", "VCLibs Runtime Framework UI.Xaml"
|
||||||
call :AddAppx "%MNT%", "DesktopAppInstaller", ""
|
call :AddAppx "%MNT%", "DesktopAppInstaller"
|
||||||
call :AddAppx "%MNT%", "WacomTechnologyCorp", "UWPDesktop"
|
if "%ImageVersion%" geq "10.0.22000" (
|
||||||
|
call :AddAppx "%~1", "WindowsTerminal"
|
||||||
|
)
|
||||||
call :ImportOptimize "%MNT%"
|
call :ImportOptimize "%MNT%"
|
||||||
call :ImportUnattend "%MNT%", "OEM"
|
call :ImportUnattend "%MNT%"
|
||||||
if exist "%~dp0Driver" %Dism% /Image:"%MNT%" /Add-Driver /Driver:"%~dp0Driver" /recurse /ForceUnsigned
|
if exist "%~dp0Driver" %Dism% /Image:"%MNT%" /Add-Driver /Driver:"%~dp0Driver" /recurse /ForceUnsigned
|
||||||
call :ImageClean "%MNT%"
|
call :ImageClean "%MNT%"
|
||||||
%Dism% /Unmount-Wim /MountDir:"%MNT%" /Commit
|
%Dism% /Unmount-Wim /MountDir:"%MNT%" /Commit
|
||||||
@ -228,9 +230,10 @@ if "%ImageShortVersion%" equ "10.0" (
|
|||||||
rem 右键菜单优化
|
rem 右键菜单优化
|
||||||
call :ImportRegistry "%~dp0Pack\Optimize\Context.reg"
|
call :ImportRegistry "%~dp0Pack\Optimize\Context.reg"
|
||||||
if "%ImageVersion%" lss "10.0.22000" (
|
if "%ImageVersion%" lss "10.0.22000" (
|
||||||
call :ImportStartLayout "%~1", "LayoutModification.xml"
|
call :ImportStartLayout "%~1", "LayoutModification.xml"
|
||||||
) else (
|
) else (
|
||||||
call :ImportStartLayout "%~1", "LayoutModification.json"
|
call :ImportStartLayout "%~1", "LayoutModification.json"
|
||||||
|
call :ImportRegistry "%~dp0Pack\Optimize\11.0.reg"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
call :UnMountImageRegistry
|
call :UnMountImageRegistry
|
||||||
|
Loading…
Reference in New Issue
Block a user