1. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
  2. Yanta

    Yanta MDL Senior Member

    May 21, 2017
    477
    274
    10
    I used the list you had in the bin folder. Just took out a couple of things I wanted to keep. I did the DISM method.

    Windows Security still seems to be installed (Or just the SecHealthUI?), and i can't disable the diagnostic data - Every time I set it to Basic it resets to Enhanced.

    I guess there were no dependencies, as everything seems to be working ok.
     
  3. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Yes SecHealthUI is a System App which can't be removed using DISM.exe, If I do get time then will add support for Server editions too.

     
  4. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    272
    288
    10
    Hello dear friend! And one more request, can you help? Screw this code into this script:

    @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
     
  5. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    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
    
     
  6. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    272
    288
    10
    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.
     
  7. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    #19568 MSMG, Jun 13, 2021
    Last edited: Jun 13, 2021
    (OP)
    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
    )
    
     
  8. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    #19569 MSMG, Jun 13, 2021
    Last edited: Jun 13, 2021
    (OP)
    @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.
     
  9. roedel

    roedel MDL Junior Member

    Jun 3, 2010
    81
    57
    0
    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
     
  10. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Yes corrected and will be reuploading it now.

     
  11. Bira

    Bira MDL Senior Member

    Oct 4, 2017
    286
    164
    10
    hello @MSMG

    I think I missed the KB4592510? It seems to be repeated the KB4490628!
     

    Attached Files:

  12. babyboom666

    babyboom666 MDL Novice

    Nov 14, 2010
    36
    16
    0
    Error Apply all tweaks W10

    Line 17937 --> choice /C:ABCDEFGHIJKLMNOX /N /M

    should be --> choice /C:ABCDEFGHIJKLMNO1X /N /M
     
  13. oveco

    oveco MDL Junior Member

    Apr 10, 2015
    54
    15
    0
    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.
     
  14. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Yes need to fix it, will update tomorrow.

     
  15. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Yes, will reupload the Toolkit with fixes tomorrow.

     
  16. simple-hormiga

    simple-hormiga MDL Novice

    Apr 18, 2012
    22
    12
    0
    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 . . .
     

    Attached Files:

  17. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    272
    288
    10
    Thank you very much for your help, for the new version.

    I found that Win32Calc.tpk does not have reg-file.
     
  18. kgbab

    kgbab MDL Novice

    Jul 15, 2010
    10
    5
    0
    #19579 kgbab, Jun 13, 2021
    Last edited: Jun 13, 2021
    Thank you for your new version.

    I can not return to the menu when I integrate the game package in win7.
     
  19. Bira

    Bira MDL Senior Member

    Oct 4, 2017
    286
    164
    10
    Another typing error %installmount% \ %%, replace by %installmount%\%%i
     

    Attached Files: