diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..787cead --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +* text eol=crlf + +*.exe binary +*.tpk binary +*.png binary +*.bmp binary \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3f5bc5a --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +Pack/AAct*.exe +Pack/Appx/*.AppxBundle +Pack/Appx/*.Appx +*.wim +*.esd +*.iso + +Mount +Temp +DVD \ No newline at end of file diff --git a/Bin/amd64/NSudo.exe b/Bin/amd64/NSudo.exe new file mode 100644 index 0000000..498311b Binary files /dev/null and b/Bin/amd64/NSudo.exe differ diff --git a/Bin/amd64/oscdimg.exe b/Bin/amd64/oscdimg.exe new file mode 100644 index 0000000..749e11f Binary files /dev/null and b/Bin/amd64/oscdimg.exe differ diff --git a/Bin/x86/NSudo.exe b/Bin/x86/NSudo.exe new file mode 100644 index 0000000..163d32b Binary files /dev/null and b/Bin/x86/NSudo.exe differ diff --git a/Bin/x86/oscdimg.exe b/Bin/x86/oscdimg.exe new file mode 100644 index 0000000..aacf146 Binary files /dev/null and b/Bin/x86/oscdimg.exe differ diff --git a/MakeISO.cmd b/MakeISO.cmd new file mode 100644 index 0000000..aefce48 --- /dev/null +++ b/MakeISO.cmd @@ -0,0 +1,49 @@ +@echo off +color 1F +mode con lines=30 cols=90 +rem 初始化变量 +set "Oscdimg=%~sdp0Bin\%PROCESSOR_ARCHITECTURE%\oscdimg.exe" +set "DVD=%~1" +set "ISOLabel=%~2" +set "ISOFileName=%~3" +rem 选择光盘镜像目录 +if "%DVD%" equ "" call :SelectFolder +set "BIOSBoot=%DVD%\boot\etfsboot.com" +set "UEFIBoot=%DVD%\efi\microsoft\boot\efisys.bin" +rem 判断BIOS引导 +if not exist "%BIOSBoot%" echo %BIOSBoot% 不存在 && goto :Exit +if not exist "%DVD%\sources\boot.wim" echo boot.wim 不存在 && goto :Exit +if not exist "%DVD%\sources\install.wim" ( if not exist "%DVD%\sources\install.esd" echo 安装镜像不存在 && goto :Exit ) +rem 自动生成卷标 +call :MakeLabel %DVD% +if "%ISOFileName%" equ "" ( set "ISOFileName=%~dp0%ISOLabel%.iso" ) +rem 生成ei.cfg +if exist "%DVD%\sources\ei.cfg" del /f /q "%DVD%\sources\ei.cfg" +( + echo.[EditionID] + echo. + echo.[Channel] + echo.OEM + echo.[VL] + echo.1 +)>"%DVD%\sources\ei.cfg" +rem 判断UEFI引导 +if exist "%UEFIBoot%" ( + "%Oscdimg%" -bootdata:2#p0,e,b"%BIOSBoot%"#pEF,e,b"%UEFIBoot%" -o -h -m -u2 -udfver102 "%DVD%" "%ISOFileName%" +) else ( + "%Oscdimg%" -bootdata:1#p0,e,b"%BIOSBoot%" -o -h -m -u2 -udfver102 "%DVD%" "%ISOFileName%" +) +goto :Exit + +:SelectFolder +set folder=mshta "javascript:var folder=new ActiveXObject('Shell.Application').BrowseForFolder(0,'选择安装镜像所在目录', 513, '');if(folder) new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(folder.Self.Path);window.close();" +for /f "tokens=* delims=" %%f in ('%folder%') do set "DVD=%%f" +if "%DVD%" equ "" goto :Exit +goto :eof + +:MakeLabel +if "%ISOLabel%" equ "" ( set "ISOLabel=%~n1" ) +goto :eof + +:Exit +if "%~1" equ "" pause \ No newline at end of file diff --git a/NSudo/NSudo.cpp b/NSudo/NSudo.cpp new file mode 100644 index 0000000..ad5aaf8 --- /dev/null +++ b/NSudo/NSudo.cpp @@ -0,0 +1,168 @@ +#include +#include +#include +#pragma comment(lib,"WtsApi32.lib") + +/** +* 启动服务并返回进程ID +*/ +DWORD NSStartService(LPCTSTR szName) +{ + DWORD dwBytesNeeded, dwWaitTime, dwOldCheckPoint = 0; + ULONGLONG dwStartTickCount; + SERVICE_STATUS_PROCESS ssp = { 0 }; + SC_HANDLE hService = NULL; + SC_HANDLE hSCM = OpenSCManager(NULL, NULL, SC_MANAGER_CONNECT); + if (NULL == hSCM) goto exit; + + hService = OpenService(hSCM, szName, SERVICE_QUERY_STATUS | SERVICE_START); + if (NULL == hService) goto exit; + + dwStartTickCount = GetTickCount64(); + while (QueryServiceStatusEx(hService, SC_STATUS_PROCESS_INFO, (LPBYTE)&ssp, sizeof(ssp), &dwBytesNeeded)) + { + if (SERVICE_STOPPED == ssp.dwCurrentState) + { + if (!StartService(hService, 0, NULL)) goto exit; + } + else if (SERVICE_STOP_PENDING == ssp.dwCurrentState || SERVICE_START_PENDING == ssp.dwCurrentState) + { + dwWaitTime = ssp.dwWaitHint / 10; + if (dwWaitTime < 1000) dwWaitTime = 1000; + else if (dwWaitTime > 10000) dwWaitTime = 10000; + + if (ssp.dwCheckPoint > dwOldCheckPoint) + { + // Continue to wait and check. + dwStartTickCount = GetTickCount64(); + dwOldCheckPoint = ssp.dwCheckPoint; + } + else if (GetTickCount64() - dwStartTickCount > ssp.dwWaitHint) + { + SetLastError(ERROR_TIMEOUT); + goto exit; + } + } + else + { + break; + } + } +exit: + if (SERVICE_RUNNING != ssp.dwCurrentState) memset(&ssp, 0, sizeof(ssp)); + if (NULL != hService) CloseServiceHandle(hService); + if (NULL != hSCM) CloseServiceHandle(hSCM); + return ssp.dwProcessId; +} + +/** +* 复制进程Token +*/ +HANDLE NSDuplicateProcessToken(DWORD dwProcessID, SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, TOKEN_TYPE TokenType) +{ + HANDLE hToken = NULL, hNewToken = NULL; + HANDLE hProcess = OpenProcess(MAXIMUM_ALLOWED, FALSE, dwProcessID); + if (NULL == hProcess) return NULL; + + // 打开进程令牌 + if (OpenProcessToken(hProcess, MAXIMUM_ALLOWED, &hToken)) + { + DuplicateTokenEx(hToken, MAXIMUM_ALLOWED, NULL, ImpersonationLevel, TokenType, &hNewToken); + CloseHandle(hToken); + } + CloseHandle(hProcess); + return hNewToken; +} + +// Enabling and Disabling Privileges +BOOL NSSetPrivilege(HANDLE hToken, LPCTSTR szPrivilege, BOOL bEnable = TRUE) +{ + TOKEN_PRIVILEGES tp; + LUID luid; + + if (!LookupPrivilegeValue(NULL, szPrivilege, &luid)) return FALSE; + + tp.PrivilegeCount = 1; + tp.Privileges[0].Luid = luid; + tp.Privileges[0].Attributes = bEnable ? SE_PRIVILEGE_ENABLED : 0; + + // Enable the privilege or disable all privileges. + return AdjustTokenPrivileges(hToken, FALSE, &tp, 0, NULL, NULL); +} + +DWORD NSFindProcesses(DWORD dwSessionId, LPCTSTR szName) +{ + PWTS_PROCESS_INFO pi = NULL; + DWORD dwCount = 0, dwProcessId = 0; + if (!WTSEnumerateProcesses(WTS_CURRENT_SERVER_HANDLE, 0, 1, &pi, &dwCount)) return FALSE; + + for (DWORD i = 0; i < dwCount; ++i) + { + if (pi[i].SessionId != dwSessionId) continue; + if (pi[i].pProcessName == NULL) continue; + if (_tcsicmp(szName, pi[i].pProcessName) == 0) + { + dwProcessId = pi[i].ProcessId; + break; + } + } + if (NULL != pi) WTSFreeMemory(pi); + return dwProcessId; +} + +/** +* 启动进程并等待 +*/ +BOOL NSRun(HANDLE hToken, LPTSTR szCmd, int nCmdShow = SW_SHOW, DWORD dwFlags = CREATE_NO_WINDOW) +{ + PROCESS_INFORMATION pi = { 0 }; + STARTUPINFO si = { sizeof(si) }; + si.dwFlags = STARTF_USESHOWWINDOW; + si.wShowWindow = (WORD)nCmdShow; + + if (!CreateProcessAsUser(hToken, NULL, szCmd, NULL, NULL, FALSE, dwFlags, NULL, NULL, &si, &pi)) return FALSE; + + WaitForSingleObject(pi.hProcess, INFINITE); + return CloseHandle(pi.hProcess); +} + +#define BOOL_CHECK(_hr_) if (!(_hr_)) { hr = GetLastError(); goto exit; } + +int APIENTRY _tWinMain(HINSTANCE hInstance, + HINSTANCE hPrevInstance, + LPTSTR lpCmdLine, + int nCmdShow) +{ + UNREFERENCED_PARAMETER(hInstance); + UNREFERENCED_PARAMETER(hPrevInstance); + + if (_tcsclen(lpCmdLine) == 0) return MessageBox(HWND_DESKTOP, TEXT("Thanks M2Team"), TEXT("NSudo"), MB_ICONASTERISK); + + HRESULT hr = S_OK; + HANDLE hToken = NULL, hTokenWinLogon = NULL, hTokenTrusted = NULL; + DWORD dwTrusted, dwSessionId, dwWinLogon, dwReturn; + + BOOL_CHECK(OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken)); + BOOL_CHECK(GetTokenInformation(hToken, TokenSessionId, &dwSessionId, sizeof(DWORD), &dwReturn)); + BOOL_CHECK(NSSetPrivilege(hToken, SE_DEBUG_NAME)); + // 获取 WinLogon 的权限 + dwWinLogon = NSFindProcesses(dwSessionId, TEXT("winlogon.exe")); + BOOL_CHECK(dwWinLogon); + hTokenWinLogon = NSDuplicateProcessToken(dwWinLogon, SecurityImpersonation, TokenImpersonation); + BOOL_CHECK(hTokenWinLogon); + BOOL_CHECK(NSSetPrivilege(hTokenWinLogon, SE_ASSIGNPRIMARYTOKEN_NAME)); + BOOL_CHECK(SetThreadToken(NULL, hTokenWinLogon)); + // 获取 TrustedInstaller 的权限 + dwTrusted = NSStartService(TEXT("TrustedInstaller")); + BOOL_CHECK(dwTrusted); + hTokenTrusted = NSDuplicateProcessToken(dwTrusted, SecurityIdentification, TokenPrimary); + BOOL_CHECK(hTokenTrusted); + BOOL_CHECK(SetTokenInformation(hTokenTrusted, TokenSessionId, &dwSessionId, sizeof(DWORD))); + // 启动进程 + BOOL_CHECK(NSRun(hTokenTrusted, lpCmdLine, nCmdShow)); +exit: + if (NULL != hTokenWinLogon) CloseHandle(hTokenWinLogon); + if (NULL != hTokenTrusted) CloseHandle(hTokenTrusted); + if (NULL != hToken) CloseHandle(hToken); + return hr; +} diff --git a/NSudo/NSudo.manifest b/NSudo/NSudo.manifest new file mode 100644 index 0000000..4ba036f --- /dev/null +++ b/NSudo/NSudo.manifest @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/NSudo/NSudo.rc b/NSudo/NSudo.rc new file mode 100644 index 0000000..a4282f8 --- /dev/null +++ b/NSudo/NSudo.rc @@ -0,0 +1,91 @@ +// Microsoft Visual C++ generated resource script. +// +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// 英语(美国) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif //_WIN32 + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 1,0,0,0 + PRODUCTVERSION 1,0,0,0 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "FileDescription", "NSudo For Windows" + VALUE "LegalCopyright", "dragonflyee (C) Copyright 2017" + VALUE "OriginalFilename", "NSudo.exe" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + +#endif // 英语(美国) resources +///////////////////////////////////////////////////////////////////////////// + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "Resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED diff --git a/NSudo/NSudo.vcxproj b/NSudo/NSudo.vcxproj new file mode 100644 index 0000000..1c6dc96 --- /dev/null +++ b/NSudo/NSudo.vcxproj @@ -0,0 +1,95 @@ +锘 + + + + Debug + Win32 + + + Release + Win32 + + + + {1F9B2649-1C4C-4090-A53A-793BCBC38FBC} + Win32Proj + NSudo + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + $(SolutionDir)bin\$(Configuration)\ + $(SolutionDir)obj\$(Configuration)\$(PlatformTarget)\ + $(ProjectName)_$(PlatformTarget) + + + false + $(SolutionDir)bin\$(Configuration)\ + $(SolutionDir)obj\$(Configuration)\$(PlatformTarget)\ + $(ProjectName)_$(PlatformTarget) + + + + NotUsing + Level4 + Disabled + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + + + Windows + true + RequireAdministrator + type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*';%(AdditionalManifestDependencies) + + + + + Level4 + NotUsing + MaxSpeed + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + + + Windows + true + true + true + RequireAdministrator + type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*';%(AdditionalManifestDependencies) + + + + + + + + + + + + \ No newline at end of file diff --git a/NSudo/NSudo.vcxproj.filters b/NSudo/NSudo.vcxproj.filters new file mode 100644 index 0000000..3e3fb76 --- /dev/null +++ b/NSudo/NSudo.vcxproj.filters @@ -0,0 +1,27 @@ +锘 + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 婧愭枃浠 + + + + + 璧勬簮鏂囦欢 + + + \ No newline at end of file diff --git a/NSudo/README.md b/NSudo/README.md new file mode 100644 index 0000000..04e91c5 --- /dev/null +++ b/NSudo/README.md @@ -0,0 +1,4 @@ +# NSudo 绠鍖栫増 + +鍙傝 [M2Team/NSudo](https://github.com/M2Team/NSudo) 鎻愬彇鍏朵腑鍏抽敭浠g爜缂栧啓鐨勭簿绠鐗 NSudo +鐢ㄤ簬 TrustedInstaller 鏉冮檺涓嬮潤榛樿繍琛屽懡浠よ绋嬪簭 \ No newline at end of file diff --git a/NSudo/sources b/NSudo/sources new file mode 100644 index 0000000..4f02b8e --- /dev/null +++ b/NSudo/sources @@ -0,0 +1,25 @@ +TARGETNAME=NSudo +TARGETPATH=..\bin +TARGETTYPE=PROGRAM + +UMTYPE=windows +#UMBASE=0x01000000 +UMENTRY=wwinmain +USE_NATIVE_EH=1 +USE_MSVCRT=1 + +SXS_MANIFEST=NSudo.manifest +SXS_MANIFEST_IN_RESOURCES=1 +SXS_ASSEMBLY_NAME=SxsHelper +SXS_ASSEMBLY_LANGUAGE=0000 + +C_DEFINES=$(C_DEFINES) -DUNICODE -D_UNICODE +#C_DEFINES=$(C_DEFINES) -DMBCS -D_MBCS + +SOURCES=NSudo.cpp \ + NSudo.rc + +INCLUDES= $(SDK_INC_PATH); $(MSSDK)\Include; + +TARGETLIBS= $(SDK_LIB_PATH)\WtsApi32.lib \ + $(SDK_LIB_PATH)\kernel32.lib \ No newline at end of file diff --git a/Pack/Appx/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.xml b/Pack/Appx/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.xml new file mode 100644 index 0000000..7148124 --- /dev/null +++ b/Pack/Appx/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.xml @@ -0,0 +1 @@ +9NBLGGH4NNS1microsoft.desktopappinstaller_8wekyb3d8bbwee1a39502-1ffc-44f0-8c28-0034168e09ff2c3f1d47-426d-c7d7-face-ef1add208818False2016-04-14T15:58:20.6111541Z2016-04-14T15:58:20.4032196Z2016-04-14T15:58:20.4032196ZFAAAAMAAAADJAAAACgAAAAMAAQAdvg9XAgDLAAAAEAAAAK/8fFGLE5YXLOpiiSIEJQrOAAAAWAAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AZABlAHMAawB0AG8AcABhAHAAcABpAG4AcwB0AGEAbABsAGUAcgBfADgAdwBlAGsAeQBiADMAZAA4AGIAYgB3AGUAAADNAAAAIgAAAAEAPHRzkyJyTeprvahJYVs0C0HSgOyvT4hrOkNjQkRP3ZkgAAAABAAAABy+D1fMAAAARAAAAAEAAgBIa5/IGWUu4VPS25nTkLR8ppTVf6vcPSq/gcYDNJ9lN2zTLbFu6TvvW9vRaJ+VeOW+RRkKhoksVH7Pt7QD1r6bgFx+w8DBVQVIbEe2VcpuymyNmZ2W4wEaZRbCfq2+g9k=eLMrCQLsZziDD7p7OTk+r0/1PlW/QvNCd1tuouOIatqECfL1vw0ssHqzwztfAKlLvpaQ1NnB6MlW4wBdOziLQs6TNUNIseASPZWl9s/0qUb85+BpOoFPt+A2t0C0+1Y33UqlpBsXOLndXgySGorBjbRBEDrpX4HFrOfuyGkUSbMVFgSr0H6xXRbLJmYTId0Oy2bPCpRfTqDwqS1x71+IDSBel8I8fs6UHYdYhGvFVqiOtg2+eeuD5pd6I5wiYLIXkfzu6/66QDT7kR1LJ+zgEJCFfauUft1vUIYjTj4evPLZUXRrK7ff8ktfaoppD3o7ToN4C3XSik9HzcsEfhLeUg==oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==AAEAAQ== \ No newline at end of file diff --git a/Pack/Appx/Microsoft.MSPaint_8wekyb3d8bbwe.xml b/Pack/Appx/Microsoft.MSPaint_8wekyb3d8bbwe.xml new file mode 100644 index 0000000..fda1a45 --- /dev/null +++ b/Pack/Appx/Microsoft.MSPaint_8wekyb3d8bbwe.xml @@ -0,0 +1 @@ +9NBLGGH5FV99microsoft.mspaint_8wekyb3d8bbwe25fae062-e493-4222-ba45-7f4bd7c012c32c3f1d47-426d-c7d7-face-ef1add208818False2016-10-21T14:15:01.5723304Z2016-10-21T14:15:01.3105458Z2016-10-21T14:15:01.3105458ZFAAAAKgAAADJAAAACgAAAAMAAQDmIgpYAgDLAAAAEAAAAGWx5aEyBaOm9UIMXBYr4+HOAAAAQAAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AbQBzAHAAYQBpAG4AdABfADgAdwBlAGsAeQBiADMAZAA4AGIAYgB3AGUAAADNAAAAIgAAAAEALuY381l1y97ntaKC7J2RtKHCGV8Xtm8CtNAqlHpYI1cgAAAABAAAAOUiCljMAAAARAAAAAEAAgBxB/kJymY2MljAY+3WokbngsSgiKBzdVuAFnuSwUodwgs4AZCC8K5Adsye+6WTGaDhCCDdWMKMYoquk87yk3Cj1NpqvO9LqFip5WcV9+bLHrGQrj/0Hk5JenmqjcfnP3o=k0VIf7jV+oLT/Pj2sjE/c/C66odkSWusuCOF45LlwN6focx23inWsLeklyYagBW5HHmS+1xxaM3SCZDwjui8Ixv5cZ2DrMNxUn//WOC7UTac2vrNGkUXNz7yd8fJJ01saJVqhrjiq5jBByOfChHqH7X9+DS5cmBcWoxQsKBova/pbBn20N/g5FCvEmcpOnhfh/FKDVzpo5szqVxgxmq2xETHuaDxzKZAgSVQqJ3Qk7H1FtS1qOw5d/LT3trii7OSU2cXp8plCb2IjC/QP6ghyJPn0ReYQpwpwRgHS1B13GONehv0nTIiZGL5yihaQaWMasn3PfhFqtBFVA1C9//nnA==oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==AAEAAQ== \ No newline at end of file diff --git a/Pack/Appx/Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe.xml b/Pack/Appx/Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe.xml new file mode 100644 index 0000000..4153bb6 --- /dev/null +++ b/Pack/Appx/Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe.xml @@ -0,0 +1 @@ +9NBLGGH4QGHWmicrosoft.microsoftstickynotes_8wekyb3d8bbwe3ed7487a-698b-458b-b099-9584a1612f9f2c3f1d47-426d-c7d7-face-ef1add208818False2016-03-08T22:58:33.182511Z2016-03-08T22:58:32.8764864Z2016-03-08T22:58:32.8764864ZFAAAAMIAAADJAAAACgAAAAMAAQAZWd9WAgDLAAAAEAAAAHvlVo1jhm0T/2mgBOIXglrOAAAAWgAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AbQBpAGMAcgBvAHMAbwBmAHQAcwB0AGkAYwBrAHkAbgBvAHQAZQBzAF8AOAB3AGUAawB5AGIAMwBkADgAYgBiAHcAZQAAAM0AAAAiAAAAAQD94/zSU/j7oKMeYVVKIhgAG1D6q+X6jOT39buUyn3foiAAAAAEAAAAGVnfVswAAABEAAAAAQACAI7E8tG+jIley/Zj7wweEjnsoSiHeH1t4qm0vgoE++JbqBgnE+8QKZXd6QQVZFbD/b15jh1RUJjWLbN8KMIeIYk=GR2pSOStDmDaUp5lujylCuET06ZEsXr7uHM36fk+F8Q=OpF6jNf2Yi6UwUR0QQSo8tvl3iHtPdQoh4SNLZwdM4ABaMYas+Xtw4Uc8eRWY/GK0viTooSGj/fRa9hw3k0lZbuYavmKtecAtr0bJLriMwQTIgg/5LG6xY7XljHTqKvx8Znk5SItZoR3DTWw3PX5xiGunESpBD06m1WRjg5orx2hr+w+r948O9gQQvTS3ksJLQdJcfRcs1cwldKbERXMosnptLtmVzg5jOFSajYgbFGtaPw3nzAtvnFPGBckao4yufyuzd0nz6vHrlMmfOmPwnZiyBavk5gBEStIRkrLirFoeaX1/TbRTpZ5NcbqmSBfGiSuYljaxpSnaX+D9gPG5g==oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==AAEAAQ== \ No newline at end of file diff --git a/Pack/Appx/Microsoft.Office.OneNote_8wekyb3d8bbwe.xml b/Pack/Appx/Microsoft.Office.OneNote_8wekyb3d8bbwe.xml new file mode 100644 index 0000000..49cde32 --- /dev/null +++ b/Pack/Appx/Microsoft.Office.OneNote_8wekyb3d8bbwe.xml @@ -0,0 +1 @@ +9WZDNCRFHVJLmicrosoft.office.onenote_8wekyb3d8bbwed6ba787f-7da9-4bba-a88d-c4e1cee697d82c3f1d47-426d-c7d7-face-ef1add208818False2015-07-02T21:39:20.1316051Z2015-07-02T21:39:20.4733675Z2015-07-02T21:39:20.4733675ZFAAAALYAAADJAAAACgAAAAMAAQCIr5VVAgDLAAAAEAAAAN3T44zHpDhsX94fn135iAfOAAAATgAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AbwBmAGYAaQBjAGUALgBvAG4AZQBuAG8AdABlAF8AOAB3AGUAawB5AGIAMwBkADgAYgBiAHcAZQAAAM0AAAAiAAAAAQBgAWTNP1H3SMlyTgxLNzteU7HpoySOpLiSgPezUCL81CAAAAAEAAAAiK+VVcwAAABEAAAAAQACABFDHDFFvO4kfuAHSc/I4J+605a0CZQpnFUYqRzrMMY0llO4IMILGb8/g2L8XSSZf7bJcPJxxJ7IyOBAzUdLvQE=G4rxyo9tNCjr4//jLcrNO6QGcs8dN6oXZG4EcxrBL7I=foXAQwTbW6GMWcQveWsH0bvv8co+7SpYjlnP+x7DtWNolEFKZ0YTBicq/QXZVxn7FhOg1fRQytouHFrC0Nh+ns6ljrB/mOOVWZZC/twWXK4mkYUlghWBte7MZsuWYYdoC1xTLeGaZFQqY3OBRe9POUcYDJCO61o7utylALqAa53G78hsfeKGsk7jq/q+6OWtKg/eV8P0FUAI3vDWisPAfi2USm44VpMMVFdzXBSX3Fdt2+/O9drrurLt6G+byoU+AixRPUbhz5tFstAy/8nFz1wd033UmPEPCnW0zBvlDJr4yoTGHEtPAXAeONNJkQ7Iuu3FSDtHaQSCYKoHwiRzmg==oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==AAEAAQ== \ No newline at end of file diff --git a/Pack/Appx/Microsoft.People_8wekyb3d8bbwe.xml b/Pack/Appx/Microsoft.People_8wekyb3d8bbwe.xml new file mode 100644 index 0000000..470bc55 --- /dev/null +++ b/Pack/Appx/Microsoft.People_8wekyb3d8bbwe.xml @@ -0,0 +1 @@ +9NBLGGH10PG8microsoft.people_8wekyb3d8bbwec2c8c71d-a6c2-42f0-9067-9a2a318838522c3f1d47-426d-c7d7-face-ef1add208818False2015-07-18T17:46:46.2244995Z2015-07-18T17:46:46.3109766Z2015-07-18T17:46:46.3109766ZFAAAAKYAAADJAAAACgAAAAMAAQAGkapVAgDLAAAAEAAAAAaDdCgCn9elbe1EWf3a3DHOAAAAPgAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AcABlAG8AcABsAGUAXwA4AHcAZQBrAHkAYgAzAGQAOABiAGIAdwBlAAAAzQAAACIAAAABABYMS+0aAEc6GCj1/UiWnYi34qmXeNqRnqKd/VqhlBaLIAAAAAQAAAAGkapVzAAAAEQAAAABAAIAHsH+/aAs4fbbcJGHssUuKdaC0sGYPMHfyN3Y1p+evZgnEDEK02IiS8uBHybcJGG0T2BWY8TJSdBF/UK98CvbIg==jQNZn0EUMrqkAW3TIoLmsa3YLMnqRuFEf+xNjqTo7tY=K1fBJsrf/uEsKXjtd6T/O4awoWdoVm3A4MltT/IuV7jxRu+iJSb/fRX/oJu7UMjjV/QjZMgLYvZbxa7Ifz+GzVYuZgxnc8MUbyabTd/WXnDFOeeL//6zFzd07kwXeu2KB1wsKzNErUSbQriYWVyEphoAEyrkgNwG4cWmEARblguzJTUkW8bvEGL15aEi+HlkGszyY66NhPdqRWvBsJx+284Ilc/DnJhGhdmaUBlC5qxQq20PsR3MtVfNMRHv3HrvWQyKHlhB3Q9ibmPWPIkZiC72t1M+1Nc8ADbeE76rtG4kIy0IQoCYFF/lq7iC4yze9i4AM387yR3iKY7wUcaxLA==oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==AAEAAQ== \ No newline at end of file diff --git a/Pack/Appx/Microsoft.StorePurchaseApp_8wekyb3d8bbwe.xml b/Pack/Appx/Microsoft.StorePurchaseApp_8wekyb3d8bbwe.xml new file mode 100644 index 0000000..8133602 --- /dev/null +++ b/Pack/Appx/Microsoft.StorePurchaseApp_8wekyb3d8bbwe.xml @@ -0,0 +1 @@ +9NBLGGH4LS1Fmicrosoft.storepurchaseapp_8wekyb3d8bbwea8301a7a-06f7-425e-8fb5-ebfb702440df2c3f1d47-426d-c7d7-face-ef1add208818False2016-04-01T22:02:43.4444915Z2016-04-01T22:02:43.0608594Z2016-04-01T22:02:43.0608594ZFAAAALoAAADJAAAACgAAAAMAAQAD8P5WAgDLAAAAEAAAAAYtUCgpnRSFHl1kRHEW15jOAAAAUgAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AcwB0AG8AcgBlAHAAdQByAGMAaABhAHMAZQBhAHAAcABfADgAdwBlAGsAeQBiADMAZAA4AGIAYgB3AGUAAADNAAAAIgAAAAEAMPDiheq+DxYSDJaaOq7obPBL5IlMNiWK7M2dpI865e8gAAAABAAAAAPw/lbMAAAARAAAAAEAAgCVOMM09off+6NXUn50Ct6Pw0Nc1vQYj/q1lncPdmHi2L06skc87Z+WxfZQmqdsuERDP/S/l3I1ThyK+o9S+73WwnqdrNUltStkbVpNc1Fq5IKTPRvEU6bTBjRLvJ064AE=S0Gc1y9ck1pyaQn0jbLG2eI6Jkw/AjTu9Rpyc1u9qedNB1C5e9jKBLf0B3GTnALSnt87G0dqLZru6kqBLLjXoLUChtxgf4NA8J9MMeQeEWfuFtv1j5rucmvfEsRlU/dKs1q46z7GKzIX0Yl3dAEkbEKAEdUqvdBijjuRDwLckOVz0rBvFZy4qwQ+W2hP0UfgDoHiPdS9vi5VE8odzB0SO/MUxpAT/DuixrWVghqqyU9x+uVMYE9C328mNDTK3bkRiCR/bzl4EsoShTVNxdQrRFnnlB3vaOIUEg5Ge6OkGrYp69M4f82k92rH3OzlQr+qdm2UkKNAMkpI5mrwo2zuGA==oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==AAEAAQ== \ No newline at end of file diff --git a/Pack/Appx/Microsoft.Windows.Photos_8wekyb3d8bbwe.xml b/Pack/Appx/Microsoft.Windows.Photos_8wekyb3d8bbwe.xml new file mode 100644 index 0000000..d4b55bd --- /dev/null +++ b/Pack/Appx/Microsoft.Windows.Photos_8wekyb3d8bbwe.xml @@ -0,0 +1 @@ +9WZDNCRFJBH4microsoft.windows.photos_8wekyb3d8bbwe19c527f5-4c46-4c47-846a-aa0b4646569c2c3f1d47-426d-c7d7-face-ef1add208818False2016-06-28T14:23:53.7271162Z2016-06-28T14:23:53.5159183Z2016-06-28T14:23:53.5159183ZFAAAALYAAADJAAAACgAAAAMAAQB6iHJXAgDLAAAAEAAAABKXXyHKn/ijWxFmDu/HO5bOAAAATgAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AdwBpAG4AZABvAHcAcwAuAHAAaABvAHQAbwBzAF8AOAB3AGUAawB5AGIAMwBkADgAYgBiAHcAZQAAAM0AAAAiAAAAAQCBrbyEbEKhtFUeIwBnGkL9t8KuePnBnIr+YsutD7yQ+iAAAAAEAAAAeohyV8wAAABEAAAAAQACAHRSZLfuRGLpsXe1ZaSPBu0TkUjyyTX/Us0BjD9LoWW6VfU9zwr/a7zG9phDK3t8p9jbKx9e8ICcZOhgxvVWE24=xwnvVV8t61ntnW5Cr1sea/CoWRYGzW5Yb2/NQtO6Jds=AxNLcb7wh8FS6BqlzfloaHrwZrwVDjIlsSRIkFdjPVM/3zYELjaot7g2WivXYxI55lpHiss/M158ZHkTcN6UoIKCXkoI2bV/eBCklWCHTC4GfxegzH9xqrHzeaGWt8UOavY7DYVTf5fLWyFu6dUE+qxq5sGMyNfah+PzG8TfkeFOhs5iUpDmBYhD1J5cgqQRdOa9/m07o35Qrb//MhBxJR/HDMDiL5/RI4z9jqHWTMBHyXO3WAjBjG9pKeO4PAc0q8mPUdD3nw76wrvULTBFksIN8lBTlagXumOvsp+vppg+O7gvTiqmUzRIHTbB1OJg0nbpsTrZ5/ajl/oXRevv2w==oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==AAEAAQ== \ No newline at end of file diff --git a/Pack/Appx/Microsoft.WindowsCalculator_8wekyb3d8bbwe.xml b/Pack/Appx/Microsoft.WindowsCalculator_8wekyb3d8bbwe.xml new file mode 100644 index 0000000..ecbe0d3 --- /dev/null +++ b/Pack/Appx/Microsoft.WindowsCalculator_8wekyb3d8bbwe.xml @@ -0,0 +1 @@ +9WZDNCRFHVN5microsoft.windowscalculator_8wekyb3d8bbwe2cef6183-3af2-42ce-8371-a66a363b065e2c3f1d47-426d-c7d7-face-ef1add208818False2015-06-20T04:41:45.8862033Z2015-06-20T04:41:46.1113922Z2015-06-20T04:41:46.1113922ZFAAAALwAAADJAAAACgAAAAMAAQAK74RVAgDLAAAAEAAAALuX2rzQv3IqPJDIUY89Ce7OAAAAVAAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AdwBpAG4AZABvAHcAcwBjAGEAbABjAHUAbABhAHQAbwByAF8AOAB3AGUAawB5AGIAMwBkADgAYgBiAHcAZQAAAM0AAAAiAAAAAQD0TdIb6f7l3ih++6C/6GJrAVv++78F10B/f1WU76PmzCAAAAAEAAAACu+EVcwAAABEAAAAAQACAJslDdfIydSDrEYrdvtwmzJh5SlItpgU2boVdETm6ObsMwtDIdOqG1BkEOy/4bkQDLy+0Pvi1ElSK8zrDCyhr8o=8fouEe5lOsq7soVfikqEevIUekROnD+yekt8aiWTeGY=EeDA92/FoVat6anQSm8FbCOcWN+b9ZOjQHE8ynCnChuTfpJeaYvlN4+TXZ413ShJyktvjJuYsjdn309RAp1kCQyPnd2X4jZTssWyY/0eA2HwmXtHdv6qOPfIpJDYteZ6kteQK+ik2oOnYFFMi2UcF6SPMGSe+HKngwcA3e4YTA/FenCoMsekLY0lCp74bOUzlWflYhdUQCsbBGSn0YRtAERa7389mwHZLwnU2LpQOyyxDm6Oe1BbEXlbVApO8yIyAE6+K1pYwuNFSHMWhC2f5ak2xcv3ZnsSw89b4ifXkj9TTXHdX5J98thPEydGbnKiD/scrXSwQutN1rfkOWIHxg==oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==AAEAAQ== \ No newline at end of file diff --git a/Pack/Appx/Microsoft.WindowsCommunicationsApps_8wekyb3d8bbwe.xml b/Pack/Appx/Microsoft.WindowsCommunicationsApps_8wekyb3d8bbwe.xml new file mode 100644 index 0000000..a74d47b --- /dev/null +++ b/Pack/Appx/Microsoft.WindowsCommunicationsApps_8wekyb3d8bbwe.xml @@ -0,0 +1 @@ +9WZDNCRFHVQMmicrosoft.windowscommunicationsapps_8wekyb3d8bbwe7e30ad57-f7a9-4ea1-8623-e8c0795018c12c3f1d47-426d-c7d7-face-ef1add208818False2015-07-02T23:23:43.9513876Z2015-07-02T23:23:43.9383359Z2015-07-02T23:23:43.9383359ZFAAAAMwAAADJAAAACgAAAAMAAQAAyJVVAgDLAAAAEAAAAHrzyHG5p/CvbeCbJ2wImtbOAAAAZAAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AdwBpAG4AZABvAHcAcwBjAG8AbQBtAHUAbgBpAGMAYQB0AGkAbwBuAHMAYQBwAHAAcwBfADgAdwBlAGsAeQBiADMAZAA4AGIAYgB3AGUAAADNAAAAIgAAAAEAp4AXmP4fZ4xtDOf6uJxAkVY/EtxysxsXkT09b4dEYxcgAAAABAAAAADIlVXMAAAARAAAAAEAAgDizDO6t93yWFmx5QtIF0zGz7VXrhOTUQ18Hbp7pb4t0vecn1oDzcVWUbPLm0Et98qQoKHS0YCWaDjujWBu57V+hdN46oI2B/uRP5VsWDENCLc5SLeLAFMzbYSmfJSJnHU=MXHCQ+COb6dCgOjCw6OhjDf6jKf3QrZ+Jk3PfGFtYd5TzsM29/D5ubNnIOOlVCCA4896m2135rUW43a8XNqa4JNPPy/Zqi+u0xIWbBF6ZMy5Ue7nojhQbGVs3I07rknb6Q1HIH6EykmVrEAQ+xsKHD9TY38Slh5ZHxCFZ0PrXtG71FGzdV9h1eksdNLeVi6nX8rhjf6DtiH20L+yK7fADy3Jbz7LwRdmGuAJ+Kj8LCMoFAjrtlpF9KUIeyFtV8Um0S/yo88W/+hPnnHY1a7+wWcy8G0pSWbZmOnGpR8dixd1rmP+5qXkQxdxKJmU+DFiCBE/jvvidpBiwW27tYExLQ==oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==AAEAAQ== \ No newline at end of file diff --git a/Pack/Appx/Microsoft.WindowsMaps_8wekyb3d8bbwe.xml b/Pack/Appx/Microsoft.WindowsMaps_8wekyb3d8bbwe.xml new file mode 100644 index 0000000..ffa73ab --- /dev/null +++ b/Pack/Appx/Microsoft.WindowsMaps_8wekyb3d8bbwe.xml @@ -0,0 +1 @@ +9WZDNCRDTBVBmicrosoft.windowsmaps_8wekyb3d8bbwe723cd666-5db8-4c09-a4c3-47b4520b47fb2c3f1d47-426d-c7d7-face-ef1add208818False2015-08-14T18:37:13.4319006Z2015-08-14T18:37:13.4012666Z2015-08-14T18:37:13.4012666ZFAAAALAAAADJAAAACgAAAAMAAQBZNc5VAgDLAAAAEAAAAJhZIh6g+tRfTbdedobuO0fOAAAASAAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AdwBpAG4AZABvAHcAcwBtAGEAcABzAF8AOAB3AGUAawB5AGIAMwBkADgAYgBiAHcAZQAAAM0AAAAiAAAAAQDbvtpJnXPO25lb2W3B4WnK46bY75PR61pzeamlMtfiFyAAAAAEAAAAWTXOVcwAAABEAAAAAQACANN8MZ29hzAWEw4zd4AlJGL05MsxNF9/IVsiGuyVoQMrRkd3Jq10/ZC9/CmVp8kkN2kLric/voBkrt18pOee0Vc=uhTe6JT07JNX3MwvkqYAY94XjcQ+srrbKRR2zu/Qp68=Fc0hwI//A/ItmRw91c1xGImVVNs7ApUXX8UAOlDYNKh5/710Udf6rh/zSyBNLKxqxW34xEKjqliwVgm6mkkN0iI6Zqxb8N54p10vuNLDdYluqY39nlfwpQaZKt8MD92OKbszZJBGvv727HhzuVzkrSZkS7VckrU5yAvDgR2DXaTxOF2EpBUl0B4HfDIhUCYld0FaBKLje7sqXvPXXMnsx5JluBhnX1qHvCDlxBYdqm8zzPy8942afF/m1jzM/0v2KbN8pXYhwmfGaaa6EoybvYbVmlqTsdmOAyiJmevTrSiYX1LpXNT4knKhtE4w275TI3RhG3HS+myLB0McG4AqOA==oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==AAEAAQ== \ No newline at end of file diff --git a/Pack/Appx/Microsoft.WindowsStore_8wekyb3d8bbwe.xml b/Pack/Appx/Microsoft.WindowsStore_8wekyb3d8bbwe.xml new file mode 100644 index 0000000..2353283 --- /dev/null +++ b/Pack/Appx/Microsoft.WindowsStore_8wekyb3d8bbwe.xml @@ -0,0 +1 @@ +9WZDNCRFJBMPmicrosoft.windowsstore_8wekyb3d8bbwe20ae9d1d-4b7d-4c35-b7d6-65e31396efd32c3f1d47-426d-c7d7-face-ef1add208818False2015-06-01T18:28:54.3098854Z2015-06-01T18:28:54.3574657Z2015-06-01T18:28:54.3574657ZFAAAALIAAADJAAAACgAAAAMAAQBmpGxVAgDLAAAAEAAAAPH+T+ZG4jK2WVtWB2o/p3bOAAAASgAAAG0AaQBjAHIAbwBzAG8AZgB0AC4AdwBpAG4AZABvAHcAcwBzAHQAbwByAGUAXwA4AHcAZQBrAHkAYgAzAGQAOABiAGIAdwBlAAAAzQAAACIAAAABAAaf7l9Jp21JeRrJKBhcbP6ODp40LTKLpK3I9WgJHJhOIAAAAAQAAABmpGxVzAAAAEQAAAABAAIAHJNoXjtSbcT3K6z4K6PvH4xijDdLWKmaFiS9nm3Qze7YKZpMaHEm1aiE13HD0bKHyHyl5tAXOn8UgIHHFZ8i6g==RRM/4J8WsRpcxBMBpyvG7aUsW0jEomzv7f++SIVEVDc=ZoYDzCjHhwPTGGBopKxKsXIuvKveOvKlLVFi3inlQUSG/4yJELe1Eu/3e02s2ImCRq/Zxkue+bWXcQG/YdD8MtAQ1Q1BcqqhW3/xQt7cRBX/dwE+SVxvyFr+l7kNkzg8r7UtMMTPHmVsdH5rGR6Ej0kEW8eqUvq9Tbs6MpXFOzwIYrqbwu+LEeWfmL1UZ0DgcGBEGRupgEBzxS362H6R//oReEN0OgSWUhMZcGBuI0rJIOICntxhU/dtsksxGwwoVPheAeCAdDvjZlShWERm0T9aQnOdDqhVY96sH0DTB90GVwXZsvzksXSzdSk4rbjHRinXBS/2HHXu49iy3dXBjg==oVSJXItDsaAIfwyR9bhh/ZSppCAO+in9POLWdC2/TQodgeHZzbdBvxJvKhpbrq6ZP0FsSElLwRoLAmv7zIuVw3Vb7tfQt5bjCDHRAG9fesNlYKV3ybyNrHyzglfZPRB5UJZw32yi03zQa+LLa05fjs6joEmlHc5BrGQrGrbNMBahz4cmuxKC4/dhEb7JZFUkc0MRhs/M3Ve511HQfKuG+92g1OffJdRsAPzWRdskPoN35knnqno7F85OBmGV/LNBgdtDWUH6di1eUCQFeKGfMp+Q/LFUX9jawTTEPn72tYbpYASug05Skcg6KTHlcLGzevxGw7BYsOsqfDka5n0YGw==AAEAAQ== \ No newline at end of file diff --git a/Pack/Association.10.0.xml b/Pack/Association.10.0.xml new file mode 100644 index 0000000..5813adc --- /dev/null +++ b/Pack/Association.10.0.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Pack/Extra/Win32Calc.cmd b/Pack/Extra/Win32Calc.cmd new file mode 100644 index 0000000..a429cf3 --- /dev/null +++ b/Pack/Extra/Win32Calc.cmd @@ -0,0 +1,10 @@ +rem 修复计算器快捷方式显示名称 +pushd "%~1\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories" +findstr /i /c:"Calculator.lnk=" desktop.ini >nul +if errorlevel 1 ( + type desktop.ini>desktop2.ini + echo.Calculator.lnk=@%%SystemRoot%%\system32\shell32.dll,-22019>>desktop2.ini + move /y desktop2.ini desktop.ini >nul + attrib +h +s desktop.ini >nul +) +popd \ No newline at end of file diff --git a/Pack/Extra/Win32Calc.tpk b/Pack/Extra/Win32Calc.tpk new file mode 100644 index 0000000..a25809d Binary files /dev/null and b/Pack/Extra/Win32Calc.tpk differ diff --git a/Pack/Extra/Win32Calc.x64.reg b/Pack/Extra/Win32Calc.x64.reg new file mode 100644 index 0000000..94db8ea --- /dev/null +++ b/Pack/Extra/Win32Calc.x64.reg @@ -0,0 +1,66 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\calculator] +@="URL:calculator" +"URL Protocol"="" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\calculator\DefaultIcon] +@="%SystemRoot%\\System32\\win32calc.exe,0" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\calculator\shell\open\command] +@="%SystemRoot%\\System32\\win32calc.exe" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Management\WindowsFeatureCategories] +"COMMONSTART/Programs/Accessories/Calculator.lnk"="SOFTWARE_CATEGORY_UTILITIES" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ShellCompatibility\InboxApp] +"56230F2FD0CC3EB4_Calculator_lnk_amd64.lnk"=hex(2):43,00,3a,00,5c,00,50,00,72,\ + 00,6f,00,67,00,72,00,61,00,6d,00,44,00,61,00,74,00,61,00,5c,00,4d,00,69,00,\ + 63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,\ + 00,77,00,73,00,5c,00,53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,\ + 75,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,00,5c,00,41,00,63,\ + 00,63,00,65,00,73,00,73,00,6f,00,72,00,69,00,65,00,73,00,5c,00,43,00,61,00,\ + 6c,00,63,00,75,00,6c,00,61,00,74,00,6f,00,72,00,2e,00,6c,00,6e,00,6b,00,00,\ + 00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Calculator/Debug] +"OwningPublisher"="{75f48521-4131-4ac3-9887-65473224fcb2}" +"Enabled"=dword:00000000 +"Isolation"=dword:00000000 +"ChannelAccess"="O:BAG:SYD:(A;;0x2;;;S-1-15-2-1)(A;;0xf0007;;;SY)(A;;0x7;;;BA)(A;;0x7;;;SO)(A;;0x3;;;IU)(A;;0x3;;;SU)(A;;0x3;;;S-1-5-3)(A;;0x3;;;S-1-5-33)(A;;0x1;;;S-1-5-32-573)" +"Type"=dword:00000003 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Calculator/Diagnostic] +"OwningPublisher"="{75f48521-4131-4ac3-9887-65473224fcb2}" +"Enabled"=dword:00000000 +"Isolation"=dword:00000000 +"ChannelAccess"="O:BAG:SYD:(A;;0x2;;;S-1-15-2-1)(A;;0xf0007;;;SY)(A;;0x7;;;BA)(A;;0x7;;;SO)(A;;0x3;;;IU)(A;;0x3;;;SU)(A;;0x3;;;S-1-5-3)(A;;0x3;;;S-1-5-33)(A;;0x1;;;S-1-5-32-573)" +"Type"=dword:00000002 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{75f48521-4131-4ac3-9887-65473224fcb2}] +@="Microsoft-Windows-Calculator" +"ResourceFileName"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\ + 00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\ + 5c,00,77,00,69,00,6e,00,33,00,32,00,63,00,61,00,6c,00,63,00,2e,00,65,00,78,\ + 00,65,00,00,00 +"MessageFileName"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\ + 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\ + 00,77,00,69,00,6e,00,33,00,32,00,63,00,61,00,6c,00,63,00,2e,00,65,00,78,00,\ + 65,00,00,00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{75f48521-4131-4ac3-9887-65473224fcb2}\ChannelReferences] +"Count"=dword:00000002 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{75f48521-4131-4ac3-9887-65473224fcb2}\ChannelReferences\0] +@="Microsoft-Windows-Calculator/Diagnostic" +"Id"=dword:00000010 +"Flags"=dword:00000000 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{75f48521-4131-4ac3-9887-65473224fcb2}\ChannelReferences\1] +@="Microsoft-Windows-Calculator/Debug" +"Id"=dword:00000011 +"Flags"=dword:00000000 + +[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\App Management\WindowsFeatureCategories] +"COMMONSTART/Programs/Accessories/Calculator.lnk"="SOFTWARE_CATEGORY_UTILITIES" + diff --git a/Pack/Extra/Win32Calc.x86.reg b/Pack/Extra/Win32Calc.x86.reg new file mode 100644 index 0000000..efea5ca --- /dev/null +++ b/Pack/Extra/Win32Calc.x86.reg @@ -0,0 +1,63 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\calculator] +@="URL:calculator" +"URL Protocol"="" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\calculator\DefaultIcon] +@="%SystemRoot%\\System32\\win32calc.exe,0" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\calculator\shell\open\command] +@="%SystemRoot%\\System32\\win32calc.exe" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Management\WindowsFeatureCategories] +"COMMONSTART/Programs/Accessories/Calculator.lnk"="SOFTWARE_CATEGORY_UTILITIES" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ShellCompatibility\InboxApp] +"56230F2FD0CC3EB4_Calculator_lnk_x86.lnk"=hex(2):43,00,3a,00,5c,00,50,00,72,\ + 00,6f,00,67,00,72,00,61,00,6d,00,44,00,61,00,74,00,61,00,5c,00,4d,00,69,00,\ + 63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,\ + 00,77,00,73,00,5c,00,53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,\ + 75,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,00,5c,00,41,00,63,\ + 00,63,00,65,00,73,00,73,00,6f,00,72,00,69,00,65,00,73,00,5c,00,43,00,61,00,\ + 6c,00,63,00,75,00,6c,00,61,00,74,00,6f,00,72,00,2e,00,6c,00,6e,00,6b,00,00,\ + 00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Calculator/Debug] +"OwningPublisher"="{75f48521-4131-4ac3-9887-65473224fcb2}" +"Enabled"=dword:00000000 +"Isolation"=dword:00000000 +"ChannelAccess"="O:BAG:SYD:(A;;0x2;;;S-1-15-2-1)(A;;0xf0007;;;SY)(A;;0x7;;;BA)(A;;0x7;;;SO)(A;;0x3;;;IU)(A;;0x3;;;SU)(A;;0x3;;;S-1-5-3)(A;;0x3;;;S-1-5-33)(A;;0x1;;;S-1-5-32-573)" +"Type"=dword:00000003 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Calculator/Diagnostic] +"OwningPublisher"="{75f48521-4131-4ac3-9887-65473224fcb2}" +"Enabled"=dword:00000000 +"Isolation"=dword:00000000 +"ChannelAccess"="O:BAG:SYD:(A;;0x2;;;S-1-15-2-1)(A;;0xf0007;;;SY)(A;;0x7;;;BA)(A;;0x7;;;SO)(A;;0x3;;;IU)(A;;0x3;;;SU)(A;;0x3;;;S-1-5-3)(A;;0x3;;;S-1-5-33)(A;;0x1;;;S-1-5-32-573)" +"Type"=dword:00000002 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{75f48521-4131-4ac3-9887-65473224fcb2}] +@="Microsoft-Windows-Calculator" +"ResourceFileName"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\ + 00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\ + 5c,00,77,00,69,00,6e,00,33,00,32,00,63,00,61,00,6c,00,63,00,2e,00,65,00,78,\ + 00,65,00,00,00 +"MessageFileName"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\ + 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\ + 00,77,00,69,00,6e,00,33,00,32,00,63,00,61,00,6c,00,63,00,2e,00,65,00,78,00,\ + 65,00,00,00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{75f48521-4131-4ac3-9887-65473224fcb2}\ChannelReferences] +"Count"=dword:00000002 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{75f48521-4131-4ac3-9887-65473224fcb2}\ChannelReferences\0] +@="Microsoft-Windows-Calculator/Diagnostic" +"Id"=dword:00000010 +"Flags"=dword:00000000 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{75f48521-4131-4ac3-9887-65473224fcb2}\ChannelReferences\1] +@="Microsoft-Windows-Calculator/Debug" +"Id"=dword:00000011 +"Flags"=dword:00000000 + diff --git a/Pack/Extra/Win32Calc.zh-CN.tpk b/Pack/Extra/Win32Calc.zh-CN.tpk new file mode 100644 index 0000000..747857f Binary files /dev/null and b/Pack/Extra/Win32Calc.zh-CN.tpk differ diff --git a/Pack/NetFx3/.gitignore b/Pack/NetFx3/.gitignore new file mode 100644 index 0000000..c249887 --- /dev/null +++ b/Pack/NetFx3/.gitignore @@ -0,0 +1 @@ +*.cab diff --git a/Pack/Optimize/10.0.reg b/Pack/Optimize/10.0.reg new file mode 100644 index 0000000..7fdc261 --- /dev/null +++ b/Pack/Optimize/10.0.reg @@ -0,0 +1,195 @@ +Windows Registry Editor Version 5.00 + +;显示桌面系统图标 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] +;个人文件夹 +"{59031a47-3f72-44a7-89c5-5595fe6b30ee}"=dword:00000000 +;回收站 +"{645FF040-5081-101B-9F08-00AA002F954E}"=dword:00000000 +;此电脑 +"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000 + +;隐藏此电脑的文件夹 +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{0ddd015d-b06c-45d5-8c4c-f59713854639}\PropertyBag] +"ThisPCPolicy"="Hide" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag] +"ThisPCPolicy"="Hide" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\PropertyBag] +"ThisPCPolicy"="Hide" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{a0c69a99-21c8-4671-8703-7934162fcf1d}\PropertyBag] +"ThisPCPolicy"="Hide" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\PropertyBag] +"ThisPCPolicy"="Hide" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{f42ee2d3-909f-4907-8871-4c22fc0bf756}\PropertyBag] +"ThisPCPolicy"="Hide" +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag] +"ThisPCPolicy"="Hide" + +[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] +;隐藏操作中心任务栏图标 +;"DisableNotificationCenter"=dword:00000001 +;隐藏任务栏人脉 +;"HidePeopleBar"=dword:00000001 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer] +;去掉快捷方式字样 +"link"=hex:00,00,00,00 +;快速访问中不显示最近文件和常用文件夹 +"ShowRecent"=dword:00000000 +"ShowFrequent"=dword:00000000 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] +;显示所有文件扩展名 +"HideFileExt"=dword:00000000 +"Hidden"=dword:00000002 +;不显示复选框 +"AutoCheckSelect"=dword:00000000 +;打开资源管理器时打开此电脑 +"LaunchTo"=dword:00000001 +;开始菜单不显示新安装的项目 +"Start_NotifyNewApps"=dword:00000000 +"Start_TrackProgs"=dword:00000000 +;不显示任务视图按钮 +"ShowTaskViewButton"=dword:00000000 +;禁用资源管理器通知 +"ShowSyncProviderNotifications"=dword:00000000 +;开始按钮右键命令提示符 +"DontUsePowerShellOnWinX"=dword:00000001 + +;隐藏任务栏人脉 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People] +"PeopleBand"=dword:00000000 + +;禁用小娜 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search] +"AllowCortana"=dword:00000000 +"DisableWebSearch"=dword:00000001 +"ConnectedSearchUseWeb"=dword:00000000 +"ConnectedSearchUseWebOverMeteredConnections"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search] +"AllowCortana"=dword:00000000 +"BingSearchEnabled"=dword:00000000 +"CortanaEnabled"=dword:00000000 +"SearchboxTaskbarMode"=dword:00000000 + +;任务栏:"搜索框"变为"搜索图标" +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search] +"SearchboxTaskbarMode"=dword:00000001 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer] +;关闭应用商店中查找应用 +"NoUseStoreOpenWith"=dword:00000001 +;关闭 Aero Shake +"NoWindowMinimizingShortcuts"=dword:00000001 + +;跳过首次打开WMP时出现协议窗口 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer] +"GroupPrivacyAcceptance"=dword:00000001 + +;禁用 Windows Defender +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] +"DisableAntiSpyware"=dword:00000001 +[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SecurityHealthService] +"Start"=dword:00000004 + +;禁用 家庭组 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\HomeGroup] +"DisableHomeGroup"=dword:00000001 + +;屏蔽MRT推送 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MRT] +"DontOfferThroughWUAU"=dword:00000001 + +;禁止自动更新驱动程序 +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching] +"SearchOrderConfig"=dword:00000002 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager] +;禁用预装应用 +"OemPreInstalledAppsEnabled"=dword:00000000 +"PreInstalledAppsEnabled"=dword:00000000 +;禁止自动安装推荐程序 +"SilentInstalledAppsEnabled"=dword:00000000 +;开始菜单禁用建议 +"SystemPaneSuggestionsEnabled"=dword:00000000 +"SubscribedContent-338388Enabled"=dword:00000000 +;禁止获取技巧和建议 +"SoftLandingEnabled"=dword:00000000 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent] +"DisableWindowsConsumerFeatures"=dword:00000001 + +;Win10标题栏彩色 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM] +"ColorPrevalence"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize] +"ColorPrevalence"=dword:00000001 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge] +"PreventFirstRunPage"=dword:00000001 + +;IE优化 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] +"Start Page"="about:blank" +"AlwaysShowMenus"=dword:00000000 +"RunOnceHasShown"=dword:00000001 +"RunOnceComplete"=dword:00000001 +"DisableFirstRunCustomize"=dword:00000001 +"Isolation"="PMIL" +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\LinksBar] +"Enabled"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar] +"Locked"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar\WebBrowser] +"ITBar7Position"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TabbedBrowsing] +"WarnOnClose"=dword:00000000 +"OpenInForeground"=dword:00000001 +"OpenAllHomePages"=dword:00000000 +"PopupsUseNewWindow"=dword:00000002 +"ShortcutBehavior"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes] +"DefaultScope"="{4FF09968-687A-4D3C-B68E-C877DE114418}" +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{4FF09968-687A-4D3C-B68E-C877DE114418}] +"DisplayName"="百度一下" +"URL"="http://www.baidu.com/s?wd={searchTerms}&ie=utf-8" +"ShowSearchSuggestions"=dword:00000001 +"FaviconURL"="http://www.baidu.com/favicon.ico" +"SuggestionsURL"="" +"SuggestionsURL_JSON"="http://suggestion.baidu.com/su?wd={searchTerms}&action=opensearch&ie={inputEncoding}&from=ie8" +"PreviewURL"="" +[-HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{0633EE93-D776-472f-A0FF-E1416B8B2E3A}] +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{0633EE93-D776-472f-A0FF-E1416B8B2E3A}] +"Deleted"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Activities\地图\bing.com] +"Enabled"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Activities\电子邮件\live.com] +"Enabled"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Activities\翻译\microsofttranslator.com] +"Enabled"=dword:00000000 +;IE去广告 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Safety\PrivacIE] +"FilteringMode"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\{77C8DF8B-9502-4FE8-837C-00077879A1C8}] +"Name"="EasyList China+EasyList" +"Url"="http://easylist-msie.adblockplus.org/easylistchina+easylist.tpl" +"Enabled"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\{EA4CFFF6-9FDE-45F3-8129-739D045B5ECD}] +"Name"="Fanboy Adblock List" +"Url"="http://www.fanboy.co.nz/adblock/ie/fanboy-noele.tpl" +"Enabled"=dword:00000001 +;隐藏IE右上角的笑脸 +[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions] +"NoHelpItemSendFeedback"=dword:00000001 +;在单独一行上显示选项卡 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MINIE] +"ShowTabsBelowAddressBar"=dword:00000000 + +;UTC 时间 +;[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation] +;"RealTimeIsUniversal"=dword:00000001 + +;取消OneDrive安装 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run] +"OneDriveSetup"=- +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] +"SecurityHealth"=- \ No newline at end of file diff --git a/Pack/Optimize/10.0.x64.reg b/Pack/Optimize/10.0.x64.reg new file mode 100644 index 0000000..697d0ea --- /dev/null +++ b/Pack/Optimize/10.0.x64.reg @@ -0,0 +1,18 @@ +Windows Registry Editor Version 5.00 +;64位系统额外选项 + +;隐藏此电脑的文件夹 +[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{0ddd015d-b06c-45d5-8c4c-f59713854639}\PropertyBag] +"ThisPCPolicy"="Hide" +[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag] +"ThisPCPolicy"="Hide" +[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\PropertyBag] +"ThisPCPolicy"="Hide" +[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{a0c69a99-21c8-4671-8703-7934162fcf1d}\PropertyBag] +"ThisPCPolicy"="Hide" +[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\PropertyBag] +"ThisPCPolicy"="Hide" +[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{f42ee2d3-909f-4907-8871-4c22fc0bf756}\PropertyBag] +"ThisPCPolicy"="Hide" +[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag] +"ThisPCPolicy"="Hide" \ No newline at end of file diff --git a/Pack/Optimize/6.1.reg b/Pack/Optimize/6.1.reg new file mode 100644 index 0000000..499a5d3 --- /dev/null +++ b/Pack/Optimize/6.1.reg @@ -0,0 +1,127 @@ +Windows Registry Editor Version 5.00 + +;屏蔽IE11推送 +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\11.0] +"DoNotAllowIE11"=dword:00000001 +;屏蔽IE10推送 +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\10.0] +"DoNotAllowIE10"=dword:00000001 +;屏蔽IE9推送 +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\9.0] +"DoNotAllowIE90"=dword:00000001 + +;屏蔽MRT推送 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MRT] +"DontOfferThroughWUAU"=dword:00000001 + +;显示桌面系统图标 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] +;个人文件夹 +"{59031a47-3f72-44a7-89c5-5595fe6b30ee}"=dword:00000000 +;回收站 +"{645FF040-5081-101B-9F08-00AA002F954E}"=dword:00000000 +;此电脑 +"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer] +;去掉快捷方式字样 +"link"=hex:00,00,00,00 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] +;显示运行 +"Start_ShowRun"=dword:00000001 +;禁止高亮显示新安装的程序(开始菜单) +"Start_NotifyNewApps"=dword:00000000 +;显示所有文件扩展名 +"HideFileExt"=dword:00000000 + +;取消游戏里“下载有关已安装游戏的技巧和信息”和“收集最近玩过的游戏信息” +[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\GameUX] +"FirstRunDialogLaunched"=dword:00000001 +"DownLoadGameInfo"=dword:00000000 +"ListRecentlyPlayed"=dword:00000000 + +;语言栏隐藏到任务拦 +[HKEY_CURRENT_USER\Software\Microsoft\CTF\MSUTB] +"ShowDeskBand"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar] +"ShowStatus"=dword:00000004 +"ExtraIconsOnMinimized"=dword:00000000 + +;隐藏操作中心 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] +"HideSCAHealth"=dword:00000001 + +;关闭驱动程序验证 +[HKEY_CURRENT_USER\Software\Microsoft\Driver Signing] +"Policy"=dword:00000001 +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Driver Signing] +"Policy"=hex:01 +[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Driver Signing] +"BehaviorOnFailedVerify"=dword:00000001 + +;关闭UAC通知 +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center] +"UacDisableNotify"=dword:00000001 + +;跳过首次打开WMP时出现协议窗口 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer] +"GroupPrivacyAcceptance"=dword:00000001 + +;禁用 家庭组 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\HomeGroup] +"DisableHomeGroup"=dword:00000001 + +;IE优化 +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main] +"DisableFirstRunCustomize"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] +"Start Page"="about:blank" +"AlwaysShowMenus"=dword:00000000 +"RunOnceHasShown"=dword:00000001 +"RunOnceComplete"=dword:00000001 +"Isolation"="PMIL" +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\LinksBar] +"Enabled"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar] +"Locked"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar\WebBrowser] +"ITBar7Position"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TabbedBrowsing] +"WarnOnClose"=dword:00000000 +"OpenInForeground"=dword:00000001 +"OpenAllHomePages"=dword:00000000 +"PopupsUseNewWindow"=dword:00000002 +"ShortcutBehavior"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes] +"DefaultScope"="{4FF09968-687A-4D3C-B68E-C877DE114418}" +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{4FF09968-687A-4D3C-B68E-C877DE114418}] +"DisplayName"="百度一下" +"URL"="http://www.baidu.com/s?wd={searchTerms}&ie=utf-8" +"ShowSearchSuggestions"=dword:00000001 +"FaviconURL"="http://www.baidu.com/favicon.ico" +"SuggestionsURL"="" +"SuggestionsURL_JSON"="http://suggestion.baidu.com/su?wd={searchTerms}&action=opensearch&ie={inputEncoding}&from=ie8" +"PreviewURL"="" +[-HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{0633EE93-D776-472f-A0FF-E1416B8B2E3A}] +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{0633EE93-D776-472f-A0FF-E1416B8B2E3A}] +"Deleted"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Activities\地图\bing.com] +"Enabled"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Activities\电子邮件\live.com] +"Enabled"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Activities\翻译\microsofttranslator.com] +"Enabled"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Activities\博客\live.com] +"Enabled"=dword:00000000 +;IE去广告 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Safety\PrivacIE] +"FilteringMode"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\{77C8DF8B-9502-4FE8-837C-00077879A1C8}] +"Name"="EasyList China+EasyList" +"Url"="http://easylist-msie.adblockplus.org/easylistchina+easylist.tpl" +"Enabled"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\{EA4CFFF6-9FDE-45F3-8129-739D045B5ECD}] +"Name"="Fanboy Adblock List" +"Url"="http://www.fanboy.co.nz/adblock/ie/fanboy-noele.tpl" +"Enabled"=dword:00000001 \ No newline at end of file diff --git a/Pack/Optimize/6.3.reg b/Pack/Optimize/6.3.reg new file mode 100644 index 0000000..49e3813 --- /dev/null +++ b/Pack/Optimize/6.3.reg @@ -0,0 +1,117 @@ +Windows Registry Editor Version 5.00 + +;显示桌面系统图标 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] +"{59031a47-3f72-44a7-89c5-5595fe6b30ee}"=dword:00000000 +"{645FF040-5081-101B-9F08-00AA002F954E}"=dword:00000000 +"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000 +"{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000000 + +;隐藏我的电脑里的六个文件夹 +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}] + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer] +;关闭应用商店中查找应用 +"NoUseStoreOpenWith"=dword:00000001 +;关闭 Aero Shake +"NoWindowMinimizingShortcuts"=dword:00000001 + +;跳过首次打开WMP时出现协议窗口 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer] +"GroupPrivacyAcceptance"=dword:00000001 +;禁用 Windows Defender +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] +"DisableAntiSpyware"=dword:00000001 +;禁用 家庭组 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\HomeGroup] +"DisableHomeGroup"=dword:00000001 + +;屏蔽MRT推送 +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MRT] +"DontOfferThroughWUAU"=dword:00000001 + +;禁止自动更新驱动程序 +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching] +"SearchOrderConfig"=dword:00000002 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] +;显示所有文件扩展名 +"HideFileExt"=dword:00000000 +"Hidden"=dword:00000002 +;不显示复选框 +"AutoCheckSelect"=dword:00000000 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer] +;去掉快捷方式字样 +"link"=hex:00,00,00,00 +;快速访问中不显示最近文件和常用文件夹 +"ShowRecent"=dword:00000000 +"ShowFrequent"=dword:00000000 + +;IE优化 +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main] +"DisableFirstRunCustomize"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] +"Start Page"="about:blank" +"AlwaysShowMenus"=dword:00000000 +"RunOnceHasShown"=dword:00000001 +"RunOnceComplete"=dword:00000001 +"Isolation"="PMIL" +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\LinksBar] +"Enabled"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar] +"Locked"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar\WebBrowser] +"ITBar7Position"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TabbedBrowsing] +"WarnOnClose"=dword:00000000 +"OpenInForeground"=dword:00000001 +"OpenAllHomePages"=dword:00000000 +"PopupsUseNewWindow"=dword:00000002 +"ShortcutBehavior"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes] +"DefaultScope"="{4FF09968-687A-4D3C-B68E-C877DE114418}" +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{4FF09968-687A-4D3C-B68E-C877DE114418}] +"DisplayName"="百度一下" +"URL"="http://www.baidu.com/s?wd={searchTerms}&ie=utf-8" +"ShowSearchSuggestions"=dword:00000001 +"FaviconURL"="http://www.baidu.com/favicon.ico" +"SuggestionsURL"="" +"SuggestionsURL_JSON"="http://suggestion.baidu.com/su?wd={searchTerms}&action=opensearch&ie={inputEncoding}&from=ie8" +"PreviewURL"="" +[-HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{0633EE93-D776-472f-A0FF-E1416B8B2E3A}] +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{0633EE93-D776-472f-A0FF-E1416B8B2E3A}] +"Deleted"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Activities\地图\bing.com] +"Enabled"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Activities\电子邮件\live.com] +"Enabled"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Activities\翻译\microsofttranslator.com] +"Enabled"=dword:00000000 +;IE去广告 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Safety\PrivacIE] +"FilteringMode"=dword:00000000 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\{77C8DF8B-9502-4FE8-837C-00077879A1C8}] +"Name"="EasyList China+EasyList" +"Url"="http://easylist-msie.adblockplus.org/easylistchina+easylist.tpl" +"Enabled"=dword:00000001 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\{EA4CFFF6-9FDE-45F3-8129-739D045B5ECD}] +"Name"="Fanboy Adblock List" +"Url"="http://www.fanboy.co.nz/adblock/ie/fanboy-noele.tpl" +"Enabled"=dword:00000001 +;在单独一行上显示选项卡 +[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MINIE] +"ShowTabsBelowAddressBar"=dword:00000000 + +;UTC 时间 +;[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation] +;"RealTimeIsUniversal"=dword:00000001 + +;取消OneDrive安装 +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run] +"OneDriveSetup"=- \ No newline at end of file diff --git a/Pack/Optimize/6.3.x64.reg b/Pack/Optimize/6.3.x64.reg new file mode 100644 index 0000000..9430995 --- /dev/null +++ b/Pack/Optimize/6.3.x64.reg @@ -0,0 +1,10 @@ +Windows Registry Editor Version 5.00 +;64位系统额外选项 + +;隐藏我的电脑里的六个文件夹 +[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}] +[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}] +[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}] +[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}] +[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}] +[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}] \ No newline at end of file diff --git a/Pack/Optimize/Context.reg b/Pack/Optimize/Context.reg new file mode 100644 index 0000000..cfd9a03 --- /dev/null +++ b/Pack/Optimize/Context.reg @@ -0,0 +1,44 @@ +Windows Registry Editor Version 5.00 + +;英特尔集显右键菜单 +;[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shellex\ContextMenuHandlers\igfxDTCM] +;[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shellex\ContextMenuHandlers\igfxcui] +;右键 "兼容性疑难解答" +;[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shellex\ContextMenuHandlers\Compatibility] +;[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Msi.Package\shellex\ContextMenuHandlers\Compatibility] +;[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shellex\ContextMenuHandlers\Compatibility] +;[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shellex\ContextMenuHandlers\Compatibility] +;右键 "Windows Defender扫描" +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shellex\ContextMenuHandlers\EPP] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\EPP] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\EPP] +;磁盘右键 "启用Bitlocker" +;[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\encrypt-bde\command] +;[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\encrypt-bde] +;[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\encrypt-bde-elev\command] +;[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\encrypt-bde-elev] +;磁盘右键 "以便携方式打开" +;[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shellex\ContextMenuHandlers\{D6791A63-E7E2-4fee-BF52-5DED8E86E9B8}] +;移除右键新建 ZIP +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.contact\ShellNew] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.rar\ShellNew] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.zip\ShellNew] +;磁盘右键 "刻录到光盘" +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shellex\ContextMenuHandlers\{fbeb8a05-beee-4442-804e-409d6c4515e9}] +;右键 "共享" +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\ModernSharing] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\Sharing] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\Sharing] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shellex\ContextMenuHandlers\Sharing] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shellex\ContextMenuHandlers\Sharing] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\LibraryFolder\background\shellex\ContextMenuHandlers\Sharing] +;右键 "固定到快速访问" +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\pintohome\command] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\pintohome] +;右键 "工作文件夹" +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\WorkFolders] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shellex\ContextMenuHandlers\WorkFolders] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AllFilesystemObjects\shell\LaunchWorkfoldersControl\command] +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AllFilesystemObjects\shell\LaunchWorkfoldersControl] +;右键 "包含到库中" +[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\Library Location] diff --git a/Pack/Optimize/Photo.cmd b/Pack/Optimize/Photo.cmd new file mode 100644 index 0000000..2da647d --- /dev/null +++ b/Pack/Optimize/Photo.cmd @@ -0,0 +1,74 @@ +:: Importing Registry Settings for Setting Windows Photo Viewer as the Default Photo Viewer +Reg add "HKLM\TK_SOFTWARE\Classes\Applications\photoviewer.dll\shell\open" /v "MuiVerb" /t REG_SZ /d "@photoviewer.dll,-3043" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\Applications\photoviewer.dll\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\Applications\photoviewer.dll\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\Applications\photoviewer.dll\shell\print\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\Applications\photoviewer.dll\shell\print\DropTarget" /v "Clsid" /t REG_SZ /d "{60fd46de-f830-4894-a628-6fa81bc0190d}" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Gif" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3057" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Gif" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Gif\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-83" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Gif\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Gif\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF" /v "EditFlags" /t REG_DWORD /d "65536" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3055" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-72" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF\shell\open" /v "MuiVerb" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3043" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.JFIF\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg" /v "EditFlags" /t REG_DWORD /d "65536" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3055" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-72" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg\shell\open" /v "MuiVerb" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3043" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Jpeg\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Png" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3057" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Png" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Png\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-71" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Png\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Png\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Tiff" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3058" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Tiff" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Tiff\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-122" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Tiff\shell\open" /v "MuiVerb" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3043" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Tiff\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Tiff\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Wdp" /v "EditFlags" /t REG_DWORD /d "65536" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Wdp" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Wdp\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\wmphoto.dll,-400" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Wdp\shell\open" /v "MuiVerb" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3043" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Wdp\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Wdp\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Bitmap" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3056" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Bitmap" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Bitmap\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-70" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Bitmap\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f >nul +Reg add "HKLM\TK_SOFTWARE\Classes\PhotoViewer.FileAssoc.Bitmap\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities" /v "ApplicationDescription" /t REG_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3069" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities" /v "ApplicationName" /t REG_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3009" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".bmp" /t REG_SZ /d "PhotoViewer.FileAssoc.Bitmap" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".dib" /t REG_SZ /d "PhotoViewer.FileAssoc.Bitmap" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".gif" /t REG_SZ /d "PhotoViewer.FileAssoc.Gif" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jfif" /t REG_SZ /d "PhotoViewer.FileAssoc.JFIF" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpe" /t REG_SZ /d "PhotoViewer.FileAssoc.Jpeg" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpeg" /t REG_SZ /d "PhotoViewer.FileAssoc.Jpeg" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpg" /t REG_SZ /d "PhotoViewer.FileAssoc.Jpeg" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jxr" /t REG_SZ /d "PhotoViewer.FileAssoc.Wdp" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".png" /t REG_SZ /d "PhotoViewer.FileAssoc.Png" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".tif" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".tiff" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f >nul +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".wdp" /t REG_SZ /d "PhotoViewer.FileAssoc.Wdp" /f >nul + +rem Removing Edit with Paint 3D Option Right Click Context Menu Registry Keys +Reg delete "HKLM\TK_SOFTWARE\Classes\SystemFileAssociations\.3mf\Shell\3D Edit" /f >nul 2>&1 +Reg delete "HKLM\TK_SOFTWARE\Classes\SystemFileAssociations\.bmp\Shell\3D Edit" /f >nul 2>&1 +Reg delete "HKLM\TK_SOFTWARE\Classes\SystemFileAssociations\.fbx\Shell\3D Edit" /f >nul 2>&1 +Reg delete "HKLM\TK_SOFTWARE\Classes\SystemFileAssociations\.gif\Shell\3D Edit" /f >nul 2>&1 +Reg delete "HKLM\TK_SOFTWARE\Classes\SystemFileAssociations\.jfif\Shell\3D Edit" /f >nul 2>&1 +Reg delete "HKLM\TK_SOFTWARE\Classes\SystemFileAssociations\.jpe\Shell\3D Edit" /f >nul 2>&1 +Reg delete "HKLM\TK_SOFTWARE\Classes\SystemFileAssociations\.jpeg\Shell\3D Edit" /f >nul 2>&1 +Reg delete "HKLM\TK_SOFTWARE\Classes\SystemFileAssociations\.jpg\Shell\3D Edit" /f >nul 2>&1 +Reg delete "HKLM\TK_SOFTWARE\Classes\SystemFileAssociations\.png\Shell\3D Edit" /f >nul 2>&1 +Reg delete "HKLM\TK_SOFTWARE\Classes\SystemFileAssociations\.tif\Shell\3D Edit" /f >nul 2>&1 +Reg delete "HKLM\TK_SOFTWARE\Classes\SystemFileAssociations\.tiff\Shell\3D Edit" /f >nul 2>&1 \ No newline at end of file diff --git a/Pack/Optimize/Server.reg b/Pack/Optimize/Server.reg new file mode 100644 index 0000000..a16163e --- /dev/null +++ b/Pack/Optimize/Server.reg @@ -0,0 +1 @@ +Windows Registry Editor Version 5.00 ;禁用按 CTRL+ALT+DEL [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] "DisableCAD"=dword:00000001 ;禁用按锁屏画面 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization] "NoLockScreen"=dword:00000001 ;禁用关机事件跟踪 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsNT\Reliability] "ShutdownReasonOn"=dword:00000000 "ShutdownReasonUI"=dword:00000000 ;启动不显示管理您的服务器 [HKEY_CURRENT_USER\SOFTWARE\Microsoft\ServerManager] "DoNotOpenServerManagerAtLogon"=dword:00000001 \ No newline at end of file diff --git a/Pack/Optimize/Synaptics.reg b/Pack/Optimize/Synaptics.reg new file mode 100644 index 0000000..1a54ccb --- /dev/null +++ b/Pack/Optimize/Synaptics.reg @@ -0,0 +1 @@ +Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Synaptics\SynTP\TouchPadPS2TM1800] "2FingerTapAction"=dword:00000002 [HKEY_LOCAL_MACHINE\SOFTWARE\Synaptics\SynTP\Win10] "2FingerTapAction"=dword:00000002 ;[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2TM1800\2FHorizontalScrolling] ;"UserZoneFlags"=dword:00000005 ;[HKEY_CURRENT_USER\Software\Synaptics\SynTPEnh\ZoneConfig\TouchPadPS2TM1800\2FVerticalScrolling] ;"UserZoneFlags"=dword:00000005 \ No newline at end of file diff --git a/Pack/RemoveList.10.0.15063.x64.txt b/Pack/RemoveList.10.0.15063.x64.txt new file mode 100644 index 0000000..e897fff --- /dev/null +++ b/Pack/RemoveList.10.0.15063.x64.txt @@ -0,0 +1,57 @@ +;遥测服务 +Microsoft-OneCore-TroubleShooting-Package +Microsoft-OneCore-TroubleShooting-WOW64-Package +Microsoft-OneCore-AllowTelemetry-Reduced-Default-Package +Microsoft-Windows-ContentDeliveryManager-Package +;Edge浏览器 +Microsoft-Windows-Internet-Browser-Package +;帮助支持 +Microsoft-Windows-ContactSupport-Package +;混合现实服务 +Microsoft-OneCore-Analog-Capture-AppCapture-Stub-Package +Microsoft-OneCore-Analog-PerceptionApi-Stub-Package +Microsoft-Windows-Client-Features-Package-AutoMerged-analog +Microsoft-Windows-Client-Features-WOW64-Package-AutoMerged-analog +Microsoft-Windows-Holographic-Desktop-Analog-Package +Microsoft-Windows-Holographic-Desktop-Merged-Package +Microsoft-Windows-Holographic-Desktop-Merged-WOW64-Package +;快速助手 +Microsoft-Windows-QuickAssist-Package +;连接 +Microsoft-Windows-Non-LTSB-RegulatedPackages-Package +;离线文件 +Microsoft-Windows-RetailDemo-OfflineContent-Content-Package +Microsoft-Windows-RetailDemo-OfflineContent-Content-zh-CN-Package +Microsoft-Windows-OfflineFiles-Package +Microsoft-Windows-OfflineFiles-WOW64-Package +;文件管理器 +Microsoft-Windows-DesktopFileExplorer-Package +;OneDrive +Microsoft-Windows-OneDrive-Setup-Package +Microsoft-Windows-OneDrive-Setup-WOW64-Package +;Hyper-V +Microsoft-Hyper-V-ClientEdition-Package +;Microsoft-Hyper-V-ClientEdition-WOW64-Package +;Microsoft-Hyper-V-ServerEdition-Package +;Microsoft-Hyper-V-ServerEdition-WOW64-Package +HyperV-Guest-DynamicMemory-Package +HyperV-Guest-Heartbeat-Package +HyperV-Guest-IcSvcExt-Package +HyperV-Guest-KMCL-Package +HyperV-Guest-KvpExchange-Package +HyperV-Guest-Networking-Emulated-Package +HyperV-Guest-Networking-Synthetic-Package +HyperV-Guest-Networking-SrIov-Package +HyperV-Guest-RemoteFx-Package +HyperV-Guest-Shutdown-Package +HyperV-Guest-Storage-Filter-Package +HyperV-Guest-Storage-Synthetic-Package +HyperV-Guest-TimeSync-Package +HyperV-Guest-VmBus-Package +HyperV-HvSocket-WOW64-Package +Microsoft-Windows-HyperV-Guest-Package +Microsoft-Windows-HyperV-Guest-WOW64-Package +HyperV-Feature-ApplicationGuard-Package +HyperV-Feature-Containers-Package +HyperV-Host-Compute-Interop-Package +HyperV-Host-Compute-PowerShell-Module-Package \ No newline at end of file diff --git a/Pack/RemoveList.10.0.15063.x86.txt b/Pack/RemoveList.10.0.15063.x86.txt new file mode 100644 index 0000000..b9f714b --- /dev/null +++ b/Pack/RemoveList.10.0.15063.x86.txt @@ -0,0 +1,48 @@ +;遥测服务 +Microsoft-OneCore-TroubleShooting-Package +Microsoft-OneCore-AllowTelemetry-Reduced-Default-Package +Microsoft-Windows-ContentDeliveryManager-Package +;Edge浏览器 +Microsoft-Windows-Internet-Browser-Package +;帮助支持 +Microsoft-Windows-ContactSupport-Package +;混合现实服务 +Microsoft-OneCore-Analog-Capture-AppCapture-Stub-Package +Microsoft-OneCore-Analog-PerceptionApi-Stub-Package +Microsoft-Windows-Client-Features-Package-AutoMerged-analog +Microsoft-Windows-Holographic-Desktop-Analog-Package +Microsoft-Windows-Holographic-Desktop-Merged-Package +;快速助手 +Microsoft-Windows-QuickAssist-Package +;连接 +Microsoft-Windows-Non-LTSB-RegulatedPackages-Package +;离线文件 +Microsoft-Windows-RetailDemo-OfflineContent-Content-Package +Microsoft-Windows-RetailDemo-OfflineContent-Content-zh-CN-Package +Microsoft-Windows-OfflineFiles-Package +;文件管理器 +Microsoft-Windows-DesktopFileExplorer-Package +;OneDrive +Microsoft-Windows-OneDrive-Setup-Package +;Hyper-V +Microsoft-Hyper-V-ClientEdition-Package +HyperV-Guest-DynamicMemory-Package +HyperV-Guest-Heartbeat-Package +HyperV-Guest-IcSvcExt-Package +HyperV-Guest-KMCL-Package +HyperV-Guest-KvpExchange-Package +HyperV-Guest-Networking-Emulated-Package +HyperV-Guest-Networking-Synthetic-Package +HyperV-Guest-Networking-SrIov-Package +HyperV-Guest-RemoteFx-Package +HyperV-Guest-Shutdown-Package +HyperV-Guest-Storage-Filter-Package +HyperV-Guest-Storage-Synthetic-Package +HyperV-Guest-TimeSync-Package +HyperV-Guest-VmBus-Package +HyperV-HvSocket-Package +Microsoft-Windows-HyperV-Guest-Package +HyperV-Feature-ApplicationGuard-Package +HyperV-Feature-Containers-Package +HyperV-Host-Compute-Interop-Package +HyperV-Host-Compute-PowerShell-Module-Package \ No newline at end of file diff --git a/Pack/RemoveList.10.0.16299.x64.txt b/Pack/RemoveList.10.0.16299.x64.txt new file mode 100644 index 0000000..2a7679c --- /dev/null +++ b/Pack/RemoveList.10.0.16299.x64.txt @@ -0,0 +1,49 @@ +;遥测服务 +Microsoft-Windows-ContentDeliveryManager-Package +;Edge浏览器 +Microsoft-Windows-Internet-Browser-Package +;混合现实服务 +Microsoft-Windows-Holographic-Desktop-Analog-Package +Microsoft-Windows-Holographic-Desktop-Merged-Package +Microsoft-Windows-Holographic-Desktop-Merged-WOW64-Package +;快速助手 +Microsoft-Windows-QuickAssist-Package +;连接 +Microsoft-Windows-Non-LTSB-RegulatedPackages-Package +;离线文件 +Microsoft-Windows-OfflineFiles-Package +Microsoft-Windows-OfflineFiles-WOW64-Package +;OneDrive +Microsoft-Windows-OneDrive-Setup-Package +Microsoft-Windows-OneDrive-Setup-WOW64-Package +;文件管理器 +Microsoft-Windows-DesktopFileExplorer-Package +;Skype视频 +Microsoft-Windows-Skype-ORTC-Package +Microsoft-Windows-Skype-ORTC-WOW64-Package +;Hyper-V +Microsoft-Hyper-V-ClientEdition-Package +;Microsoft-Hyper-V-ClientEdition-WOW64-Package +;Microsoft-Hyper-V-ServerEdition-Package +;Microsoft-Hyper-V-ServerEdition-WOW64-Package +HyperV-Guest-DynamicMemory-Package +HyperV-Guest-Heartbeat-Package +HyperV-Guest-IcSvcExt-Package +HyperV-Guest-KMCL-Package +HyperV-Guest-KvpExchange-Package +HyperV-Guest-Networking-Emulated-Package +HyperV-Guest-Networking-Synthetic-Package +HyperV-Guest-Networking-SrIov-Package +HyperV-Guest-RemoteFx-Package +HyperV-Guest-Shutdown-Package +HyperV-Guest-Storage-Filter-Package +HyperV-Guest-Storage-Synthetic-Package +HyperV-Guest-TimeSync-Package +HyperV-Guest-VmBus-Package +HyperV-HvSocket-WOW64-Package +Microsoft-Windows-HyperV-Guest-Package +Microsoft-Windows-HyperV-Guest-WOW64-Package +HyperV-Feature-ApplicationGuard-Package +HyperV-Feature-Containers-Package +HyperV-Host-Compute-Interop-Package +HyperV-Host-Compute-PowerShell-Module-Package diff --git a/Pack/RemoveList.10.0.16299.x86.txt b/Pack/RemoveList.10.0.16299.x86.txt new file mode 100644 index 0000000..744ac9a --- /dev/null +++ b/Pack/RemoveList.10.0.16299.x86.txt @@ -0,0 +1,41 @@ +;遥测服务 +Microsoft-Windows-ContentDeliveryManager-Package +;Edge浏览器 +Microsoft-Windows-Internet-Browser-Package +;混合现实服务 +Microsoft-Windows-Holographic-Desktop-Analog-Package +Microsoft-Windows-Holographic-Desktop-Merged-Package +;快速助手 +Microsoft-Windows-QuickAssist-Package +;连接 +Microsoft-Windows-Non-LTSB-RegulatedPackages-Package +;离线文件 +Microsoft-Windows-OfflineFiles-Package +;OneDrive +Microsoft-Windows-OneDrive-Setup-Package +;文件管理器 +Microsoft-Windows-DesktopFileExplorer-Package +;Skype视频 +Microsoft-Windows-Skype-ORTC-Package +;Hyper-V +Microsoft-Hyper-V-ClientEdition-Package +HyperV-Guest-DynamicMemory-Package +HyperV-Guest-Heartbeat-Package +HyperV-Guest-IcSvcExt-Package +HyperV-Guest-KMCL-Package +HyperV-Guest-KvpExchange-Package +HyperV-Guest-Networking-Emulated-Package +HyperV-Guest-Networking-Synthetic-Package +HyperV-Guest-Networking-SrIov-Package +HyperV-Guest-RemoteFx-Package +HyperV-Guest-Shutdown-Package +HyperV-Guest-Storage-Filter-Package +HyperV-Guest-Storage-Synthetic-Package +HyperV-Guest-TimeSync-Package +HyperV-Guest-VmBus-Package +HyperV-HvSocket-Package +Microsoft-Windows-HyperV-Guest-Package +HyperV-Feature-ApplicationGuard-Package +HyperV-Feature-Containers-Package +HyperV-Host-Compute-Interop-Package +HyperV-Host-Compute-PowerShell-Module-Package \ No newline at end of file diff --git a/Pack/RollupFix/.gitignore b/Pack/RollupFix/.gitignore new file mode 100644 index 0000000..c249887 --- /dev/null +++ b/Pack/RollupFix/.gitignore @@ -0,0 +1 @@ +*.cab diff --git a/Pack/Scripts/SetupComplete.cmd b/Pack/Scripts/SetupComplete.cmd new file mode 100644 index 0000000..37236cb --- /dev/null +++ b/Pack/Scripts/SetupComplete.cmd @@ -0,0 +1,8 @@ +@echo off +powercfg /h off +RMDIR /S /Q "%WINDIR%\Panther" +%~dp0"AAct.exe" /taskwin /wingvlk /win=act +cd %~dp0 +attrib -R -A -S -H *.* +RMDIR /S /Q "%WINDIR%\Setup\Scripts" +exit \ No newline at end of file diff --git a/Pack/StartLayout.xml b/Pack/StartLayout.xml new file mode 100644 index 0000000..6b1275b --- /dev/null +++ b/Pack/StartLayout.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Pack/Unattend.10.0.xml b/Pack/Unattend.10.0.xml new file mode 100644 index 0000000..d8fd667 --- /dev/null +++ b/Pack/Unattend.10.0.xml @@ -0,0 +1,57 @@ + + + + + 0804:00000409 + zh-CN + zh-CN + zh-CN + zh-CN + + + 0804:00000409 + zh-CN + zh-CN + zh-CN + zh-CN + + + + true + 2 + true + true + true + + + false + + + true + + + + + true + 2 + true + true + true + + + false + + + true + + + + + + true + + + true + + + diff --git a/Pack/Unattend.Admin.xml b/Pack/Unattend.Admin.xml new file mode 100644 index 0000000..49e734e --- /dev/null +++ b/Pack/Unattend.Admin.xml @@ -0,0 +1,33 @@ + + + + + + Administrator + true + + + true + true + Work + 2 + true + true + + + + + Administrator + true + + + true + true + Work + 2 + true + true + + + + \ No newline at end of file diff --git a/Pack/Unattend.Audit.xml b/Pack/Unattend.Audit.xml new file mode 100644 index 0000000..cfefd51 --- /dev/null +++ b/Pack/Unattend.Audit.xml @@ -0,0 +1,15 @@ + + + + + + Audit + + + + + Audit + + + + diff --git a/Pack/Update/.gitignore b/Pack/Update/.gitignore new file mode 100644 index 0000000..c249887 --- /dev/null +++ b/Pack/Update/.gitignore @@ -0,0 +1 @@ +*.cab diff --git a/README.md b/README.md index 41f3f62..51232d5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,70 @@ -# WimHelper -Wim 灏佽鍔╂墜 +# Wim 灏佽鍔╂墜 + +鍙傝 [MSMG ToolKit](https://forums.mydigitallife.net/threads/msmg-toolkit.50572/) 缂栧啓鐨刉indows瀹夎闀滃儚澶勭悊鑴氭湰 + +* WimExport.cmd 鐢ㄤ簬鍒朵綔澶氬悎涓闀滃儚鑷姩鐢熸垚闀滃儚鎻忚堪 +* WimHelper.cmd 鐢ㄤ簬闀滃儚绮剧畝浼樺寲淇敼 +* MakeISO.cmd 鐢ㄤ簬ISO闀滃儚鐢熸垚 + +## 鐩綍璇存槑 + +* Pack\Appx UWP搴旂敤绋嬪簭鐩綍 +* Pack\Extra 棰濆闆嗘垚鍖呯洰褰 +* Pack\NetFx3 .Net3.5 灏佸寘鐩綍 +* Pack\Optimize 娉ㄥ唽琛ㄤ紭鍖栫浉鍏 +* Pack\RollupFix 绉疮鏇存柊鐩綍(闇瑕侀噸鍚郴缁熸墠鑳藉畨瑁呯殑鏇存柊) +* Pack\Update 鏇存柊鐩綍(鏃犻渶閲嶅惎渚胯兘瀹夎鐨勬洿鏂帮紝濡侳lash鏇存柊) + +## 浣跨敤閰嶇疆 + +杩愯鎵瑰鐞嗗墠闇鍏堥厤缃ソ Pack 涓殑浼樺寲璁惧畾 + +### 1. 瀹夎闀滃儚鑾峰彇 + +璁块棶 https://tb.rg-adguard.net/index.php 涓嬭浇鍘熺増闀滃儚 + +绯荤粺|鐗堟湰鍙穦32浣峾64浣 +----|------|----|---- +Win10 1709|10.0.16299|[China](http://fg.ds.b1.download.windowsupdate.com/c/Upgr/2017/10/16299.15.170928-1534.rs3_release_clientchina_ret_x86fre_zh-cn_1e9f9ef43f16fdd67a2cc4749ed6c38c9058705c.esd) [Consumer](http://fg.ds.b1.download.windowsupdate.com/c/Upgr/2017/10/16299.15.170928-1534.rs3_release_clientconsumer_ret_x86fre_zh-cn_b411ad9fd3236d4cf5ec7d3debe0ef155791995f.esd) [Business](http://wsus.ds.b1.download.windowsupdate.com/c/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x86fre_zh-cn_4b0a6afdf690b2424f083d4b6633dd9f7f1ab0e1.esd)|[China](http://fg.ds.b1.download.windowsupdate.com/c/Upgr/2017/10/16299.15.170928-1534.rs3_release_clientchina_ret_x64fre_zh-cn_b96c8d4f2beb0666dc965ed012bc59468269e1d8.esd) [Consumer](http://fg.ds.b1.download.windowsupdate.com/c/Upgr/2017/10/16299.15.170928-1534.rs3_release_clientconsumer_ret_x64fre_zh-cn_cc52c191fda2caff9d5b6730ee88a11758dc0138.esd) [Business](http://wsus.ds.b1.download.windowsupdate.com/c/upgr/2017/10/16299.15.170928-1534.rs3_release_clientbusiness_vol_x64fre_zh-cn_d6bf989c6b57c7246fa72fec1e564808c3ee3255.esd) + +### 2. 鏇存柊琛ヤ竵鑾峰彇 + +璁块棶 [Microsoft Update Catalog](http://www.catalog.update.microsoft.com/Home.aspx) 鍦ㄦ悳绱㈣ˉ涓佷笅杞藉湴鍧锛屼互涓嬫槸 Win10 琛ヤ竵鎼滅储鐨勫揩鎹疯繛鎺 + +绯荤粺|鐗堟湰鍙穦鏇存柊 +----|------|------- +Win10 1607|10.0.14393|[32浣峕(http://www.catalog.update.microsoft.com/Search.aspx?q=Windows%2010%20Version%201607+x86) [64浣峕(http://www.catalog.update.microsoft.com/Search.aspx?q=Windows%2010%20Version%201607+x64) +Win10 1703|10.0.15063|[32浣峕(http://www.catalog.update.microsoft.com/Search.aspx?q=Windows%2010%20Version%201703+x86) [64浣峕(http://www.catalog.update.microsoft.com/Search.aspx?q=Windows%2010%20Version%201703+x64) +Win10 1709|10.0.16299|[32浣峕(http://www.catalog.update.microsoft.com/Search.aspx?q=Windows%2010%20Version%201709+x86) [64浣峕(http://www.catalog.update.microsoft.com/Search.aspx?q=Windows%2010%20Version%201709+x64) + +鍏朵腑绉疮鏇存柊鏀剧疆鍒 `Pack\RollupFix\闀滃儚鐗堟湰鍙穈锛孎lash 鍜屽叾浠栨洿鏂版斁缃埌 `Pack\Update\闀滃儚鐗堟湰鍙穈 + +### 3. .Net 3.5 灏佸寘鑾峰彇 + +灏嗗畨瑁呴暅鍍忎腑鐨 `\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab` 澶嶅埗鍒 `Pack\NetFx3\闀滃儚鐗堟湰鍙穈 涓 + +### 4. 缁勪欢绮剧畝璁惧畾 + +淇敼 `Pack\RemoveList.闀滃儚鐗堟湰鍙.txt` 涓粍浠跺寘鍒楄〃锛 +缁勪欢鍖呭悕绉板彲閫氳繃 [SxsHelper](https://github.com/dragonflylee/SxsHelper/releases) 鐨勫鍑哄姛鑳借幏鍙 + +### 5. 寮濮嬭彍鍗曞竷灞璁惧畾 + +棣栧厛璁剧疆濂藉綋鍓嶇郴缁熺殑寮濮嬭彍鍗曞竷灞锛 +鐒跺悗鍦 PowerShell 涓緭鍏ュ懡浠 `Export-StartLayout 鈥損ath StartLayout.xml`锛 +灏嗙敓鎴愮殑 xml 澶嶅埗鍒 Pack 鐩綍涓鐩栧悓鍚嶆枃浠 + +### 6. UWP搴旂敤鑾峰彇 + +棣栧厛鍋滄 wuauserv 鏈嶅姟骞跺垹闄 `%WinDir%\SoftwareDistribution\DataStore` 鐩綍 + +涔嬪悗鍦ㄥ晢搴椾腑璐拱涓嬭浇瀹夎搴旂敤 + +鍐嶆鍋滄 wuauserv 鏈嶅姟锛屽苟鎵撳紑 [ESEDatabaseView](http://www.nirsoft.net/utils/ese_database_view.html), 閫夋嫨 Files => Open SoftwareDistribution Database => 閫夋嫨 tbFiles 琛紝鍦 Urls 閭d竴鍒楁壘鍒 AppxBundle 鏂囦欢鐨勪笅杞藉湴鍧 (姝rl涓存椂鏈夋晥锛屾椂闂撮暱浜嗕細杩囨湡) + + +## 浣跨敤璇存槑 + +涓嬭浇 [WimHelper-master.zip](https://github.com/dragonflylee/WimHelper/archive/master.zip) 骞惰В鍘 + +杩愯 `WimHelper.cmd [wim闀滃儚璺緞]` 鍗冲彲浜彈鍏ㄨ嚜鍔ㄩ暅鍍忓鐞 \ No newline at end of file diff --git a/WimExport.cmd b/WimExport.cmd new file mode 100644 index 0000000..51a570f --- /dev/null +++ b/WimExport.cmd @@ -0,0 +1,154 @@ +@echo off + +rem 获取管理员权限 +pushd "%~dp0" && Dism 1>nul 2>nul || mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 "%*"","","runas",1)(window.close) && Exit /B 1 +rem 设置变量 +color 1F +mode con cols=120 +set "ESDPath=%~1" + +if "%ESDPath%" equ "" call :SelectFolder +rem call :ExportISO "E G", "%~dp0install.wim" +for %%i in (x86 x64) do call :MakeRS3 "%ESDPath%", "%~dp0DVD_%%i", "%%i" +goto :Exit + +:SelectFolder +set folder=mshta "javascript:var folder=new ActiveXObject('Shell.Application').BrowseForFolder(0,'选择ESD镜像所在目录', 513, '');if(folder) new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(folder.Self.Path);window.close();" +for /f %%f in ('%folder%') do set "ESDPath=%%f" +if "%ESDPath%" equ "" goto :Exit +goto :eof + +rem 导出ISO镜像 [ %~1 : 盘符列表[空格分隔], %~2 : 目标路径 ] +:ExportISO +if exist "%~2" del /q "%~2" +for %%i in (%~1) do call :ExportImage "%%i:\sources\install.wim", "%~2" +goto :eof + +rem 导出RS2镜像 [ %~1 : 源路径, %~2 : 目标路径, %~3 处理器架构 ] +:MakeRS2 +if not exist "%~1" echo [%~1] 不存在 && goto :eof +if exist "%~2" rd /s /q "%~2" +set "WimPath=%~dp0install_RS2_%~3_%date:~0,4%%date:~5,2%%date:~8,2%.wim" +if exist "%WimPath%" del /q "%WimPath%" +rem 导出安装镜像 +for %%i in (combinedchina enterprise) do ( + for %%j in ("%~1\*.rs2_release_*%%i*_%~3fre_*.esd") do ( + if not exist "%~2" call :ExportDVD "%%j", "%~2" + call :ExportImage "%%j", "%WimPath%" + ) +) +call "%~dp0WimHelper.cmd" "%WimPath%", "%~2\sources\install.esd" +rem 生成ISO镜像 +for /f "tokens=3 delims=." %%f in ('Dism /English /Get-ImageInfo /ImageFile:"%WimPath%" /Index:1 ^| findstr /i Version') do ( set "ImageRevision=%%f" ) +for /f "tokens=4" %%f in ('Dism /English /Get-ImageInfo /ImageFile:"%WimPath%" /Index:1 ^| find "ServicePack Level"') do ( set "ImageBuild=%%f" ) +for /f "tokens=* delims=" %%f in ('Dism.exe /English /Get-ImageInfo /ImageFile:"%WimPath%" /Index:1 ^| findstr /i Default') do ( set "ImageLanguage=%%f" ) +call "%~dp0MakeISO.cmd" "%~2" "Win10_%ImageRevision%.%ImageBuild%_RS2_%~3_%ImageLanguage:~1,-10%" +rd /s /q "%~2" +rem 生成二合一镜像 +Dism /Export-Image /SourceImageFile:"%WimPath%" /All /DestinationImageFile:"%~dp0cn_windows_10_1703_%ImageRevision%.%ImageBuild%_x86_x64.esd" /Compress:recovery +del /q "%WimPath%" +goto :eof + +rem 导出RS3镜像 [ %~1 : 源路径, %~2 : 目标路径, %~3 处理器架构 ] +:MakeRS3 +if not exist "%~1" echo [%~1] 不存在 && goto :eof +if exist "%~2" rd /s /q "%~2" +set "WimPath=%~dp0install_RS3_%~3_%date:~0,4%%date:~5,2%%date:~8,2%.wim" +if exist "%WimPath%" del /q "%WimPath%" +rem 导出安装镜像 +for %%i in (consumer china business) do ( + for %%j in ("%~1\*.rs3_release_*%%i*_%~3fre_*.esd") do ( + if not exist "%~2" call :ExportDVD "%%j", "%~2" + call :ExportImage "%%j", "%WimPath%" + ) +) +call "%~dp0WimHelper.cmd" "%WimPath%", "%~2\sources\install.esd" +rem 生成ISO镜像 +for /f "tokens=3 delims=." %%f in ('Dism /English /Get-ImageInfo /ImageFile:"%WimPath%" /Index:1 ^| findstr /i Version') do ( set "ImageRevision=%%f" ) +for /f "tokens=4" %%f in ('Dism /English /Get-ImageInfo /ImageFile:"%WimPath%" /Index:1 ^| find "ServicePack Level"') do ( set "ImageBuild=%%f" ) +for /f "tokens=* delims=" %%f in ('Dism.exe /English /Get-ImageInfo /ImageFile:"%WimPath%" /Index:1 ^| findstr /i Default') do ( set "ImageLanguage=%%f" ) +call "%~dp0MakeISO.cmd" "%~2" "Win10_%ImageRevision%.%ImageBuild%_RS3_%~3_%ImageLanguage:~1,-10%" +rd /s /q "%~2" +rem 生成二合一镜像 +Dism /Export-Image /SourceImageFile:"%WimPath%" /All /DestinationImageFile:"%~dp0cn_windows_10_1709_%ImageRevision%.%ImageBuild%_x86_x64.esd" /Compress:recovery +del /q "%WimPath%" +goto :eof + +rem 生成DVD镜像目录 [ %~1 : 源路径, %~2 : 目标路径 ] +:ExportDVD +md "%~2" +Dism /Apply-Image /ImageFile:"%~1" /Index:1 /ApplyDir:"%~2" +rem 获取版本信息 +for /f "tokens=3" %%f in ('Dism /English /Get-ImageInfo /ImageFile:"%~1" /Index:3 ^| findstr /i Version') do ( set "FullVersion=%%f" ) +for /f "tokens=3" %%f in ('Dism /English /Get-ImageInfo /ImageFile:"%~1" /Index:3 ^| findstr /i Architecture') do ( set "ImageArch=%%f" ) +set "NetFx3Path=%~dp0Pack\NetFx3\%FullVersion%.%ImageArch%" +if not exist "%NetFx3Path%" xcopy /I /H /R /Y "%~2\sources\sxs" "%NetFx3Path%" >nul +rem 清理无用文件 +del /q "%~2\setup.exe" +del /q "%~2\autorun.inf" +rd /s /q "%~2\support" +rd /s /q "%~2\boot\zh-cn" +for /f "tokens=* delims=" %%f in ('dir /a:d /b "%~2\sources"') do rd /s /q "%~2\sources\%%f" +for /f "tokens=* delims=" %%f in ('dir /a:-d /b "%~2\sources" ^| findstr /v "setup.exe"') do del /q "%~2\sources\%%f" +for /f "tokens=* delims=" %%f in ('dir /a:-d /b "%~2\boot" ^| findstr /v "bcd boot.sdi etfsboot.com"') do del /q "%~2\boot\%%f" +for /f "tokens=* delims=" %%f in ('dir /a:-d /b "%~2\boot\fonts" ^| findstr /v "chs wgl4"') do del /q "%~2\boot\fonts\%%f" +for /f "tokens=* delims=" %%f in ('dir /a:-d /b "%~2\efi\microsoft\boot" ^| findstr /v "bcd efisys.bin"') do del /q "%~2\efi\microsoft\boot\%%f" +for /f "tokens=* delims=" %%f in ('dir /a:-d /b "%~2\efi\microsoft\boot\fonts" ^| findstr /v "chs wgl4"') do del /q "%~2\efi\microsoft\boot\fonts\%%f" +rem 导出WinPE +Dism /Export-Image /SourceImageFile:"%~1" /SourceIndex:3 /DestinationImageFile:"%~2\sources\boot.wim" /Bootable /Compress:max +goto :eof + +rem ############################################################################################ +rem 工具函数 +rem ############################################################################################ + +rem 导出镜像 [ %~1 : 镜像路径, %~2 : 目标路径 ] +:ExportImage +if not exist "%~1" ( echo.镜像 %~1 不存在 && goto :eof ) +for /f "tokens=2 delims=: " %%f in ('Dism /English /Get-ImageInfo /ImageFile:"%~1" ^| findstr /i Index') do ( call :ExportImageIndex "%~1", %%f, "%~2" ) +goto :eof + +rem 导出镜像 [ %~1 : 镜像路径, %~2 : 镜像序号, %~3 : 目标路径 ] +:ExportImageIndex +rem 获取镜像信息 +for /f "tokens=3" %%f in ('Dism /English /Get-ImageInfo /ImageFile:"%~1" /Index:%~2 ^| findstr /i Installation') do ( set "ImageType=%%f" ) +for /f "tokens=2,3 delims=:. " %%f in ('Dism /English /Get-ImageInfo /ImageFile:"%~1" /Index:%~2 ^| findstr /i Version') do ( set "ImageVersion=%%f.%%g" ) +rem 系统名称 +if "%ImageType%" equ "Client" ( + if "%ImageVersion%" equ "6.1" ( set "ImageName=Windows 7" ) + if "%ImageVersion%" equ "6.2" ( set "ImageName=Windows 8" ) + if "%ImageVersion%" equ "6.3" ( set "ImageName=Windows 8.1" ) + if "%ImageVersion%" equ "10.0" ( set "ImageName=Windows 10" ) +) else if "%ImageType%" equ "Server" ( + if "%ImageVersion%" equ "6.1" ( set "ImageName=Windows 2008 R2" ) + if "%ImageVersion%" equ "6.2" ( set "ImageName=Windows 2012" ) + if "%ImageVersion%" equ "6.3" ( set "ImageName=Windows 2012 R2" ) + if "%ImageVersion%" equ "10.0" ( set "ImageName=Windows 2016" ) +) else ( goto :eof ) +rem 系统版本 +for /f "tokens=3" %%f in ('Dism /English /Get-ImageInfo /ImageFile:"%~1" /Index:%~2 ^| findstr /i Edition') do ( set "ImageEdition=%%f" ) +if "%ImageEdition%" equ "Cloud" ( goto :eof ) +if "%ImageEdition%" equ "CoreCountrySpecific" ( set "ImageName=%ImageName% 家庭中文版" ) +if "%ImageEdition%" equ "CoreSingleLanguage" ( set "ImageName=%ImageName% 家庭单语言版" ) +if "%ImageEdition%" equ "Core" ( set "ImageName=%ImageName% 家庭版" ) +if "%ImageEdition%" equ "Education" ( set "ImageName=%ImageName% 教育版" ) +if "%ImageEdition%" equ "Professional" ( set "ImageName=%ImageName% 专业版" ) +if "%ImageEdition%" equ "Enterprise" ( set "ImageName=%ImageName% 企业版" ) +if "%ImageEdition%" equ "ServerStandard" ( set "ImageName=%ImageName% 标准版" ) +if "%ImageEdition%" equ "ServerEnterprise" ( set "ImageName=%ImageName% 企业版" ) +if "%ImageEdition%" equ "ServerWeb" ( set "ImageName=%ImageName% Web版" ) +if "%ImageEdition%" equ "ServerDatacenter" ( set "ImageName=%ImageName% 数据中心版" ) +rem 处理器架构 +rem for /f "tokens=3" %%f in ('Dism /English /Get-ImageInfo /ImageFile:"%~1" /Index:%~2 ^| findstr /i Architecture') do ( set "ImageArch=%%f" ) +rem if "%ImageArch%" equ "x86" ( set "ImageName=%ImageName% 32位" ) +rem if "%ImageArch%" equ "x64" ( set "ImageName=%ImageName% 64位" ) +rem 判断是否有重复镜像 +for /f "tokens=3" %%f in ('Dism /English /Get-ImageInfo /ImageFile:"%~3" /Name:"%ImageName%" ^| findstr /i Index') do ( echo 镜像 %ImageName% 已存在 %%f && goto :eof ) +rem 导出格式 +if /i "%~x3" equ ".wim" ( set "Compress=/Compress:max" ) +if /i "%~x3" equ ".esd" ( set "Compress=/Compress:recovery" ) +Dism /Export-Image /SourceImageFile:"%~1" /SourceIndex:%~2 /DestinationImageFile:"%~3" /DestinationName:"%ImageName%" %Compress% +goto :eof + +:Exit +if "%~1" equ "" pause \ No newline at end of file diff --git a/WimHelper.cmd b/WimHelper.cmd new file mode 100644 index 0000000..963f4d7 --- /dev/null +++ b/WimHelper.cmd @@ -0,0 +1,402 @@ +@echo off + +rem 获取管理员权限 +pushd "%~dp0" && Dism 1>nul 2>nul || mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 "%*"","","runas",1)(window.close) && Exit /B 1 +rem 设置变量 +color 1F +mode con cols=120 +cls +setlocal EnableDelayedExpansion +set NSudo="%~dp0Bin\%PROCESSOR_ARCHITECTURE%\NSudo.exe" +set "Dism=Dism.exe /NoRestart /LogLevel:1" +set "MNT=%~dp0Mount" +set "TMP=%~dp0Temp" +set "ImagePath=%~1" + +rem 脚本起始 +:Start +if "%ImagePath%" equ "" goto :SelectImage +if not exist "%ImagePath%" ( echo 镜像 %ImagePath% 不存在 && goto :Exit ) +Dism /Get-ImageInfo /ImageFile:"%ImagePath%" 1>nul 2>nul || echo 文件 %ImagePath% 不是有效的镜像文件 && goto :Exit + +title 正在初始化 +call :CleanUp +md "%TMP%" && md "%MNT%" +call :MakeWim "%ImagePath%", "%~2" +goto :Exit + +rem 选择镜像 +:SelectImage +set selectimage=mshta "about:" +for /f "tokens=* delims=" %%f in ('%selectimage%') do set "ImagePath=%%f" +if "%ImagePath%" equ "" goto :Exit +goto :Start + +rem 处理镜像 [ %~1 : 镜像文件路径 ] +:MakeWim +if /i "%~x1" equ ".esd" ( call :MakeESD "%~1" && goto :eof ) +for /f "tokens=3" %%f in ('Dism.exe /English /Get-ImageInfo /ImageFile:"%~1" ^| findstr /i Index') do ( set "ImageCount=%%f" ) +for /l %%f in (1, 1, %ImageCount%) do call :MakeWimIndex "%~1", %%f, "%MNT%" +call :ImageOptimize "%~1" +rem 导出为ESD镜像 +if /i "%~x2" equ ".esd" %Dism% /Export-Image /SourceImageFile:"%~1" /All /DestinationImageFile:"%~2" /CheckIntegrity /Compress:recovery +goto :eof + +rem 处理镜像 [ %~1 : 镜像文件路径 ] +:MakeESD +setlocal +set "WimPath=%TMP%\%~n1.wim" +Dism.exe /Export-Image /SourceImageFile:"%~1" /All /DestinationImageFile:"%WimPath%" /CheckIntegrity /Compress:max +call :MakeWim "%WimPath%", "%~1" +call :RemoveFile "%WimPath%" +endlocal +goto :eof + +rem 处理镜像 [ %~1 : 镜像文件路径, %~2 : 镜像序号, %~3 : 挂载路径 ] +:MakeWimIndex +call :GetImageInfo "%~1", %~2 +title 正在处理 [%~2] 镜像 %ImageName% 版本 %ImageVersion% 语言 %ImageLanguage% +%Dism% /Mount-Wim /WimFile:"%~1" /Index:%~2 /MountDir:"%~3" +call :RemoveAppx "%~3" +for /f %%f in ('type "%~dp0Pack\RemoveList.%ImageVersion%.%ImageArch%.txt" 2^>nul') do call :RemoveComponent "%~3", "%%f" +call :IntRollupFix "%~3" +call :AddAppx "%~3", "DesktopAppInstaller", "VCLibs.14" +call :AddAppx "%~3", "Store", "Runtime.1.6 Framework.1.6" +call :AddAppx "%~3", "FoxitMobilePDF" +call :ImportOptimize "%~3" +call :ImportUnattend "%~3" +call :ImageClean "%~3" +%Dism% /Commit-Image /MountDir:"%~3" +call :ImportUnattend "%~3", "Admin" +call :ImageClean "%~3" +%Dism% /Commit-Image /MountDir:"%~3" /Append +%Dism% /Unmount-Wim /MountDir:"%~3" /Discard +rem 处理Admin分卷 +set /a "ImageAdmin=%ImageCount%+%~2" +%Dism% /Export-Image /SourceImageFile:"%~1" /SourceIndex:%~2 /DestinationImageFile:"%TMP%\%~nx1" +%Dism% /Export-Image /SourceImageFile:"%~1" /SourceIndex:%ImageAdmin% /DestinationImageFile:"%TMP%\%~nx1" /DestinationName:"%ImageName% [Admin]" +goto :eof + +rem 处理lopatkin镜像 [ %~1 : 镜像文件路径, %~2 : 镜像序号, %~3 : 挂载路径 ] +:MakeWimIndex2 +call :GetImageInfo "%~1", %~2 +title 正在处理 [%~2] 镜像 %ImageName% 版本 %ImageVersion% 语言 %ImageLanguage% +%Dism% /Mount-Wim /WimFile:"%~1" /Index:%~2 /MountDir:"%~3" +rem 修复默认用户头像 +xcopy /E /I /H /R /Y /J "%~dp0Pack\UAP\%ImageShortVersion%\*.*" "%~3\ProgramData\Microsoft\User Account Pictures" >nul +call :MountImageRegistry "%~3" +rem 修复默认主题 +call :RemoveFolder "%~3\Windows\Web\Wallpaper\Theme1" +call :RemoveFile "%~3\Windows\Resources\Themes\Theme1.theme" +reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\LastTheme" /v "ThemeFile" /t REG_EXPAND_SZ /d "%%SystemRoot%%\Resources\Themes\Aero.theme" /f >nul +rem 修复设备管理器英文 +for /f "tokens=2 delims=@," %%j in ('reg query "HKLM\TK_SYSTEM\ControlSet001\Control\Class" /v "ClassDesc" /s ^| findstr /i inf') do ( + for %%i in (System32\DriverStore\zh-CN INF) do ( + for %%f in (%SystemRoot%\%%i\%%j*) do %NSudo% cmd.exe /c copy /Y "%%f" "%~3\Windows\%%i\%%~nxf" + ) +) +call :UnMountImageRegistry +call :ImportOptimize "%~3" +if "%ImageType%" equ "Server" ( + call :ImportUnattend "%~3" +) else ( + call :ImportUnattend "%~3", "Admin" +) +call :ImageClean "%~3" +%Dism% /Unmount-Wim /MountDir:"%~3" /Commit +goto :eof + +rem ############################################################################################ +rem 组件集成相关 +rem ############################################################################################ + +rem 集成积累更新 [ %~1 : 镜像挂载路径 ] +:IntRollupFix +setlocal +call :MountImageRegistry "%~1" +rem Enable DISM Image Cleanup with Full ResetBase... +Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration" /v "DisableResetbase" /t REG_DWORD /d "0" /f >nul +call :UnMountImageRegistry +set "UpdatePath=%~dp0Pack\Update\%ImageVersion%.%ImageArch%" +if exist "%UpdatePath%" ( + %Dism% /Image:"%~1" /Add-Package /ScratchDir:"%TMP%" /PackagePath:"%UpdatePath%" +rem %Dism% /Image:"%~1" /Cleanup-Image /ScratchDir:"%TMP%" /StartComponentCleanup /ResetBase +) +call :IntFeature "%~1", "NetFx3" +set "RollupPath=%~dp0Pack\RollupFix\%ImageVersion%.%ImageArch%" +if exist "%RollupPath%" ( + %Dism% /Image:"%~1" /Add-Package /ScratchDir:"%TMP%" /PackagePath:"%RollupPath%" + call :IntRecovery "%~1", "%RollupPath%" +) +endlocal +%NSudo% cmd.exe /c rd /s /q "%~1\Windows\WinSxS\ManifestCache" +goto :eof + +rem 向 WinRe 集成更新 [ %~1 : 镜像挂载路径, %~2 更新包路径 ] +:IntRecovery +setlocal +set "WinrePath=%TMP%\Winre.%ImageVersion%.%ImageArch%.wim" +if not exist "%WinrePath%" ( + call :RemoveFolder "%TMP%\RE" + md "%TMP%\RE" + echo.挂载镜像 [%WinrePath%] + %Dism% /Mount-Wim /WimFile:"%~1\Windows\System32\Recovery\Winre.wim" /Index:1 /MountDir:"%TMP%\RE" /Quiet + call :MountImageRegistry "%TMP%\RE" + rem Enable DISM Image Cleanup with Full ResetBase... + Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration" /v "DisableResetbase" /t REG_DWORD /d "0" /f >nul + call :UnMountImageRegistry + echo.集成更新 [%WinrePath%] + %Dism% /Image:"%TMP%\RE" /Add-Package /ScratchDir:"%TMP%" /PackagePath:"%~2" /Quiet + %Dism% /Image:"%TMP%\RE" /Cleanup-Image /ScratchDir:"%TMP%" /StartComponentCleanup /ResetBase /Quiet + call :ImageClean "%TMP%\RE" + echo.保存镜像 [%WinrePath%] + %Dism% /Unmount-Wim /MountDir:"%TMP%\RE" /Commit /Quiet + echo.优化镜像 [%WinrePath%] + %Dism% /Export-Image /SourceImageFile:"%~1\Windows\System32\Recovery\Winre.wim" /All /DestinationImageFile:"%WinrePath%" /CheckIntegrity /Compress:max /Quiet +) +copy /Y "%WinrePath%" "%~1\Windows\System32\Recovery\Winre.wim" >nul +endlocal +goto :eof + +rem 集成功能 [ %~1 : 镜像挂载路径, %~2 功能名称 ] +:IntFeature +setlocal +set "FeaturePath=%~dp0Pack\%~2\%ImageVersion%.%ImageArch%" +if not exist "%FeaturePath%" ( echo.未找到 %FeaturePath% && goto :eof ) +%Dism% /Image:"%~1" /Get-FeatureInfo /FeatureName:%~2 | findstr /c:"State : Enable Pending" >nul +if errorlevel 1 ( + echo.开启功能 [%~2] + %Dism% /Image:"%~1" /Enable-Feature /All /LimitAccess /FeatureName:%~2 /Source:"%FeaturePath%" /Quiet +) else ( echo.功能 [%~2] 已开启 ) +endlocal +goto :eof + +rem 导入优化 [ %~1 : 镜像挂载路径 ] +:ImportOptimize +call :MountImageRegistry "%~1" +call :ImportRegistry "%~dp0Pack\Optimize\%ImageShortVersion%.reg" +call :ImportRegistry "%~dp0Pack\Optimize\%ImageShortVersion%.%ImageArch%.reg" +if "%ImageType%" equ "Server" call :ImportRegistry "%~dp0Pack\Optimize\Server.reg" +if "%ImageShortVersion%" equ "10.0" ( + rem Applying Anti Microsoft Telemetry Client Patches + Reg add "HKLM\TK_SYSTEM\ControlSet001\Services\DiagTrack" /v "Start" /t REG_DWORD /d "4" /f >nul + Reg delete "HKLM\TK_SYSTEM\ControlSet001\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" /f >nul 2>&1 + Reg delete "HKLM\TK_SYSTEM\ControlSet001\Control\WMI\AutoLogger\Diagtrack-Listener" /f >nul 2>&1 + Reg delete "HKLM\TK_SYSTEM\ControlSet001\Control\WMI\AutoLogger\SQMLogger" /f >nul 2>&1 + Reg delete "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack" /f >nul 2>&1 + Reg delete "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DataCollection" /f >nul 2>&1 + rem Removing Windows Mixed Reality Menu from Settings App + Reg add "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Holographic" /v "FirstRunSucceeded" /t REG_DWORD /d "0" /f >nul + rem 启用照片查看器 + %NSudo% cmd.exe /c "%~dp0Pack\Optimize\Photo.cmd" + call :ImportRegistry "%~dp0Pack\Optimize\Context.reg" + call :ImportStartLayout "%~1", "%~dp0Pack\StartLayout.xml" +) +call :UnMountImageRegistry + +setlocal +set "AssociationXML=%~dp0Pack\Association.%ImageShortVersion%.xml" +if exist "%AssociationXML%" ( + echo.导入关联 [%AssociationXML%] + %Dism% /Image:"%~1" /Import-DefaultAppAssociations:"%AssociationXML%" /Quiet +) +endlocal + +if "%ImageShortVersion%" equ "10.0" ( + if "%ImageVersion%" geq "10.0.15063" call :IntExtra "%~1", "Win32Calc" +) +goto :eof + +rem 集成额外组件 [ %~1 : 镜像挂载路径, %~2 : 组件名称 ] +:IntExtra +echo.集成组件 [%~2] +setlocal +set "ExtraPath=%~dp0Pack\Extra\%~2" +if "%ImageArch%"=="x86" set "PackageIndex=1" +if "%ImageArch%"=="x64" set "PackageIndex=2" +if exist "%ExtraPath%.tpk" ( + %Dism% /Apply-Image /ImageFile:"%ExtraPath%.tpk" /Index:%PackageIndex% /ApplyDir:"%~1" /CheckIntegrity /Verify /Quiet +) +if exist "%ExtraPath%.%ImageLanguage%.tpk" ( + %Dism% /Apply-Image /ImageFile:"%ExtraPath%.%ImageLanguage%.tpk" /Index:%PackageIndex% /ApplyDir:"%~1" /CheckIntegrity /Verify /Quiet +) +if exist "%ExtraPath%.%ImageArch%.reg" ( + call :MountImageRegistry "%~1" + call :ImportRegistry "%ExtraPath%.%ImageArch%.reg" + call :UnMountImageRegistry +) +if exist "%ExtraPath%.cmd" call %ExtraPath%.cmd "%~1" %ImageArch% %ImageLanguage% +endlocal +goto :eof + +rem ############################################################################################ +rem 工具函数 +rem ############################################################################################ + +rem 导入应答文件 [ %~1 : 镜像挂载路径, %~2 : 应答文件类型(Admin, Audit) ] +:ImportUnattend +call :RemoveFolder "%~1\Windows\Setup\Scripts" +md "%~1\Windows\Setup\Scripts" +xcopy /E /I /H /R /Y /J "%~dp0Pack\Scripts\*.*" "%~1\Windows\Setup\Scripts" >nul + +setlocal +if /i "%~2" equ "Admin" ( + if exist "%~dp0Pack\AAct_%ImageArch%.exe" copy "%~dp0Pack\AAct_%ImageArch%.exe" "%~1\Windows\Setup\Scripts\AAct.exe" >nul + + set "UnattendFile=%~dp0Pack\Unattend.Admin.xml" + call :MountImageRegistry "%~1" + Reg add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "FilterAdministratorToken" /t REG_DWORD /d 1 /f >nul + call :UnMountImageRegistry +) else ( + set "UnattendFile=%~dp0Pack\Unattend.%ImageShortVersion%.xml" +) +if exist "%UnattendFile%" ( + echo.导入应答 [%UnattendFile%] + if not exist "%~1\Windows\Panther" md "%~1\Windows\Panther" + copy /Y "%UnattendFile%" "%~1\Windows\Panther\unattend.xml" >nul +) +endlocal +goto :eof + +rem 导入开始菜单布局文件 [ %~1 : 镜像挂载路径, %~2 布局文件路径 ] +:ImportStartLayout +copy /y "%~2" "%~1\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml" >nul +call :RemoveFile "%~1\Users\Default\AppData\Local\TileDataLayer" +goto :eof + +rem 集成Appx应用 [ %~1 : 镜像挂载路径, %~2 : 应用包名, %~3 : 应用依赖包名 ] +:AddAppx +setlocal +set "Apps=%~dp0Pack\Appx" +set LicPath=/SkipLicense +if "%ImageArch%" equ "x86" ( set "AppxArch=*x86*" ) else ( set "AppxArch=*" ) +for /f %%f in ('"dir /b %Apps%\*%~2*.xml" 2^>nul') do ( set LicPath=/LicensePath:"%Apps%\%%f" ) +for %%j in (%~3) do for /f %%i in ('"dir /b %Apps%\*%%j%AppxArch%.appx" 2^>nul') do ( set Dependency=!Dependency! /DependencyPackagePath:"%Apps%\%%i" ) +for /f %%i in ('"dir /b %Apps%\*%~2*.appxbundle" 2^>nul') do ( + echo.集成应用 [%%~ni] + %Dism% /Image:"%~1" /Add-ProvisionedAppxPackage /PackagePath:"%Apps%\%%i" %LicPath% %Dependency% /Quiet +) +endlocal +goto :eof + +rem 移除自带应用 [ %~1 : 镜像挂载路径 ] +:RemoveAppx +for /f "tokens=3" %%f in ('%Dism% /English /Image:"%~1" /Get-ProvisionedAppxPackages ^| findstr PackageName') do ( + echo.移除应用 [%%f] + %Dism% /Image:"%~1" /Remove-ProvisionedAppxPackage /PackageName:"%%f" /Quiet +) +goto :eof + +rem 移除系统组件 [ %~1 : 镜像挂载路径, %~2 : 组件名称 ] +:RemoveComponent +setlocal +rem 处理隐藏组件 +call :MountImageRegistry "%~1" +set RegKey= +for /f "tokens=* delims=" %%f in ('reg query "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages" /f "%~2" ^| findstr /i "%~2"') do ( set "RegKey=%%f" ) +if "%RegKey%" neq "" ( + %NSudo% reg add "%RegKey%" /v Visibility /t REG_DWORD /d 1 /f + %NSudo% reg add "%RegKey%" /v DefVis /t REG_DWORD /d 2 /f + %NSudo% reg delete "%RegKey%\Owners" /f + set RegKey= +) +call :UnMountImageRegistry + +set PackageName= +for /f "tokens=3 delims=: " %%f in ('%Dism% /English /Image:"%~1" /Get-Packages ^| findstr /i "%~2"') do ( set "PackageName=%%f" ) +if "%PackageName%" neq "" ( + echo.移除组件 [%PackageName%] + %Dism% /Image:"%~1" /Remove-Package /PackageName:"%PackageName%" /Quiet + set PackageName= +) +endlocal +goto :eof + +rem 导入注册表 [ %~1 : 注册表路径 ] +:ImportRegistry +if not exist "%~1" goto :eof +call :RemoveFile "%TMP%\%~nx1" +rem 处理注册表路径 +for /f "delims=" %%f in ('type "%~1"') do ( + set str=%%f + set "str=!str:HKEY_CURRENT_USER=HKEY_LOCAL_MACHINE\TK_NTUSER!" + set "str=!str:HKEY_LOCAL_MACHINE\SOFTWARE=HKEY_LOCAL_MACHINE\TK_SOFTWARE!" + set "str=!str:HKEY_LOCAL_MACHINE\SYSTEM=HKEY_LOCAL_MACHINE\TK_SYSTEM!" + echo !str!>>"%TMP%\%~nx1" +) +%NSudo% reg import "%TMP%\%~nx1" +goto :eof + +rem 加载注册表 [ %~1 : 镜像挂载路径 ] +:MountImageRegistry +reg load HKLM\TK_NTUSER "%~1\Users\Default\ntuser.dat" >nul +reg load HKLM\TK_SOFTWARE "%~1\Windows\System32\config\SOFTWARE" >nul +reg load HKLM\TK_SYSTEM "%~1\Windows\System32\config\SYSTEM" >nul +goto :eof + +rem 卸载注册表 +:UnMountImageRegistry +reg unload HKLM\TK_NTUSER >nul 2>&1 +reg unload HKLM\TK_SOFTWARE >nul 2>&1 +reg unload HKLM\TK_SYSTEM >nul 2>&1 +goto :eof + +rem 保存镜像 [ %~1 : 镜像挂载路径 ] +:ImageClean +rd /s /q "%~1\Users\Administrator" >nul 2>&1 +rd /s /q "%~1\Program Files\Classic Shell" >nul 2>&1 +rd /s /q "%~1\Recovery" >nul 2>&1 +rd /s /q "%~1\$RECYCLE.BIN" >nul 2>&1 +rd /s /q "%~1\Logs" >nul 2>&1 +del /q "%~1\Windows\INF\*.pnf" >nul 2>&1 +del /s /q "%~1\*.log" >nul 2>&1 +del /s /q /a:h "%~1\*.log" >nul 2>&1 +del /s /q /a:h "%~1\*.blf" >nul 2>&1 +del /s /q /a:h "%~1\*.regtrans-ms" >nul 2>&1 +goto :eof + +rem 获取镜像基本信息 [ %~1 : 镜像文件路径, %~2 : 镜像序号 ] +:GetImageInfo +for /f "tokens=2 delims=:" %%f in ('Dism.exe /English /Get-ImageInfo /ImageFile:"%~1" /Index:%~2 ^| findstr /i Name') do ( set "ImageName=%%f" ) +for /f "tokens=3" %%f in ('Dism.exe /English /Get-ImageInfo /ImageFile:"%~1" /Index:%~2 ^| findstr /i Architecture') do ( set "ImageArch=%%f" ) +for /f "tokens=3" %%f in ('Dism.exe /English /Get-ImageInfo /ImageFile:"%~1" /Index:%~2 ^| findstr /i Version') do ( set "ImageVersion=%%f" ) +for /f "tokens=3" %%f in ('Dism.exe /English /Get-ImageInfo /ImageFile:"%~1" /Index:%~2 ^| findstr /i Edition') do ( set "ImageEdition=%%f" ) +for /f "tokens=3" %%f in ('Dism.exe /English /Get-ImageInfo /ImageFile:"%~1" /Index:%~2 ^| findstr /i Installation') do ( set "ImageType=%%f" ) +for /f "tokens=* delims=" %%f in ('Dism.exe /English /Get-ImageInfo /ImageFile:"%~1" /Index:%~2 ^| findstr /i Default') do ( set "ImageLanguage=%%f" && set "ImageLanguage=!ImageLanguage:~1,-10!" ) +for /f "tokens=1,2 delims=." %%f in ('echo %ImageVersion%') do ( set "ImageShortVersion=%%f.%%g" ) +goto :eof + +rem 优化镜像 [ %~1 : 镜像文件路径 ] +:ImageOptimize +title 正在优化镜像 %~1 +if not exist "%TMP%\%~nx1" %Dism% /Export-Image /SourceImageFile:"%~1" /All /DestinationImageFile:"%TMP%\%~nx1" /CheckIntegrity /Compress:max +move /Y "%TMP%\%~nx1" "%~1" >nul +goto :eof + +rem 清理文件 +:CleanUp +call :UnMountImageRegistry +if exist "%MNT%\Windows" ( Dism.exe /Unmount-Wim /MountDir:"%MNT%" /ScratchDir:"%TMP%" /Discard /Quiet ) +if exist "%TMP%\RE\Windows" ( Dism.exe /Unmount-Wim /MountDir:"%TMP%\RE" /ScratchDir:"%TMP%" /Discard /Quiet ) +Dism.exe /Cleanup-Mountpoints /Quiet +Dism.exe /Cleanup-Wim /Quiet +call :RemoveFolder "%TMP%" +call :RemoveFolder "%MNT%" +if errorlevel 0 goto :eof +goto :Exit + +rem 删除文件 [ %~1 : 文件路径 ] +:RemoveFile +if exist "%~1" del /f /q "%~1" +goto :eof + +rem 删除目录 [ %~1 : 目录路径 ] +:RemoveFolder +if exist "%~1" rd /q /s "%~1" +goto :eof + +:Exit +call :CleanUp +endlocal EnableDelayedExpansion +title 操作完成 +if "%~1" equ "" pause \ No newline at end of file