MS DaRT Offline Integration Tool (for windows 7, 8.1, 10 and 11)

Discussion in 'Windows 11' started by Enthousiast, Dec 21, 2023.

  1. Bender

    Bender MDL Novice

    Aug 2, 2007
    6
    1
    0
    Hi all,
    Is there a way to get/rebuld the last WinPE_SRT package 25H2, already in WinRE, which is no more shipped with ADK 25H2 (needed for DaRT), to add it to WinPE ?
    Or a way to bypass error 0x800f081e (which is about dependances and version) when adding WinPE Optional Components in winre.wim 25H2 ?
    My goal is to do as i was doing before, integrate everything (DaRT tools, WinPE OC packages, and customized tools like VNC server, nircmd, scripts, etc.) in one boot file.
    Maybe there is a way to rebulld WinPE_SRT package from winre.wim, (compiling cat, mum files, etc.) to slipstream in WinPE...?
    Thanks for your help if you know a way...
     
  2. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,939
    450
    This thread is about a simple code to insert DaRT packages made by MSMG, not about winpe stuff in general.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Bender

    Bender MDL Novice

    Aug 2, 2007
    6
    1
    0
    Oh ok sorry for that, I didn't find thread about DaRT integration elsewhere, so i asked here to people who seems to know...forget it, will try to find, thx
     
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,939
    450
    What is more of importance for this thread/tool is how to make updated packages, like the 25H2 debug tools, i never seen them working but for 25H2 they should be updated i guess?

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,875
    3,149
    120
    25h2 are enablement package ( 24h2 + 5 mo updqte to trick we are 25h2
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,939
    450
    #126 Enthousiast, Nov 14, 2025
    Last edited: Nov 15, 2025
    (OP)
    Is there anybody who can help me create the DaRT debug tools for 28000?
    Fixed:)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,939
    450
    #127 Enthousiast, Nov 14, 2025
    Last edited: Nov 14, 2025
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,939
    450
    #128 Enthousiast, Nov 15, 2025
    Last edited: Nov 15, 2025
    (OP)
    https://forums.mydigitallife.net/th...ation-tool-for-windows-7-8-1-10-and-11.87865/

    Changelog:
    Code:
    DaRT_7_81_10_11_v4.6_MDL_2025.zip (November 15. 2025)
    Added 26H1 Debug tools (thanks to abbodi1406) and support for 26H1 (28000)
    
    Example run:
    Code:
    ============================================================
    Running DaRT Integration Tool v4.6 by Enthousiast
    ============================================================
    
    ==========================================================
    You have chosen to integrate the Debug tools {Default}...
    ==========================================================
    
    ==========================================================
    You have chosen to optimize the wim files {Default}...
    ==========================================================
    
    
    ==========================================================
    Integrate DaRT In Boot.wim ?
    ==========================================================
    
    [ 1 ] - Integrate DaRT In Boot.wim
    
    [ 2 ] - Don't Integrate DaRT In Boot.wim
    
    ==========================================================
    
    * Type your option and press Enter: 1
    
    ==========================================================
    Integrate DaRT In Winre.wim ?
    ==========================================================
    
    [ 1 ] - Integrate DaRT In Winre.wim
    
    [ 2 ] - Don't Integrate DaRT In Winre.wim
    
    ==========================================================
    
    * Type your option and press Enter: 1
    
    ==========================================================
    Extracting Source ISO...
    ==========================================================
    
    
    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
    
    Scanning the drive for archives:
    1 folder, 1 file, 5754607616 bytes (5489 MiB)
    
    Extracting archive: Source_ISO\28000.1.251103-1709.BR_RELEASE_CLIENTMULTI_X64FRE_EN-US.ISO
    --
    Path = Source_ISO\28000.1.251103-1709.BR_RELEASE_CLIENTMULTI_X64FRE_EN-US.ISO
    Type = Udf
    Physical Size = 5754607616
    Comment = CCSA_X64FRE_EN-US_DV9
    Cluster Size = 2048
    Created = 2025-11-04 14:58:02
    
    Everything is Ok
    
    Folders: 91
    Files: 969
    Size:       5748992782
    Compressed: 5754607616
    
    ==========================================================
    DaRT Language Used : x64 en-us
    ===========================================================
    
    ==========================================================
    Preparing DaRT 11 x64...
    ==========================================================
    
    
    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
    
    Scanning the drive for archives:
    1 file, 8894690 bytes (8687 KiB)
    
    Extracting archive: DaRT_W11\Dart_w11.tpk
    --
    Path = DaRT_W11\Dart_w11.tpk
    Type = wim
    Physical Size = 8894690
    Size = 8589934592
    Packed Size = 38013142
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2019-04-08 05:13:00
    Modified = 2019-04-08 05:17:13
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 2
    
    Everything is Ok
    
    Folders: 12
    Files: 71
    Size:       29258096
    Compressed: 8894690
    
    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
    
    Scanning the drive for archives:
    1 file, 181228 bytes (177 KiB)
    
    Extracting archive: DaRT_W11\Dart_w11_en-US.tpk
    --
    Path = DaRT_W11\Dart_w11_en-US.tpk
    Type = wim
    Physical Size = 181228
    Size = 8589934592
    Packed Size = 1586789
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2019-04-12 12:25:59
    Modified = 2019-04-12 13:32:06
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 2
    
    Everything is Ok
    
    Folders: 16
    Files: 45
    Size:       2023776
    Compressed: 181228
    
    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
    
    Scanning the drive for archives:
    1 file, 68729438 bytes (66 MiB)
    
    Extracting archive: DaRT_W11\DebugTools_w11_26H1.tpk
    --
    Path = DaRT_W11\DebugTools_w11_26H1.tpk
    Type = wim
    Physical Size = 68729438
    Size = 12884901888
    Packed Size = 353365922
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2025-11-14 21:43:33
    Modified = 2025-11-14 21:44:28
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 3
    
    Everything is Ok
    
    Folders: 75
    Files: 862
    Size:       304796857
    Compressed: 68729438
    
    ==========================================================
    Adding DaRT 11 x64 To x64 Boot.wim...
    ==========================================================
    
    Scanning "TEMP\Dart_w11\2\"
    15 MiB scanned (35 files, 6 directories)
    Using LZX compression with 16 threads
    Archiving file data: 15 MiB of 15 MiB (100%) done
    Scanning "TEMP\Dart_w11_LP\2\"
    987 KiB scanned (22 files, 8 directories)
    Using LZX compression with 1 thread
    Archiving file data: 987 KiB of 987 KiB (100%) done
    Scanning "TEMP\Dart_w11_DeBug\2\"
    102 MiB scanned (336 files, 29 directories)
    Using LZX compression with 16 threads
    Archiving file data: 102 MiB of 102 MiB (100%) done
    
    ==========================================================
    Optimizing x64 Boot.wim...
    ==========================================================
    
    "TEMP\ISO\Sources\boot.wim" original size: 560065 KiB
    Using LZX compression with 16 threads
    Archiving file data: 1421 MiB of 1421 MiB (100%) done
    "TEMP\ISO\Sources\boot.wim" optimized size: 549820 KiB
    Space saved: 10245 KiB
    
    ==========================================================
    Adding DaRT 11 x64 To x64 Winre.wim...
    ==========================================================
    
    Extracting file data: 475 MiB of 475 MiB (100%) done
    Done extracting files.
    Scanning "TEMP\Dart_w11\2\"
    15 MiB scanned (35 files, 6 directories)
    Using LZX compression with 16 threads
    Archiving file data: 15 MiB of 15 MiB (100%) done
    Scanning "TEMP\Dart_w11_LP\2\"
    987 KiB scanned (22 files, 8 directories)
    Using LZX compression with 1 thread
    Archiving file data: 987 KiB of 987 KiB (100%) done
    Scanning "TEMP\Dart_w11_DeBug\2\"
    102 MiB scanned (336 files, 29 directories)
    Using LZX compression with 16 threads
    Archiving file data: 102 MiB of 102 MiB (100%) done
    
    ==========================================================
    Optimizing x64 WinRe...
    ==========================================================
    
    "TEMP\Winre\Winre.wim" original size: 538510 KiB
    Using LZX compression with 16 threads
    Archiving file data: 1375 MiB of 1375 MiB (100%) done
    "TEMP\Winre\Winre.wim" optimized size: 533707 KiB
    Space saved: 4803 KiB
    
    ==========================================================
    Putting x64 Winre.wim Back In x64 install.wim...
    ==========================================================
    
    
    ==========================================================
    Optimizing x64 install.wim...
    ==========================================================
    
    "TEMP\ISO\Sources\install.wim" original size: 5596539 KiB
    Using LZX compression with 16 threads
    Archiving file data: 11 GiB of 11 GiB (100%) done
    "TEMP\ISO\Sources\install.wim" optimized size: 4808841 KiB
    Space saved: 787697 KiB
    
    
    ==========================================================
    Creating 11 x64 ISO...
    ==========================================================
    
    
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 47 directories)
    Scanning source tree complete (969 files in 92 directories)
    
    Computing directory information complete
    
    Image file is 5678333952 bytes (before optimization)
    
    Writing 969 files in 92 directories to 28000.1.251103-1709.BR_RELEASE_CLIENTMULTI_X64FRE_EN-US_DaRT_11_2025_11_15.ISO
    
    100% complete
    
    Storage optimization saved 5 files, 28672 bytes (0% of image)
    
    After optimization, image file is 5680465920 bytes
    Space saved because of embedding, sparseness or optimization = 28672
    
    Done.
    
    ==========================================================
    Cleaning-up TEMP dir...
    ==========================================================
    
    
    Press any key to continue . . .
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. czx

    czx MDL Novice

    Sep 20, 2015
    1
    1
    0
    Thank you for sharing, I want to give it a try.
     
  10. Cashduo

    Cashduo MDL Novice

    Jan 3, 2026
    1
    1
    0
    This is exactly what I've been looking for but...I cannot seem to find the link. What an I missing here?
     
  11. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,939
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Twinwaves

    Twinwaves MDL Novice

    Dec 23, 2019
    1
    0
    0
    Password please???
     
  13. steven4554

    steven4554 MDL Expert

    Jul 12, 2009
    1,802
    3,732
    60
    The password is: MDL_2025
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,939
    450
    #134 Enthousiast, Jan 14, 2026
    Last edited: Jan 14, 2026
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    8,326
    11,613
    270
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,042
    1,010
    90
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. steven4554

    steven4554 MDL Expert

    Jul 12, 2009
    1,802
    3,732
    60
    @Flipp3r You're correct it is a defender antivirus definition update file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,939
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. TogoFire

    TogoFire MDL Novice

    May 2, 2018
    15
    7
    0
    Enthousiast ( @Enthousiast ) Hey! :)

    Living peacefully on openSUSE Leap was too easy, so I decided to suffer a bit for the greater good. I'm currently scripting my way through Windows to see if I can make it behave like a civilized OS.

    I’ve made some improvements to the DaRT integration .cmd script and would like to share them for your next update. I’ve enhanced the detection logic to support both official and modified ISOs, along with several other fixes. I hope you find this useful. Cheers!

    Btw, to make it easier for people to help and collaborate, you should consider creating a repository on GitHub or Hugging Face. It makes community contribution much more streamlined.

    Code:
    @echo off
    TITLE DaRT Integration Tool
    
    reg.exe query HKU\S-1-5-19 1>nul 2>nul && goto :gotAdmin
    if not "%1"=="am_admin" (
        powershell start -verb runas '%0' am_admin
        exit /b
    )
    
    :gotAdmin
    pushd "%~dp0"
    cls
    
    :: =========================
    :: CLEANUP
    :: =========================
    :cleanup
    if exist "TEMP" rmdir /s /q "TEMP"
    
    SET "Version=v4.6.1b1 by Enthousiast"
    SET "DebugTools=1"
    SET "Optimize=1"
    
    SETLOCAL ENABLEDELAYEDEXPANSION
    SETLOCAL ENABLEEXTENSIONS
    
    TITLE DaRT Integration Tool %Version%
    
    echo ============================================================
    echo Running DaRT Integration Tool %Version%
    echo ============================================================
    echo.
    echo [INFO] This tool integrates Microsoft DaRT into a Windows ISO.
    echo [INFO] Make sure your ISO is inside the Source_ISO folder.
    echo.
    
    :: =========================================
    :: SETTINGS STATUS
    :: =========================================
    if "%DebugTools%"=="1" (set "DBG_STATUS=ENABLED") else (set "DBG_STATUS=DISABLED")
    if "%Optimize%"=="1" (set "OPT_STATUS=ENABLED") else (set "OPT_STATUS=DISABLED")
    
    echo ============================================================
    echo USER SETTINGS
    echo ============================================================
    echo Debug Tools : %DBG_STATUS%
    echo Optimization: %OPT_STATUS%
    echo ============================================================
    
    :: =========================
    :: ISO NAME DISPLAY ONLY
    :: =========================
    
    set "ISO_FOLDER=Source_ISO"
    set "ISO_NAME="
    
    for /f "delims=" %%i in ('dir /b "%ISO_FOLDER%\*.iso" 2^>nul') do (
        set "ISO_NAME=%%i"
    )
    
    if not defined ISO_NAME (
        echo [ERROR] No ISO found in %ISO_FOLDER%
        pause
        exit /b
    )
    
    echo.
    echo ============================================================
    echo ISO DETECTED: %ISO_NAME%
    echo ============================================================
    echo.
    
    
    :: =========================
    :: MENU
    :: =========================
    :StartMenu
    echo ============================================================
    echo        DaRT INTEGRATION ENGINE %Version%
    echo ============================================================
    echo.
    echo   [1] Automatic Deployment Mode
    echo   [2] Manual Configuration Mode
    echo.
    echo ============================================================
    set /p mchoice=Select operation mode:
    
    if "%mchoice%"=="1" goto AutoDetect
    if "%mchoice%"=="2" goto ManualSelect
    goto StartMenu
    
    
    :: =========================
    :: AUTO DETECT
    :: =========================
    :AutoDetect
    
    setlocal EnableExtensions EnableDelayedExpansion
    
    set "DETECT_METHOD="
    set "vermajor="
    set "majorbuildnr="
    set "deltabuildnr="
    
    echo.
    echo Searching for ISO and extracting setup.exe...
    
    if exist "TEMP" rmdir /s /q "TEMP"
    mkdir "TEMP"
    
    for /f "delims=" %%i in ('dir /b Source_ISO\*.iso 2^>nul') do (
        set "ISO=%%i"
        bin\7z.exe e -y -oTEMP "Source_ISO\%%i" sources\setup.exe >nul 2>&1
    )
    
    ::: =========================
    :: VERSION DETECTION
    :: =========================
    
    set "vermajor="
    set "DETECT_METHOD="
    
    echo [INFO] Trying DISM detection...
    
    REM =========================
    REM LEVEL 1: DISM
    REM =========================
    for /f "tokens=4 delims=: " %%v in ('
        dism /english /get-imageinfo /imagefile:"TEMP\setup.exe" 2^>nul ^| findstr /i "Version"
    ') do (
        for /f "tokens=3 delims=." %%a in ("%%v") do (
            set "vermajor=%%a"
            set "DETECT_METHOD=DISM"
        )
    )
    
    REM =========================
    REM LEVEL 2: VERSION.TXT
    REM =========================
    if not defined vermajor (
        echo [WARN] DISM setup.exe failed - trying version.txt fallback...
    
        bin\7z.exe l "TEMP\setup.exe" > "TEMP\version.txt" 2>nul
    
        for /f "tokens=4,5 delims=. " %%i in ('
            findstr /i /b FileVersion "TEMP\version.txt"
        ') do (
            set "vermajor=%%i"
            set "DETECT_METHOD=VERSION.TXT"
        )
    )
    
    REM =========================
    REM LEVEL 3: INSTALL.WIM FALLBACK
    REM =========================
    if not defined vermajor (
        echo [WARN] version.txt failed - trying install.wim fallback...
    
        if exist "TEMP\ISO\sources\install.wim" (
            for /f "tokens=3 delims=." %%a in ('
                dism /english /get-wiminfo /wimfile:"TEMP\ISO\sources\install.wim" /index:1 ^| findstr /i "Version"
            ') do (
                set "vermajor=%%a"
                set "DETECT_METHOD=INSTALL.WIM"
            )
        )
    )
    
    REM =========================
    REM LEVEL 4: ISO HEURISTIC
    REM =========================
    if not defined vermajor (
        echo [WARN] WIM fallback failed - using ISO filename heuristic...
    
        for /f "tokens=2 delims=_" %%a in ("%ISO%") do (
            set "vermajor=%%a"
            set "DETECT_METHOD=ISO HEURISTIC"
        )
    )
    
    REM =========================
    REM FINAL CHECK
    REM =========================
    if not defined vermajor (
        echo [ERROR] All detection methods failed.
        pause
        goto ManualSelect
    )
    
    echo [OK] Detected Build: %vermajor%
    echo [INFO] Detection Method: %DETECT_METHOD%
    
    
    :: =========================
    :: MAPPING
    :: =========================
    set "Winver="
    set "BUILD="
    
    if "%vermajor%"=="7601"  set "Winver=7"  & set "BUILD=7"
    if "%vermajor%"=="9600"  set "Winver=81" & set "BUILD=81"
    if "%vermajor%"=="10240" set "Winver=10" & set "BUILD=th1"
    if "%vermajor%"=="19045" set "Winver=10" & set "BUILD=rs7"
    if "%vermajor%"=="20348" set "Winver=10" & set "BUILD=rs8"
    if "%vermajor%"=="22000" set "Winver=11" & set "BUILD=21h2"
    if "%vermajor%"=="22621" set "Winver=11" & set "BUILD=22h2"
    if "%vermajor%"=="26100" set "Winver=11" & set "BUILD=24h2"
    if "%vermajor%"=="28000" set "Winver=11" & set "BUILD=26h1"
    
    REM =========================
    REM HARD GUARANTEE
    REM =========================
    if not defined Winver (
    
        echo.
        echo ==========================================================
        echo Unknown build: %vermajor%
        echo [INFO] Attempting final ISO HEURISTIC recovery...
        echo ==========================================================
    
        set "vermajor="
    
        REM =========================
        REM FINAL ISO HEURISTIC RETRY
        REM =========================
        for %%I in ("%ISO%") do set "ISO_NAME=%%~nI"
    
        for /f "tokens=2 delims=(" %%a in ("!ISO_NAME!") do (
            for /f "tokens=1 delims=)" %%b in ("%%a") do (
                for /f "tokens=1 delims=." %%c in ("%%b") do set "vermajor=%%c"
            )
        )
    
        REM =========================
        REM RE-EVALUATE AFTER RETRY
        REM =========================
        if defined vermajor goto :RECHECK_AFTER_UNKNOWN
    
        echo [ERROR] Still unknown after heuristic retry.
        goto ManualSelect
    )
    
    :RECHECK_AFTER_UNKNOWN
    
    echo [INFO] Re-evaluating build after heuristic retry...
    
    set "Winver="
    set "BUILD="
    
    IF "%vermajor%"=="7601"  set "Winver=7"  & set "BUILD=7"
    IF "%vermajor%"=="9600"  set "Winver=81" & set "BUILD=81"
    IF "%vermajor%"=="10240" set "Winver=10" & set "BUILD=th1"
    IF "%vermajor%"=="19045" set "Winver=10" & set "BUILD=rs7"
    IF "%vermajor%"=="20348" set "Winver=10" & set "BUILD=rs8"
    IF "%vermajor%"=="22000" set "Winver=11" & set "BUILD=21h2"
    IF "%vermajor%"=="22621" set "Winver=11" & set "BUILD=22h2"
    IF "%vermajor%"=="26100" set "Winver=11" & set "BUILD=24h2"
    IF "%vermajor%"=="28000" set "Winver=11" & set "BUILD=26h1"
    
    if defined Winver (
        echo [OK] Recovered via ISO HEURISTIC: %vermajor%
        goto PostVersionSelect
    )
    
    echo [WARN] Still unresolved after retry.
    goto ManualSelect
    
    echo OK: Windows %Winver% %BUILD%
    goto PostVersionSelect
    
    
    :: =========================
    :: MANUAL SELECT
    :: =========================
    :ManualSelect
    
    set "Winver="
    set "BUILD="
    
    echo.
    echo ============================================================
    echo MANUAL SELECTION
    echo ============================================================
    echo [ 1 ] Windows 7
    echo [ 2 ] Windows 8.1
    echo [ 3 ] Windows 10 (22H2)
    echo [ 4 ] Windows 11 (21H2)
    echo [ 5 ] Windows 11 (22H2/23H2)
    echo [ 6 ] Windows 11 (24H2)
    echo [ 7 ] Windows 11 (26H1)
    echo [ 8 ] Windows Server 2022
    echo ============================================================
    
    set /p "vchoice=Choice: "
    
    if "%vchoice%"=="1" set "Winver=7" & set "BUILD=7"
    if "%vchoice%"=="2" set "Winver=81" & set "BUILD=81"
    if "%vchoice%"=="3" set "Winver=10" & set "BUILD=rs7"
    if "%vchoice%"=="4" set "Winver=11" & set "BUILD=21h2"
    if "%vchoice%"=="5" set "Winver=11" & set "BUILD=22h2"
    if "%vchoice%"=="6" set "Winver=11" & set "BUILD=24h2"
    if "%vchoice%"=="7" set "Winver=11" & set "BUILD=26h1"
    if "%vchoice%"=="8" set "Winver=10" & set "BUILD=rs8"
    
    :: =========================
    :: VALIDATION
    :: =========================
    if not defined Winver (
        echo.
        echo INVALID CHOICE - TRY AGAIN
        pause
        goto ManualSelect
    )
    
    echo Selected: Windows %Winver% %BUILD%
    goto PostVersionSelect
    
    
    :: =========================
    :: POST FLOW
    :: =========================
    :PostVersionSelect
    
    echo.
    echo ============================================================
    echo SYSTEM INITIALIZED: Windows %Winver% [%BUILD%]
    echo ============================================================
    
    reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" >nul && (
        set "arch=x86"
        set "_wimlib=%~dp0bin\wimlib-imagex.exe"
    ) || (
        set "arch=x64"
        set "_wimlib=%~dp0bin\bin64\wimlib-imagex.exe"
    )
    
    echo [SYSTEM] Architecture detected: %arch%
    
    
    :: =========================
    :: ASK BOOT.WIM
    :: =========================
    :AskDartBootWIM
    echo.
    echo ============================================================
    echo        BOOT.WIM INTEGRATION MODULE
    echo ============================================================
    echo.
    echo   [1] Enable integration
    echo   [2] Skip integration
    echo.
    set /p choice=Decision:
    if "%choice%"=="1" set "DARTBW=DARTBW1"
    if "%choice%"=="2" set "DARTBW=DARTBW0"
    
    
    :: =========================
    :: ASK WINRE
    :: =========================
    :AskDartWinreWIM
    echo.
    echo ============================================================
    echo        WINRE.WIM INTEGRATION MODULE
    echo ============================================================
    echo.
    echo   [1] Enable integration
    echo   [2] Skip integration
    echo.
    set /p choice=Decision:
    if "%choice%"=="1" set "DARTWRE=DARTWRE1"
    if "%choice%"=="2" set "DARTWRE=DARTWRE0"
    
    
    :: =========================
    :: EXIT
    :: =========================
    if "%DARTBW%"=="DARTBW0" if "%DARTWRE%"=="DARTWRE0" (
        echo.
        echo ============================================================
        echo   NO MODULES SELECTED - ABORTING PROCESS
        echo ============================================================
        pause
        goto cleanup
    )
    
    
    :: =========================
    :: EXTRACT ISO
    :: =========================
    echo.
    echo ============================================================
    echo            ISO EXTRACTION IN PROGRESS
    echo ============================================================
    
    if not exist "TEMP\ISO" mkdir "TEMP\ISO"
    
    for /f "delims=" %%i in ('dir /b Source_ISO\*.iso') do (
        set "isoname=%%i"
        bin\7z x -y -oTEMP\ISO "Source_ISO\%%i"
    )
    
    echo [STATUS] ISO extraction completed successfully
    
    
    :: =========================
    :: ISO ROOT DETECTION
    :: =========================
    set "ISO_PATH=TEMP\ISO"
    
    :: If ISO extracted into subfolder, detect it automatically
    for /d %%D in ("TEMP\ISO\*") do (
        if exist "%%D\sources" set "ISO_PATH=%%D"
    )
    
    echo [DEBUG] Using ISO path: %ISO_PATH%
    
    
    :: =========================
    :: WIM / ESD / SWM DETECTION
    :: =========================
    set "WIMFILE="
    set "WIMTYPE="
    
    if exist "%ISO_PATH%\sources\install.wim" (
        set "WIMFILE=install.wim"
        set "WIMTYPE=wim"
    )
    
    if exist "%ISO_PATH%\sources\install.esd" (
        set "WIMFILE=install.esd"
        set "WIMTYPE=esd"
    )
    
    if not defined WIMFILE (
        for %%F in ("%ISO_PATH%\sources\install.swm") do (
            if exist "%%~dpFinstall*.swm" (
                set "WIMFILE=install.swm"
                set "WIMTYPE=swm"
            )
        )
    )
    
    :: HARD fallback search
    if not defined WIMFILE (
        for /f "delims=" %%F in ('dir /b /s "%ISO_PATH%\install.*" 2^>nul') do (
            echo %%F | find /i "install.wim" >nul && set "WIMFILE=install.wim" & set "WIMTYPE=wim"
            echo %%F | find /i "install.esd" >nul && set "WIMFILE=install.esd" & set "WIMTYPE=esd"
            echo %%F | find /i "install.swm" >nul && set "WIMFILE=install.swm" & set "WIMTYPE=swm"
        )
    )
    
    if not defined WIMFILE (
        echo.
        echo ERROR: No install.wim / install.esd / install.swm found
        echo ISO_PATH = %ISO_PATH%
        echo Listing structure:
        dir /s "%ISO_PATH%" | more
    
        echo.
        echo Unsupported Windows ISO structure
        pause
        goto cleanup
    )
    
    echo [STATUS] Detected image: %WIMFILE% (%WIMTYPE%)
    
    
    :: =========================
    :: BOOT INDEX
    :: =========================
    set "boot_index=2"
    for /f "tokens=3" %%i in ('%_wimlib% info "TEMP\ISO\sources\boot.wim" ^| find "Image Count"') do set "imgcount=%%i"
    if "%imgcount%"=="1" set "boot_index=1"
    
    
    :: ============================================================
    :: ISO LANGUAGE DETECTION
    :: ============================================================
    
    set "DartLang=en-US"
    set "LabelLang="
    set "DetectedLang="
    
    echo.
    echo ============================================================
    echo Detecting ISO language via MUI packages...
    echo ============================================================
    
    :: ============================================================
    :: BUILD LANGUAGE LIST (SUPPORTED BY DART)
    :: ============================================================
    
    set "lang=de-DE en-US es-ES fr-FR it-IT ja-JP ko-KR pt-BR ru-RU zh-CN zh-TW"
    
    :: ============================================================
    :: ISO LANGUAGE LIST (WINDOWS ISO POSSIBLE LOCATIONS)
    :: ============================================================
    
    set "IsoLang=ar-SA bg-BG cs-CZ da-DK de-DE el-GR en-GB en-US es-ES es-MX et-EE fi-FI fr-CA fr-FR he-IL hr-HR hu-HU it-IT ja-JP ko-KR lt-LT lv-LV nb-NO nl-NL pl-PL pt-BR pt-PT ro-RO ru-RU sk-SK sl-SI sr-RS sv-SE th-TH tr-TR uk-UA zh-CN zh-HK zh-TW"
    
    :: ============================================================
    :: DETECT REAL ISO LANGUAGE (FROM MUI FILES)
    :: ============================================================
    
    for %%L in (%IsoLang%) do (
        if exist "TEMP\ISO\sources\%%L\*.mui" (
            set "DetectedLang=%%L"
        )
    )
    
    :: fallback
    if not defined DetectedLang (
        echo [WARN] No MUI language detected. Using default en-US.
        set "DetectedLang=en-US"
    )
    
    :: ============================================================
    :: MATCH ISO LANGUAGE WITH DART SUPPORTED LANGS
    :: ============================================================
    
    for %%A in (%lang%) do (
        if /I "%%A"=="%DetectedLang%" (
            set "DartLang=%%A"
        )
    )
    
    :: ============================================================
    :: FINAL FALLBACK
    :: ============================================================
    
    if not exist "Dart_w%Winver%\Dart_w%Winver%_%DartLang%.tpk" (
        echo.
        echo [WARN] DaRT package not found for %DartLang%
        echo [WARN] Falling back to en-US
        set "DartLang=en-US"
    )
    
    :: ============================================================
    :: OUTPUT RESULT
    :: ============================================================
    
    echo.
    echo ============================================================
    echo ISO Language Detected : %DetectedLang%
    echo DaRT Language Selected : %DartLang%
    echo ============================================================
    
    :: =========================
    :: DART PREP
    :: =========================
    echo.
    echo ============================================================
    echo        PREPARING DaRT MODULES
    echo ============================================================
    
    bin\7z x -y -oTEMP\Dart "DaRT_W%Winver%\Dart_w%Winver%.tpk"
    bin\7z x -y -oTEMP\LP "DaRT_W%Winver%\Dart_w%Winver%_%DartLang%.tpk"
    
    if /i "%DebugTools%"=="1" (
        bin\7z x -y -oTEMP\Debug "DaRT_W%Winver%\DebugTools_w%Winver%_%BUILD%.tpk"
    )
    
    echo [STATUS] DaRT payload ready
    
    
    :: =========================
    :: LANGUAGE DETECTION
    :: =========================
    
    echo.
    echo ============================================================
    echo Adding DaRT %Winver% %arch% %DartLang% to %arch% Boot.wim...
    echo ============================================================
    
    :: =========================
    :: BOOT.WIM INTEGRATION
    :: =========================
    if "%DARTBW%"=="DARTBW1" (
        echo.
        echo ============================================================
        echo        DEPLOYING TO BOOT.WIM
        echo ============================================================
    
        %_wimlib% update "TEMP\ISO\Sources\boot.wim" %boot_index% --command="add 'TEMP\Dart\%darch%\' '\'"
        %_wimlib% update "TEMP\ISO\Sources\boot.wim" %boot_index% --command="add 'TEMP\LP\%darch%\' '\'"
        if exist "TEMP\Debug\%darch%" (
            %_wimlib% update "TEMP\ISO\Sources\boot.wim" %boot_index% --command="add 'TEMP\Debug\%darch%\' '\'"
        )
    
        echo [STATUS] Boot.wim integration complete
    )
    
    
    echo.
    ECHO ==========================================================
    echo Adding DaRT %Winver% %arch% %DartLang% To %arch% Winre.wim...
    ECHO ==========================================================
    
    
    :: =========================
    :: WINRE INTEGRATION
    :: =========================
    if "%DARTWRE%"=="DARTWRE1" (
        echo.
        echo ============================================================
        echo       DEPLOYING TO WINRE.WIM
        echo ============================================================
    
        %_wimlib% extract "TEMP\ISO\sources\%WIMFILE%" 1 Windows\System32\Recovery\winre.wim --dest-dir=TEMP\Winre 2>nul
    
        if exist "TEMP\Winre\winre.wim" (
            %_wimlib% update "TEMP\Winre\winre.wim" 1 --command="add 'TEMP\Dart\%darch%\' '\'"
            %_wimlib% update "TEMP\Winre\winre.wim" 1 --command="add 'TEMP\LP\%darch%\' '\'"
            if exist "TEMP\Debug\%darch%" (
                %_wimlib% update "TEMP\Winre\winre.wim" 1 --command="add 'TEMP\Debug\%darch%\' '\'"
            )
    
            echo [STATUS] WinRE integration complete
        ) else (
            echo [STATUS] WinRE.wim not found in this ISO = Lite/Custom build detected
            echo [STATUS] Skipping WinRE integration
        )
    ) 
    
    :: =========================
    :: OPTIMIZE
    :: =========================
    if /i "%Optimize%"=="1" (
        echo.
        echo ============================================================
        echo       OPTIMIZING BOOT.WIM
        echo ============================================================
    
        %_wimlib% optimize "TEMP\ISO\Sources\boot.wim" --recompress
    
        echo [STATUS] Boot.wim optimization completed
        echo [INFO] Boot image compressed and rebuilt successfully
    
        echo.
        echo ============================================================
        echo       OPTIMIZING INSTALL.WIM
        echo ============================================================
    
        %_wimlib% optimize "TEMP\ISO\Sources\%WIMFILE%" --recompress
    
        echo [STATUS] Install.wim optimization completed
        echo [INFO] Windows image fully recompressed (LZMS/LZX)
    )
    
    :: =========================
    :: BUILD ISO
    :: =========================
    for /f %%# in ('powershell "get-date -format _yyyy_MM_dd"') do set "isodate=%%#"
    for /f "delims=" %%i in ('dir /b Source_ISO\*.iso') do set "isoname=%%i"
    
    set "finalname=%isoname:~0,-4%_DaRT_%isodate%.ISO"
    
    echo.
    echo ============================================================
    echo            GENERATING FINAL ISO IMAGE
    echo ============================================================
    
    bin\cdimage.exe -bootdata:2#p0,e,b"TEMP\ISO\boot\etfsboot.com"#pEF,e,b"TEMP\ISO\efi\Microsoft\boot\efisys.bin" -o -m -u2 -udfver102 -lWin_DaRT "TEMP\ISO" "%finalname%"
    
    echo [SUCCESS] ISO build completed
    
    
    :: =========================
    :: CLEANUP
    :: =========================
    :cleanup
    if exist "TEMP" rmdir /s /q "TEMP"
    
    echo.
    echo ============================================================
    echo        PROCESS COMPLETED SUCCESSFULLY
    echo ============================================================
    pause
    exit /b
    


    ============================================================
    Running DaRT Integration Tool v4.6.1b1 by Enthousiast
    ============================================================

    [INFO] This tool integrates Microsoft DaRT into a Windows ISO.
    [INFO] Make sure your ISO is inside the Source_ISO folder.

    ============================================================
    USER SETTINGS
    ============================================================
    Debug Tools : ENABLED
    Optimization: ENABLED
    ============================================================

    ============================================================
    ISO DETECTED: Windows X-Lite (19045.3757) 'Micro 10' SE [x64].iso
    ============================================================

    ============================================================
    DaRT INTEGRATION ENGINE v4.6.1b1 by Enthousiast
    ============================================================

    [1] Automatic Deployment Mode
    [2] Manual Configuration Mode

    ============================================================
    Select operation mode: 1

    Searching for ISO and extracting setup.exe...
    [INFO] Trying DISM detection...
    [WARN] DISM setup.exe failed - trying version.txt fallback...
    [OK] Detected Build: 19041
    [INFO] Detection Method: VERSION.TXT

    ==========================================================
    Unknown build: 19041
    [INFO] Attempting final ISO HEURISTIC recovery...
    ==========================================================
    [INFO] Re-evaluating build after heuristic retry...
    [OK] Recovered via ISO HEURISTIC: 19045

    ============================================================
    SYSTEM INITIALIZED: Windows 10 [rs7]
    ============================================================
    [SYSTEM] Architecture detected: x64

    ============================================================
    BOOT.WIM INTEGRATION MODULE
    ============================================================

    [1] Enable integration
    [2] Skip integration

    Decision: 1

    ============================================================
    WINRE.WIM INTEGRATION MODULE
    ============================================================

    [1] Enable integration
    [2] Skip integration

    Decision: 1

    ============================================================
    ISO EXTRACTION IN PROGRESS
    ============================================================

    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 1310619648 bytes (1250 MiB)

    Extracting archive: Source_ISO\Windows X-Lite (19045.3757) 'Micro 10' SE [x64].iso
    --
    Path = Source_ISO\Windows X-Lite (19045.3757) 'Micro 10' SE [x64].iso
    Type = Udf
    Physical Size = 1310619648
    Comment = WinXLiteFBConan
    Cluster Size = 2048
    Created = 2021-12-22 21:00:00

    Everything is Ok

    Folders: 11
    Files: 28
    Size: 1308616141
    Compressed: 1310619648
    [STATUS] ISO extraction completed successfully
    [DEBUG] Using ISO path: TEMP\ISO
    [STATUS] Detected image: install.wim (wim)

    ============================================================
    Detecting ISO language via MUI packages...
    ============================================================
    [WARN] No MUI language detected. Using default en-US.

    ============================================================
    ISO Language Detected : en-US
    DaRT Language Selected : en-US
    ============================================================

    ============================================================
    PREPARING DaRT MODULES
    ============================================================

    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 8894690 bytes (8687 KiB)

    Extracting archive: DaRT_W10\Dart_w10.tpk
    --
    Path = DaRT_W10\Dart_w10.tpk
    Type = wim
    Physical Size = 8894690
    Size = 8589934592
    Packed Size = 38013142
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2019-04-08 01:13:00
    Modified = 2019-04-08 01:17:13
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 2

    Everything is Ok

    Folders: 12
    Files: 71
    Size: 29258096
    Compressed: 8894690

    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 181228 bytes (177 KiB)

    Extracting archive: DaRT_W10\Dart_w10_en-US.tpk
    --
    Path = DaRT_W10\Dart_w10_en-US.tpk
    Type = wim
    Physical Size = 181228
    Size = 8589934592
    Packed Size = 1586789
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2019-04-12 08:25:59
    Modified = 2019-04-12 09:32:06
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 2

    Everything is Ok

    Folders: 16
    Files: 45
    Size: 2023776
    Compressed: 181228

    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 45708445 bytes (44 MiB)

    Extracting archive: DaRT_W10\DebugTools_w10_rs7.tpk
    --
    Path = DaRT_W10\DebugTools_w10_rs7.tpk
    Type = wim
    Physical Size = 45708445
    Size = 117879777
    Packed Size = 45653849
    Method = LZX:15
    Cluster Size = 32768
    Created = 2020-12-18 13:18:22
    Modified = 2020-12-18 13:22:45
    Version = 1.13
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 2

    Everything is Ok

    Folders: 48
    Files: 513
    Size: 131143773
    Compressed: 45708445
    [STATUS] DaRT payload ready

    ============================================================
    Adding DaRT 10 x64 en-US to x64 Boot.wim...
    ============================================================

    ============================================================
    DEPLOYING TO BOOT.WIM
    ============================================================
    Scanning "TEMP\Dart\\"
    27 MiB scanned (71 files, 13 directories)
    Using LZX compression with 4 threads
    Archiving file data: 27 MiB of 27 MiB (100%) done
    Scanning "TEMP\LP\\"
    1976 KiB scanned (45 files, 17 directories)
    Updating "\[1].xml" in WIM image
    Using LZX compression with 4 threads
    Archiving file data: 1384 KiB of 1384 KiB (100%) done
    Scanning "TEMP\Debug\\"
    125 MiB scanned (513 files, 49 directories)
    Updating "\[1].xml" in WIM image
    Using LZX compression with 4 threads
    Archiving file data: 112 MiB of 112 MiB (100%) done
    [STATUS] Boot.wim integration complete

    ==========================================================
    Adding DaRT 10 x64 en-US To x64 Winre.wim...
    ==========================================================

    ============================================================
    DEPLOYING TO WINRE.WIM
    ============================================================
    [STATUS] WinRE.wim not found in this ISO = Lite/Custom build detected
    [STATUS] Skipping WinRE integration

    ============================================================
    OPTIMIZING BOOT.WIM
    ============================================================
    "TEMP\ISO\Sources\boot.wim" original size: 174952 KiB
    Using LZX compression with 4 threads
    Archiving file data: 447 MiB of 447 MiB (100%) done
    "TEMP\ISO\Sources\boot.wim" optimized size: 172872 KiB
    Space saved: 2079 KiB
    [STATUS] Boot.wim optimization completed
    [INFO] Boot image compressed and rebuilt successfully

    ============================================================
    OPTIMIZING INSTALL.WIM
    ============================================================
    "TEMP\ISO\Sources\install.wim" original size: 1147316 KiB
    Using LZMS compression with 4 threads
    Archiving file data: 4290 MiB of 4290 MiB (100%) done
    "TEMP\ISO\Sources\install.wim" optimized size: 1132667 KiB
    Space saved: 14648 KiB
    [STATUS] Install.wim optimization completed
    [INFO] Windows image fully recompressed (LZMS/LZX

    ============================================================
    GENERATING FINAL ISO IMAGE
    ============================================================

    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.


    Scanning source tree
    Scanning source tree complete (28 files in 12 directories)

    Computing directory information complete

    Image file is 1352138752 bytes (before optimization)

    Writing 28 files in 12 directories to Windows X-Lite (19045.3757) 'Micro 10' SE [x64]_DaRT__2026_04_28.ISO

    100% complete

    Storage optimization saved 2 files, 178176 bytes (1% of image)

    After optimization, image file is 1352042496 bytes
    Space saved because of embedding, sparseness or optimization = 178176

    Done.
    [SUCCESS] ISO build completed

    ============================================================
    PROCESS COMPLETED SUCCESSFULLY
    ============================================================


    ============================================================
    Running DaRT Integration Tool v4.6.1b1 by Enthousiast
    ============================================================

    [INFO] This tool integrates Microsoft DaRT into a Windows ISO.
    [INFO] Make sure your ISO is inside the Source_ISO folder.

    ============================================================
    USER SETTINGS
    ============================================================
    Debug Tools : ENABLED
    Optimization: ENABLED
    ============================================================

    ============================================================
    ISO DETECTED: 28000.1836.260411-1307.BR_RELEASE_SVC_PROD1_CLIENTPRO_OEMRET_X64FRE_PT-BR.ISO
    ============================================================

    ============================================================
    DaRT INTEGRATION ENGINE v4.6.1b1 by Enthousiast
    ============================================================

    [1] Automatic Deployment Mode
    [2] Manual Configuration Mode

    ============================================================
    Select operation mode: 1

    Searching for ISO and extracting setup.exe...
    [INFO] Trying DISM detection...
    [WARN] DISM setup.exe failed - trying version.txt fallback...
    [OK] Detected Build: 28000
    [INFO] Detection Method: VERSION.TXT
    [INFO] Re-evaluating build after heuristic retry...
    [OK] Recovered via ISO HEURISTIC: 28000

    ============================================================
    SYSTEM INITIALIZED: Windows 11 [26h1]
    ============================================================
    [SYSTEM] Architecture detected: x64

    ============================================================
    BOOT.WIM INTEGRATION MODULE
    ============================================================

    [1] Enable integration
    [2] Skip integration

    Decision: 1

    ============================================================
    WINRE.WIM INTEGRATION MODULE
    ============================================================

    [1] Enable integration
    [2] Skip integration

    Decision: 1

    ============================================================
    ISO EXTRACTION IN PROGRESS
    ============================================================

    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 8284958720 bytes (7902 MiB)

    Extracting archive: Source_ISO\28000.1836.260411-1307.BR_RELEASE_SVC_PROD1_CLIENTPRO_OEMRET_X64FRE_PT-BR.ISO
    --
    Path = Source_ISO\28000.1836.260411-1307.BR_RELEASE_SVC_PROD1_CLIENTPRO_OEMRET_X64FRE_PT-BR.ISO
    Type = Udf
    Physical Size = 8284958720
    Comment = CPRA_X64FRE_PT-BR_DV9
    Cluster Size = 2048
    Created = 2026-04-11 13:07:07

    Everything is Ok

    Folders: 98
    Files: 1060
    Size: 8280198569
    Compressed: 8284958720
    [STATUS] ISO extraction completed successfully
    [DEBUG] Using ISO path: TEMP\ISO
    [STATUS] Detected image: install.wim (wim)

    ============================================================
    Detecting ISO language via MUI packages...
    ============================================================

    ============================================================
    ISO Language Detected : pt-BR
    DaRT Language Selected : pt-BR
    ============================================================

    ============================================================
    PREPARING DaRT MODULES
    ============================================================

    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 8894690 bytes (8687 KiB)

    Extracting archive: DaRT_W11\Dart_w11.tpk
    --
    Path = DaRT_W11\Dart_w11.tpk
    Type = wim
    Physical Size = 8894690
    Size = 8589934592
    Packed Size = 38013142
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2019-04-08 01:13:00
    Modified = 2019-04-08 01:17:13
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 2

    Everything is Ok

    Folders: 12
    Files: 71
    Size: 29258096
    Compressed: 8894690

    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 188478 bytes (185 KiB)

    Extracting archive: DaRT_W11\Dart_w11_pt-BR.tpk
    --
    Path = DaRT_W11\Dart_w11_pt-BR.tpk
    Type = wim
    Physical Size = 188478
    Size = 8589934592
    Packed Size = 1697913
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2019-04-12 08:29:28
    Modified = 2019-04-12 09:32:19
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 2

    Everything is Ok

    Folders: 16
    Files: 45
    Size: 2179364
    Compressed: 188478

    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 68729438 bytes (66 MiB)

    Extracting archive: DaRT_W11\DebugTools_w11_26H1.tpk
    --
    Path = DaRT_W11\DebugTools_w11_26H1.tpk
    Type = wim
    Physical Size = 68729438
    Size = 12884901888
    Packed Size = 353365922
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2025-11-14 17:43:33
    Modified = 2025-11-14 17:44:28
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 3

    Everything is Ok

    Folders: 75
    Files: 862
    Size: 304796857
    Compressed: 68729438
    [STATUS] DaRT payload ready

    ============================================================
    Adding DaRT 11 x64 pt-BR to x64 Boot.wim...
    ============================================================

    ============================================================
    DEPLOYING TO BOOT.WIM
    ============================================================
    Scanning "TEMP\Dart\\"
    27 MiB scanned (71 files, 13 directories)
    Using LZX compression with 4 threads
    Archiving file data: 27 MiB of 27 MiB (100%) done
    Scanning "TEMP\LP\\"
    2128 KiB scanned (45 files, 17 directories)
    Updating "\[1].xml" in WIM image
    Using LZX compression with 4 threads
    Archiving file data: 1485 KiB of 1485 KiB (100%) done
    Scanning "TEMP\Debug\\"
    290 MiB scanned (862 files, 76 directories)
    Updating "\[1].xml" in WIM image
    Using LZX compression with 4 threads
    Archiving file data: 271 MiB of 271 MiB (100%) done
    [STATUS] Boot.wim integration complete

    ==========================================================
    Adding DaRT 11 x64 pt-BR To x64 Winre.wim...
    ==========================================================

    ============================================================
    DEPLOYING TO WINRE.WIM
    ============================================================
    Extracting file data: 597 MiB of 597 MiB (100%) done
    Done extracting files.
    Scanning "TEMP\Dart\\"
    27 MiB scanned (71 files, 13 directories)
    Using LZX compression with 4 threads
    Archiving file data: 27 MiB of 27 MiB (100%) done
    Scanning "TEMP\LP\\"
    2128 KiB scanned (45 files, 17 directories)
    Updating "\[1].xml" in WIM image
    Using LZX compression with 4 threads
    Archiving file data: 1485 KiB of 1485 KiB (100%) done
    Scanning "TEMP\Debug\\"
    290 MiB scanned (862 files, 76 directories)
    Updating "\[1].xml" in WIM image
    Using LZX compression with 4 threads
    Archiving file data: 271 MiB of 271 MiB (100%) done
    [STATUS] WinRE integration complete

    ============================================================
    OPTIMIZING BOOT.WIM
    ============================================================
    "TEMP\ISO\Sources\boot.wim" original size: 751394 KiB
    Using LZX compression with 4 threads
    Archiving file data: 1811 MiB of 1811 MiB (100%) done
    "TEMP\ISO\Sources\boot.wim" optimized size: 741518 KiB
    Space saved: 9875 KiB
    [STATUS] Boot.wim optimization completed
    [INFO] Boot image compressed and rebuilt successfully

    ============================================================
    OPTIMIZING INSTALL.WIM
    ============================================================
    "TEMP\ISO\Sources\install.wim" original size: 7265222 KiB
    Using LZX compression with 4 threads
    Archiving file data: 15 GiB of 15 GiB (100%) done
    "TEMP\ISO\Sources\install.wim" optimized size: 7220053 KiB
    Space saved: 45168 KiB
    [STATUS] Install.wim optimization completed
    [INFO] Windows image fully recompressed (LZMS/LZX

    ============================================================
    GENERATING FINAL ISO IMAGE
    ============================================================

    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.


    Scanning source tree (1000 files in 95 directories)
    Scanning source tree complete (1060 files in 99 directories)

    Computing directory information complete

    Image file is 8346566656 bytes (before optimization)

    Writing 1060 files in 99 directories to 28000.1836.260411-1307.BR_RELEASE_SVC_PROD1_CLIENTPRO_OEMRET_X64FRE_PT-BR_DaRT__2026_04_28.ISO

    100% complete

    Storage optimization saved 49 files, 1294336 bytes (0% of image)

    After optimization, image file is 8347738112 bytes
    Space saved because of embedding, sparseness or optimization = 1294336

    Done.
    [SUCCESS] ISO build completed

    ============================================================
    PROCESS COMPLETED SUCCESSFULLY
    ============================================================


    ============================================================
    Running DaRT Integration Tool v4.6.1b1 by Enthousiast
    ============================================================

    [INFO] This tool integrates Microsoft DaRT into a Windows ISO.
    [INFO] Make sure your ISO is inside the Source_ISO folder.

    ============================================================
    USER SETTINGS
    ============================================================
    Debug Tools : ENABLED
    Optimization: ENABLED
    ============================================================

    ============================================================
    ISO DETECTED: [Windows X-Lite] Optimum 11 26H1 Pro v3.iso.iso
    ============================================================

    ============================================================
    DaRT INTEGRATION ENGINE v4.6.1b1 by Enthousiast
    ============================================================

    [1] Automatic Deployment Mode
    [2] Manual Configuration Mode

    ============================================================
    Select operation mode: 1

    Searching for ISO and extracting setup.exe...
    [INFO] Trying DISM detection...
    [WARN] DISM setup.exe failed - trying version.txt fallback...
    [OK] Detected Build: 19041
    [INFO] Detection Method: VERSION.TXT

    ==========================================================
    Unknown build: 19041
    [INFO] Attempting final ISO HEURISTIC recovery...
    ==========================================================
    [ERROR] Still unknown after heuristic retry.

    ============================================================
    MANUAL SELECTION
    ============================================================
    [ 1 ] Windows 7
    [ 2 ] Windows 8.1
    [ 3 ] Windows 10 (22H2)
    [ 4 ] Windows 11 (21H2)
    [ 5 ] Windows 11 (22H2/23H2)
    [ 6 ] Windows 11 (24H2)
    [ 7 ] Windows 11 (26H1)
    [ 8 ] Windows Server 2022
    ============================================================
    Choice: 7
    Selected: Windows 11 26h1

    ============================================================
    SYSTEM INITIALIZED: Windows 11 [26h1]
    ============================================================
    [SYSTEM] Architecture detected: x64

    ============================================================
    BOOT.WIM INTEGRATION MODULE
    ============================================================

    [1] Enable integration
    [2] Skip integration

    Decision: 1

    ============================================================
    WINRE.WIM INTEGRATION MODULE
    ============================================================

    [1] Enable integration
    [2] Skip integration

    Decision: 1

    ============================================================
    ISO EXTRACTION IN PROGRESS
    ============================================================

    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 3183136768 bytes (3036 MiB)

    Extracting archive: Source_ISO\[Windows X-Lite] Optimum 11 26H1 Pro v3.iso.iso
    --
    Path = Source_ISO\[Windows X-Lite] Optimum 11 26H1 Pro v3.iso.iso
    Type = Udf
    Physical Size = 3183136768
    Comment = X-Lite_FBConan
    Cluster Size = 2048
    Created = 2022-01-11 21:00:00

    Everything is Ok

    Folders: 11
    Files: 35
    Size: 3181410608
    Compressed: 3183136768
    [STATUS] ISO extraction completed successfully
    [DEBUG] Using ISO path: TEMP\ISO
    [STATUS] Detected image: install.wim (wim)

    ============================================================
    Detecting ISO language via MUI packages...
    ============================================================
    [WARN] No MUI language detected. Using default en-US.

    ============================================================
    ISO Language Detected : en-US
    DaRT Language Selected : en-US
    ============================================================

    ============================================================
    PREPARING DaRT MODULES
    ============================================================

    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 8894690 bytes (8687 KiB)

    Extracting archive: DaRT_W11\Dart_w11.tpk
    --
    Path = DaRT_W11\Dart_w11.tpk
    Type = wim
    Physical Size = 8894690
    Size = 8589934592
    Packed Size = 38013142
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2019-04-08 01:13:00
    Modified = 2019-04-08 01:17:13
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 2

    Everything is Ok

    Folders: 12
    Files: 71
    Size: 29258096
    Compressed: 8894690

    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 181228 bytes (177 KiB)

    Extracting archive: DaRT_W11\Dart_w11_en-US.tpk
    --
    Path = DaRT_W11\Dart_w11_en-US.tpk
    Type = wim
    Physical Size = 181228
    Size = 8589934592
    Packed Size = 1586789
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2019-04-12 08:25:59
    Modified = 2019-04-12 09:32:06
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 2

    Everything is Ok

    Folders: 16
    Files: 45
    Size: 2023776
    Compressed: 181228

    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 68729438 bytes (66 MiB)

    Extracting archive: DaRT_W11\DebugTools_w11_26H1.tpk
    --
    Path = DaRT_W11\DebugTools_w11_26H1.tpk
    Type = wim
    Physical Size = 68729438
    Size = 12884901888
    Packed Size = 353365922
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2025-11-14 17:43:33
    Modified = 2025-11-14 17:44:28
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 3

    Everything is Ok

    Folders: 75
    Files: 862
    Size: 304796857
    Compressed: 68729438
    [STATUS] DaRT payload ready

    ============================================================
    Adding DaRT 11 x64 en-US to x64 Boot.wim...
    ============================================================

    ============================================================
    DEPLOYING TO BOOT.WIM
    ============================================================
    Scanning "TEMP\Dart\\"
    27 MiB scanned (71 files, 13 directories)
    Using LZX compression with 4 threads
    Archiving file data: 27 MiB of 27 MiB (100%) done
    Scanning "TEMP\LP\\"
    1976 KiB scanned (45 files, 17 directories)
    Updating "\[1].xml" in WIM image
    Using LZX compression with 4 threads
    Archiving file data: 1384 KiB of 1384 KiB (100%) done
    Scanning "TEMP\Debug\\"
    290 MiB scanned (862 files, 76 directories)
    Updating "\[1].xml" in WIM image
    Using LZX compression with 4 threads
    Archiving file data: 271 MiB of 271 MiB (100%) done
    [STATUS] Boot.wim integration complete

    ==========================================================
    Adding DaRT 11 x64 en-US To x64 Winre.wim...
    ==========================================================

    ============================================================
    DEPLOYING TO WINRE.WIM
    ============================================================
    [STATUS] WinRE.wim not found in this ISO = Lite/Custom build detected
    [STATUS] Skipping WinRE integration

    ============================================================
    OPTIMIZING BOOT.WIM
    ============================================================
    "TEMP\ISO\Sources\boot.wim" original size: 360310 KiB
    Using LZX compression with 4 threads
    Archiving file data: 966 MiB of 966 MiB (100%) done
    "TEMP\ISO\Sources\boot.wim" optimized size: 356052 KiB
    Space saved: 4257 KiB
    [STATUS] Boot.wim optimization completed
    [INFO] Boot image compressed and rebuilt successfully

    ============================================================
    OPTIMIZING INSTALL.WIM
    ============================================================
    "TEMP\ISO\Sources\install.wim" original size: 2842893 KiB
    Using LZMS compression with 4 threads
    Archiving file data: 9321 MiB of 9321 MiB (100%) done
    "TEMP\ISO\Sources\install.wim" optimized size: 2812050 KiB
    Space saved: 30843 KiB
    [STATUS] Install.wim optimization completed
    [INFO] Windows image fully recompressed (LZMS/LZX

    ============================================================
    GENERATING FINAL ISO IMAGE
    ============================================================

    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.


    Scanning source tree
    Scanning source tree complete (35 files in 12 directories)

    Computing directory information complete

    Image file is 3262382080 bytes (before optimization)

    Writing 35 files in 12 directories to [Windows X-Lite] Optimum 11 26H1 Pro v3.iso_DaRT__2026_04_28.ISO

    100% complete

    Storage optimization saved 4 files, 485376 bytes (1% of image)

    After optimization, image file is 3261978624 bytes
    Space saved because of embedding, sparseness or optimization = 485376

    Done.
    [SUCCESS] ISO build completed

    ============================================================
    PROCESS COMPLETED SUCCESSFULLY
    ============================================================

    ;)
     
  20. Low Level Perform

    Low Level Perform MDL Member

    Jul 21, 2024
    154
    124
    10
    I tested it with Windows 7 Simplix without DaRT

    System ERROR:
    The system cannot find the file specified.

    Code:
    ============================================================
    Running DaRT Integration Tool v4.6.1b1 by Enthousiast
    ============================================================
    
    [INFO] This tool integrates Microsoft DaRT into a Windows ISO.
    [INFO] Make sure your ISO is inside the Source_ISO folder.
    
    ============================================================
    USER SETTINGS
    ============================================================
    Debug Tools : ENABLED
    Optimization: ENABLED
    ============================================================
    
    ============================================================
    ISO DETECTED: Win_7_AiO_x64_en-US_SiMPLiXED.iso
    ============================================================
    
    ============================================================
           DaRT INTEGRATION ENGINE v4.6.1b1 by Enthousiast
    ============================================================
    
      [1] Automatic Deployment Mode
      [2] Manual Configuration Mode
    
    ============================================================
    Select operation mode:2
    
    ============================================================
    MANUAL SELECTION
    ============================================================
    [ 1 ] Windows 7
    [ 2 ] Windows 8.1
    [ 3 ] Windows 10 (22H2)
    [ 4 ] Windows 11 (21H2)
    [ 5 ] Windows 11 (22H2/23H2)
    [ 6 ] Windows 11 (24H2)
    [ 7 ] Windows 11 (26H1)
    [ 8 ] Windows Server 2022
    ============================================================
    Choice: 1
    Selected: Windows 7 7
    
    ============================================================
    SYSTEM INITIALIZED: Windows 7 [7]
    ============================================================
    [SYSTEM] Architecture detected: x64
    
    ============================================================
           BOOT.WIM INTEGRATION MODULE
    ============================================================
    
      [1] Enable integration
      [2] Skip integration
    
    Decision:1
    
    ============================================================
           WINRE.WIM INTEGRATION MODULE
    ============================================================
    
      [1] Enable integration
      [2] Skip integration
    
    Decision:1
    
    ============================================================
               ISO EXTRACTION IN PROGRESS
    ============================================================
    
    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
    
    Scanning the drive for archives:
    1 file, 6702759936 bytes (6393 MiB)
    
    Extracting archive: Source_ISO\Win_7_AiO_x64_en-US_SiMPLiXED.iso
    --
    Path = Source_ISO\Win_7_AiO_x64_en-US_SiMPLiXED.iso
    Type = Udf
    Physical Size = 6702759936
    Comment = Win_7_AiO_x64_en-US
    Cluster Size = 2048
    Created = 2026-05-01 07:00:00
    
    Everything is Ok
    
    Folders: 583
    Files: 1449
    Size:       6707901846
    Compressed: 6702759936
    [STATUS] ISO extraction completed successfully
    [DEBUG] Using ISO path: TEMP\ISO
    [STATUS] Detected image: install.wim (wim)
    
    ============================================================
    Detecting ISO language via MUI packages...
    ============================================================
    [WARN] No MUI language detected. Using default en-US.
    
    ============================================================
    ISO Language Detected : en-US
    DaRT Language Selected : en-US
    ============================================================
    
    ============================================================
           PREPARING DaRT MODULES
    ============================================================
    
    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
    
    Scanning the drive for archives:
    1 file, 27732092 bytes (27 MiB)
    
    Extracting archive: DaRT_W7\Dart_w7.tpk
    --
    Path = DaRT_W7\Dart_w7.tpk
    Type = wim
    Physical Size = 27732092
    Size = 8589934592
    Packed Size = 130834996
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2019-04-12 17:58:48
    Modified = 2019-04-12 19:20:04
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 2
    
    Everything is Ok
    
    Folders: 75
    Files: 564
    Size:       118550606
    Compressed: 27732092
    
    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
    
    Scanning the drive for archives:
    1 file, 224432 bytes (220 KiB)
    
    Extracting archive: DaRT_W7\Dart_w7_en-US.tpk
    --
    Path = DaRT_W7\Dart_w7_en-US.tpk
    Type = wim
    Physical Size = 224432
    Size = 8589934592
    Packed Size = 1929029
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2019-04-12 19:06:49
    Modified = 2019-04-12 19:20:09
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 2
    
    Everything is Ok
    
    Folders: 22
    Files: 53
    Size:       2423216
    Compressed: 224432
    
    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
    
    Scanning the drive for archives:
    
    ERROR: The system cannot find the file specified.
    DaRT_W7\DebugTools_w7_7.tpk
    
    
    
    System ERROR:
    The system cannot find the file specified.
    [STATUS] DaRT payload ready
    
    ============================================================
    Adding DaRT 7 x64 en-US to x64 Boot.wim...
    ============================================================
    
    ============================================================
           DEPLOYING TO BOOT.WIM
    ============================================================
    Scanning "TEMP\Dart\\"
    113 MiB scanned (564 files, 76 directories)
    Using LZX compression with 8 threads
    Archiving file data: 98 MiB of 98 MiB (100%) done
    Scanning "TEMP\LP\\"
    2366 KiB scanned (53 files, 23 directories)
    Updating "\[1].xml" in WIM image
    Using LZX compression with 8 threads
    Archiving file data: 1677 KiB of 1677 KiB (100%) done
    [STATUS] Boot.wim integration complete
    
    ==========================================================
    Adding DaRT 7 x64 en-US To x64 Winre.wim...
    ==========================================================
    
    ============================================================
          DEPLOYING TO WINRE.WIM
    ============================================================
    Extracting file data: 228 MiB of 228 MiB (100%) done
    Done extracting files.
    Scanning "TEMP\Dart\\"
    113 MiB scanned (564 files, 76 directories)
    Using LZX compression with 8 threads
    Archiving file data: 98 MiB of 98 MiB (100%) done
    Scanning "TEMP\LP\\"
    2366 KiB scanned (53 files, 23 directories)
    Updating "\[1].xml" in WIM image
    Using LZX compression with 8 threads
    Archiving file data: 1677 KiB of 1677 KiB (100%) done
    [STATUS] WinRE integration complete
    
    ============================================================
          OPTIMIZING BOOT.WIM
    ============================================================
    "TEMP\ISO\Sources\boot.wim" original size: 449951 KiB
    Using LZX compression with 8 threads
    Archiving file data: 1121 MiB of 1121 MiB (100%) done
    "TEMP\ISO\Sources\boot.wim" optimized size: 442429 KiB
    Space saved: 7522 KiB
    [STATUS] Boot.wim optimization completed
    [INFO] Boot image compressed and rebuilt successfully
    
    ============================================================
          OPTIMIZING INSTALL.WIM
    ============================================================
    "TEMP\ISO\Sources\install.wim" original size: 5148386 KiB
    Using LZX compression with 8 threads
    Archiving file data: 11 GiB of 11 GiB (100%) done
    "TEMP\ISO\Sources\install.wim" optimized size: 5092501 KiB
    Space saved: 55884 KiB
    [STATUS] Install.wim optimization completed
    [INFO] Windows image fully recompressed (LZMS/LZX
    
    ============================================================
               GENERATING FINAL ISO IMAGE
    ============================================================
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (1223 files in 500 directories)
    Scanning source tree complete (1449 files in 584 directories)
    
    Computing directory information complete
    
    Image file is 6692405248 bytes (before optimization)
    
    Writing 1449 files in 584 directories to Win_7_AiO_x64_en-US_SiMPLiXED_DaRT__2026_05_01.ISO
    
    100% complete
    
    Storage optimization saved 310 files, 16367616 bytes (1% of image)
    
    After optimization, image file is 6680821760 bytes
    Space saved because of embedding, sparseness or optimization = 16367616
    
    Done.
    [SUCCESS] ISO build completed
    
    ============================================================
           PROCESS COMPLETED SUCCESSFULLY
    ============================================================
    Press any key to continue . . .
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...