Hello dear friend! And one more request, can you help? Screw this code into this script: Spoiler: The code @echo off COLOR 1F TITLE Windows 7 Integrator Clean up script CLS set incorrectPath=0 echo "%~dp0%" | findstr "(" >nul 2>&1 if "%ERRORLEVEL%"=="0" set incorrectPath=1 echo "%~dp0%" | findstr ")" >nul 2>&1 if "%ERRORLEVEL%"=="0" set incorrectPath=1 if not "%incorrectPath%"=="0" ( ECHO. ECHO. ECHO ================================================================ ECHO Please copy and run script from Desktop or another directory! ECHO ================================================================ ECHO. PAUSE >NUL goto end ) If exist "%WinDir%\SysWOW64" ( SET "Arch=x64" ) else ( SET "Arch=x86" ) SET "PF=%ProgramFiles%" IF not "%ProgramFiles(x86)%"=="" SET "PF=%ProgramFiles(x86)%" ECHO. ECHO. ECHO ================================================================ ECHO Unmounting mounted registry keys... ECHO ================================================================ timeout /t 5 /NOBREAK >nul for /f "tokens=* delims=" %%a in ('reg query "HKLM" ^| findstr "{"') do ( reg unload "HKLM\%%a" ) reg unload HKLM\TK_DEFAULT >nul 2>&1 reg unload HKLM\TK_NTUSER >nul 2>&1 reg unload HKLM\TK_SOFTWARE >nul 2>&1 reg unload HKLM\TK_SYSTEM >nul 2>&1 ECHO. ECHO. ECHO ================================================================ ECHO Unmounting mounted images... ECHO ================================================================ for /L %%i in (1, 1, 2) do ( if exist "%~dp0mount\Windows\explorer.exe" ( "%~dp0tools\%Arch%\DISM\dism.exe" /Unmount-Wim /MountDir:"%~dp0Mount\WinRE" /Discard ) ) if exist "%~dp0Mount\Windows\explorer.exe" ( "%~dp0Tools\%Arch%\DISM\Dism.exe" /Unmount-Wim /MountDir:"%~dp0Mount" /Discard ) rd /s /q "%~dp0Mount\WinRE" >nul 2>&1 rd /q /s "%~dp0Mount" >nul 2>&1 "%~dp0Tools\%Arch%\DISM\Dism.exe" /Cleanup-Mountpoints ECHO. ECHO. ECHO All done! ECHO. ECHO. ECHO Press any key to end the script. ECHO. PAUSE >NUL :End
You have already added the code in your script, what error is it giving? Code: for /f "tokens=* delims=" %%a in ('reg query "HKLM" ^| findstr "{"') do ( reg unload "HKLM\%%a" nul 2>&1 ) Do add this line just after @echo off Code: setlocal EnableExtensions EnableDelayedExpansion And this one at the last before :End Code: endlocal EnableExtensions EnableDelayedExpansion
ERRORS Spoiler: Errors ================================================================ Unmounting mounted registry keys... ================================================================ Ошибка: Параметр задан неверно. Ошибка: Параметр задан неверно. Ошибка: Параметр задан неверно. Ошибка: Параметр задан неверно. Ошибка: Параметр задан неверно. Ошибка: Параметр задан неверно. Ошибка: Параметр задан неверно. Ошибка: Параметр задан неверно. Ошибка: Параметр задан неверно. ================================================================ Unmounting mounted images... ================================================================ Deployment Image Servicing and Management tool Version: 10.0.20339.2 Cleaning up image Scanning drive C for stale files Scanning drive D for stale files The operation completed successfully. All done Press any key to end the script.
Will check and update. Edit: Corrected the code now Code: for /f "tokens=* delims=" %%a in ('reg query "HKLM" ^| findstr "{"') do ( reg unload %%a >nul 2>&1 )
@Feartamixg @Supern00b @graver.x Based on my findings, the folder ACL permission for Program Files, Program Files (x86), Windows and other system folders/files do change for Windows 7, Windows 8.1, Windows 10. Also for some OS the folder ACL permission differ from offline and online images. I'm not sure if these differences are the cause for duplicate folder permission in SFC/CBS logs, the SFC ghost error is due to the /Cleanup-Image (Only for v2004 and above images) Have updated few packs based on the offline install.wim folder permissions for Windows 10, do check and see if it works. (DirectX9c, Games, VCRuntime, Win32Calc) Creating packs with current DISM image based ESD format takes more time due to the variations in the folder permissions, so am planning to use direct copy/extract method for packs in future.
Thank you for the new version I´ve found a little typo Line 17920 "echo. [D] Hide Taskbar News & Interests" should be "echo. [D] Hide Taskbar News ^& Interests" I guess
Error Apply all tweaks W10 Line 17937 --> choice /C:ABCDEFGHIJKLMNOX /N /M should be --> choice /C:ABCDEFGHIJKLMNO1X /N /M
Hi, in window "Windows Features" (Компоненты Windows) we can see only few components: - .NET Framework 3.5 - .NET Framework 4.8 - Internet Explorer 11 - Компоненты для работы с мультимедиа - Службы печати и документов Please share "metod" how you created this. Thanks.
I have these errors, when mount the image Code: =============================================================================== MSMG ToolKit - Select Source from <DVD> folder =============================================================================== ------------------------------------------------------------------------------- ####Selecting Source Images#################################################### ------------------------------------------------------------------------------- Reading Image Information... =============================================================================== | Index | Arch | Name =============================================================================== | 1 | x64 | Windows 10 Pro | 2 | x64 | Windows 10 Home Single Language | 3 | x64 | Windows 10 Enterprise multi-session =============================================================================== Enter the Image Index # [Range : 1,...3 or 'A'll 'Q'uit] : A Do you want to mount Windows Setup Boot Image ? ['Y'es/'N'o] : Y Do you want to mount Windows Recovery Image ? ['Y'es/'N'o] : Y ------------------------------------------------------------------------------- ####Source Image Information################################################### ------------------------------------------------------------------------------- Image : Install.wim Image Index No : 1,2,3 Image Architecture : x64 Image Version : 10.0.19042 Image Service Pack Build : 1055 Image Service Pack Level : 0 Image Build : 19042 Image Default Language : es-ES ------------------------------------------------------------------------------- ####Mounting Source Images##################################################### ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Mounting [Boot.wim, Index : 1] Image at <\Mount\Boot\1>... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Mounting [Boot.wim, Index : 2] Image at <\Mount\Boot\2>... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Mounting [Install.wim, Index : 1] Image at <\Mount\Install\1>... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Mounting [Install.wim, Index : -> WinRE.wim] Image at <\Mount\WinRE>... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Error: 3 DISM failed. No operation was performed. For more information, review the log file. The DISM log file can be found at D:\WINMOD\Toolkit_v11.6\Logs\Dism.txt ------------------------------------------------------------------------------- Mounting [Install.wim, Index : 2] Image at <\Mount\Install\2>... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Mounting [Install.wim, Index : -> WinRE.wim] Image at <\Mount\WinRE>... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Error: 3 DISM failed. No operation was performed. For more information, review the log file. The DISM log file can be found at D:\WINMOD\Toolkit_v11.6\Logs\Dism.txt ------------------------------------------------------------------------------- Mounting [Install.wim, Index : 3] Image at <\Mount\Install\3>... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Mounting [Install.wim, Index : -> WinRE.wim] Image at <\Mount\WinRE>... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Error: 3 DISM failed. No operation was performed. For more information, review the log file. The DISM log file can be found at D:\WINMOD\Toolkit_v11.6\Logs\Dism.txt ------------------------------------------------------------------------------- ####Finished Selecting & Mounting Source Images################################ ------------------------------------------------------------------------------- =============================================================================== Presione una tecla para continuar . . . Code: =============================================================================== MSMG ToolKit - Discard Changes & Unmount Source Images =============================================================================== ------------------------------------------------------------------------------- ####Starting Discarding Changes & Un-Mounting Source Images#################### ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Un-Mounting [Boot.wim, Index : 1] Image... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Unmounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Un-Mounting [Boot.wim, Index : 2] Image... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Unmounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Un-Mounting [Install.wim, Index : -> WinRE.wim] Image... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Error: 50 DISM failed. No operation was performed. For more information, review the log file. The DISM log file can be found at D:\WINMOD\Toolkit_v11.6\Logs\Dism.txt ------------------------------------------------------------------------------- Un-Mounting [Install.wim, Index : 1] Image... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Unmounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Un-Mounting [Install.wim, Index : 2] Image... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Unmounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Un-Mounting [Install.wim, Index : 3] Image... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Unmounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- ####Finished Discarding Changes & Un-Mounting Source Images#################### ------------------------------------------------------------------------------- =============================================================================== Presione una tecla para continuar . . .
Thank you very much for your help, for the new version. I found that Win32Calc.tpk does not have reg-file.
Thank you for your new version. I can not return to the menu when I integrate the game package in win7.
As always, there is no place to download Packs. On MEGA "quote exceeded" happen too fast. The alt. places were not updated yet... Will check later... Need only DirectX9c, NetFX48. @MSMG Just remind you, your idea about some small safe storage with the most popular files only to download is still good idea (and always has been). E.g. for last MSMG Toolkit version itself (and may be for fixed "Toolkit.cmd" reups), DirectX9c, .NET, may be some other packs (incl. compatible or have been prepeared especially for the Toolkit), as much as the size of the storage allowed. Only several GB for the most important packs will be enough to solve this issue in most cases.
@MSMG Having issues mounting my image with v11.6. Spoiler: Extract Source from DVD ISO Image to <DVD> folder =============================================================================== MSMG ToolKit - Extract Source from DVD ISO Image to <DVD> folder =============================================================================== ------------------------------------------------------------------------------- ####Starting Extracting Source from DVD ISO Image to <DVD> folder############## ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- ####Getting DVD ISO Image Options############################################## ------------------------------------------------------------------------------- Enter the ISO Image filename without .iso : 19043.1052.210605-1500.21H1_RELEASE_SVC_PROD1_CLIENTENTERPRISE_VOL_X86FRE_EN-GB ------------------------------------------------------------------------------- ####Extracting Source from DVD ISO Image to <DVD> folder####################### ------------------------------------------------------------------------------- Extracting DVD ISO Image contents to Source <DVD> folder... Extraction may take some time, so please wait... Extraction Complete... ------------------------------------------------------------------------------- ####Finished Extracting Source from DVD ISO Image to <DVD> folder############## ------------------------------------------------------------------------------- =============================================================================== Press any key to continue . . . Spoiler: Select Source from <DVD> folder =============================================================================== MSMG ToolKit - Select Source from <DVD> folder =============================================================================== ------------------------------------------------------------------------------- ####Selecting Source Images#################################################### ------------------------------------------------------------------------------- Reading Image Information... =============================================================================== | Index | Arch | Name =============================================================================== | 1 | x86 | Windows 10 Enterprise =============================================================================== Enter the Image Index # ['Q'uit] : 1 Do you want to mount Windows Setup Boot Image ? ['Y'es/'N'o] : Y Do you want to mount Windows Recovery Image ? ['Y'es/'N'o] : Y ------------------------------------------------------------------------------- ####Source Image Information################################################### ------------------------------------------------------------------------------- Image : Install.wim Image Index No : 1 Image Architecture : x86 Image Version : 10.0.19041 Image Service Pack Build : 1052 Image Service Pack Level : 0 Image Build : 19041 Image Default Language : en-GB ------------------------------------------------------------------------------- ####Mounting Source Images##################################################### ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Mounting [Boot.wim, Index : 1] Image at <\Mount\Boot\1>... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Mounting [Boot.wim, Index : 2] Image at <\Mount\Boot\2>... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Mounting [Install.wim, Index : 1] Image at <\Mount\Install\1>... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Mounting [Install.wim, Index : -> WinRE.wim] Image at <\Mount\WinRE>... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Error: 3 The system cannot find the path specified. The DISM log file can be found at C:\MSMG-Toolkit_v11.6\Logs\Dism.txt ------------------------------------------------------------------------------- ####Finished Selecting & Mounting Source Images################################ ------------------------------------------------------------------------------- =============================================================================== Press any key to continue . . . After restarting my PC and confirming that my antivirus is disabled, I decided abandon this test and report back to you. I also receive the following when finishing. Spoiler: Discard Changes & Unmount Source Images =============================================================================== MSMG ToolKit - Discard Changes & Unmount Source Images =============================================================================== ------------------------------------------------------------------------------- ####Starting Discarding Changes & Un-Mounting Source Images#################### ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Un-Mounting [Boot.wim, Index : 1] Image... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Unmounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Un-Mounting [Boot.wim, Index : 2] Image... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Unmounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Un-Mounting [Install.wim, Index : -> WinRE.wim] Image... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Error: 50 The request is not supported. The DISM log file can be found at C:\MSMG-Toolkit_v11.6\Logs\Dism.txt ------------------------------------------------------------------------------- Un-Mounting [Install.wim, Index : 1] Image... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.21382.1 Unmounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- ####Finished Discarding Changes & Un-Mounting Source Images#################### ------------------------------------------------------------------------------- =============================================================================== Press any key to continue . . . Have attached DISM logs for you.
Same here. From memory, anything to do with the WinRE.wim, "file doesn't exist" or something similar.