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

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

  1. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,460
    95,360
    450
    My tool actually only supports x86 or x64, no arm64 but for win 11 there won't be an x86 ISO anyway, so maybe i will just use the wim/esd renamed to TPK as long as index 2 is correct :)
     
  2. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    1,240
    912
    60
    I convert the arm64 to x86 with %processor_architecture%, you can do that for update the tool, is more simple.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Sansa1

    Sansa1 MDL Novice

    Oct 3, 2022
    15
    2
    0
    Is it possible to use DART from 22621/22631 on 26100?
     
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,460
    95,360
    450
    Yes, only the debug tools are not updated (yet) for 26100 when using the 22621 (there is no 22631) DaRT package on 26100.
     
  5. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,460
    95,360
    450
    First test with the new modifications and tpk:

    Without debug tools added:
    Settings inside the script:
    Code:
    REM USER Setting(s):
    REM When set to "0" the debug tools won't be added to boot.wim and winre.wim
    SET Debug=0
    
    Code:
    ============================================================
    Running DaRT Integration Tool v4.2 by Enthousiast @MDL
    ============================================================
    
    ==========================================================
    You have chosen to NOT integrate the Debug tools...
    ==========================================================
    Press any key to continue . . .
    
    ==========================================================
    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, 5206362112 bytes (4966 MiB)
    
    Extracting archive: Source_ISO\26100.268.240408-1720.GE_RELEASE_SVC_IM_CLIENT_X64FRE_NL-NL.iso
    --
    Path = Source_ISO\26100.268.240408-1720.GE_RELEASE_SVC_IM_CLIENT_X64FRE_NL-NL.iso
    Type = Udf
    Physical Size = 5206362112
    Comment = 26100.268
    Cluster Size = 2048
    Created = 2024-04-29 02:00:00
    
    Everything is Ok
    
    Folders: 95
    Files: 1049
    Size:       5216243144
    Compressed: 5206362112
    x64 is detected
    
    'ech' is not recognized as an internal or external command,
    operable program or batch file.
    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 06:13:00
    Modified = 2019-04-08 06: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 13:25:59
    Modified = 2019-04-12 14: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, 38645522 bytes (37 MiB)
    
    Extracting archive: DaRT_W11\DebugTools_w11_24h2.tpk
    --
    Path = DaRT_W11\DebugTools_w11_24h2.tpk
    Type = wim
    Physical Size = 38645522
    Size = 4294967296
    Packed Size = 197982630
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2024-05-02 21:51:35
    Modified = 2024-05-03 15:37:06
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 3
    
    Everything is Ok
    
    Folders: 86
    Files: 928
    Size:       247103525
    Compressed: 38645522
    
    ==========================================================
    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
    
    ==========================================================
    Optimizing x64 Boot.wim...
    ==========================================================
    
    "TEMP\ISO\Sources\boot.wim" original size: 536079 KiB
    Using LZX compression with 16 threads
    Archiving file data: 1350 MiB of 1350 MiB (100%) done
    "TEMP\ISO\Sources\boot.wim" optimized size: 529982 KiB
    Space saved: 6097 KiB
    
    ==========================================================
    Adding DaRT 11 x64 To x64 Winre.wim...
    ==========================================================
    
    Extracting file data: 488 MiB of 488 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
    
    ==========================================================
    Optimizing x64 WinRe...
    ==========================================================
    
    "TEMP\Winre\Winre.wim" original size: 510326 KiB
    Using LZX compression with 16 threads
    Archiving file data: 1294 MiB of 1294 MiB (100%) done
    "TEMP\Winre\Winre.wim" optimized size: 501993 KiB
    Space saved: 8333 KiB
    
    ==========================================================
    Putting x64 Winre.wim Back In x64 install.wim...
    ==========================================================
    
    
    ==========================================================
    Optimizing x64 install.wim...
    ==========================================================
    
    "TEMP\ISO\Sources\install.wim" original size: 4881395 KiB
    Using LZX compression with 16 threads
    Archiving file data: 9 GiB of 9 GiB (100%) done
    "TEMP\ISO\Sources\install.wim" optimized size: 4358865 KiB
    Space saved: 522530 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 (1000 files in 91 directories)
    Scanning source tree complete (1049 files in 96 directories)
    
    Computing directory information complete
    
    Image file is 5211127808 bytes (before optimization)
    
    Writing 1049 files in 96 directories to 26100.268.240408-1720.GE_RELEASE_SVC_IM_CLIENT_X64FRE_NL-NL_DaRT_11_2024_05_03.ISO
    
    100% complete
    
    Storage optimization saved 67 files, 15906816 bytes (1% of image)
    
    After optimization, image file is 5197676544 bytes
    Space saved because of embedding, sparseness or optimization = 15906816
    
    Done.
    
    ==========================================================
    Cleaning-up TEMP dir...
    ==========================================================
    
    
    Press any key to continue . . .
    
    With debug tools added:
    Code:
    ============================================================
    Running DaRT Integration Tool v4.2 by Enthousiast @MDL
    ============================================================
    
    
    ==========================================================
    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, 5206362112 bytes (4966 MiB)
    
    Extracting archive: Source_ISO\26100.268.240408-1720.GE_RELEASE_SVC_IM_CLIENT_X64FRE_NL-NL.iso
    --
    Path = Source_ISO\26100.268.240408-1720.GE_RELEASE_SVC_IM_CLIENT_X64FRE_NL-NL.iso
    Type = Udf
    Physical Size = 5206362112
    Comment = 26100.268
    Cluster Size = 2048
    Created = 2024-04-29 02:00:00
    
    Everything is Ok
    
    Folders: 95
    Files: 1049
    Size:       5216243144
    Compressed: 5206362112
    x64 is detected
    
    'ech' is not recognized as an internal or external command,
    operable program or batch file.
    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 06:13:00
    Modified = 2019-04-08 06: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 13:25:59
    Modified = 2019-04-12 14: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, 38645522 bytes (37 MiB)
    
    Extracting archive: DaRT_W11\DebugTools_w11_24h2.tpk
    --
    Path = DaRT_W11\DebugTools_w11_24h2.tpk
    Type = wim
    Physical Size = 38645522
    Size = 4294967296
    Packed Size = 197982630
    Method = LZMS:17
    Cluster Size = 131072
    Created = 2024-05-02 21:51:35
    Modified = 2024-05-03 15:37:06
    Version = 0.14
    Multivolume = -
    Volume = 1
    Volumes = 1
    Images = 3
    
    Everything is Ok
    
    Folders: 86
    Files: 928
    Size:       247103525
    Compressed: 38645522
    
    ==========================================================
    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\"
    90 MiB scanned (321 files, 30 directories)
    Using LZX compression with 16 threads
    Archiving file data: 89 MiB of 89 MiB (100%) done
    
    ==========================================================
    Optimizing x64 Boot.wim...
    ==========================================================
    
    "TEMP\ISO\Sources\boot.wim" original size: 572872 KiB
    Using LZX compression with 16 threads
    Archiving file data: 1440 MiB of 1440 MiB (100%) done
    "TEMP\ISO\Sources\boot.wim" optimized size: 565120 KiB
    Space saved: 7752 KiB
    
    ==========================================================
    Adding DaRT 11 x64 To x64 Winre.wim...
    ==========================================================
    
    Extracting file data: 488 MiB of 488 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\"
    90 MiB scanned (321 files, 30 directories)
    Using LZX compression with 16 threads
    Archiving file data: 89 MiB of 89 MiB (100%) done
    
    ==========================================================
    Optimizing x64 WinRe...
    ==========================================================
    
    "TEMP\Winre\Winre.wim" original size: 547175 KiB
    Using LZX compression with 16 threads
    Archiving file data: 1384 MiB of 1384 MiB (100%) done
    "TEMP\Winre\Winre.wim" optimized size: 537132 KiB
    Space saved: 10043 KiB
    
    ==========================================================
    Putting x64 Winre.wim Back In x64 install.wim...
    ==========================================================
    
    
    ==========================================================
    Optimizing x64 install.wim...
    ==========================================================
    
    "TEMP\ISO\Sources\install.wim" original size: 4916501 KiB
    Using LZX compression with 16 threads
    Archiving file data: 9 GiB of 9 GiB (100%) done
    "TEMP\ISO\Sources\install.wim" optimized size: 4393970 KiB
    Space saved: 522530 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 (1000 files in 91 directories)
    Scanning source tree complete (1049 files in 96 directories)
    
    Computing directory information complete
    
    Image file is 5283053568 bytes (before optimization)
    
    Writing 1049 files in 96 directories to 26100.268.240408-1720.GE_RELEASE_SVC_IM_CLIENT_X64FRE_NL-NL_DaRT_11_2024_05_03.ISO
    
    100% complete
    
    Storage optimization saved 67 files, 15906816 bytes (1% of image)
    
    After optimization, image file is 5269606400 bytes
    Space saved because of embedding, sparseness or optimization = 15906816
    
    Done.
    
    ==========================================================
    Cleaning-up TEMP dir...
    ==========================================================
    
    
    Press any key to continue . . .
    
     
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,460
    95,360
    450
  7. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,713
    1,944
    60
  8. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,390
    11,618
    240
    I've always been obsessed with using the official MS tools whenever possible. I can't tell you how crazy it made me trying to make the super-AIOs and have them error out on me using their official tools. At the end of the day, there's no substitute for a good test install and system file check scan. I wonder when MS will stop using the Vista era installers and OS layout.
     
  9. kibkalo

    kibkalo MDL Addicted

    Sep 8, 2009
    606
    229
    30
    Is it possible to integrate multiple languages of DaRT? And choose before start, or change inside?
    I am speaking of course about multi-language W11 image, where both boot.wim and install.wim contain few LPs installed.
    As I see it now, tool integrates the default language, so I see one language in DaRT - both cases, - booting from ISO (and changing installation language, but still DaRT remains on first lang) and in WinRE, - regardless of what was my default UI in W11.
    Thanks.
     
  10. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,390
    11,618
    240
    Well you might be able to make a script to change a registry key but it would be a bit confusing to the user. The way DaRT works is that it already integrates into the recovery options.
    So say you inserted a cmd script to mod the reg key of the booted virtual windows system. It may or may not affect the way the setup program displays or installs information. It also may or may not work with DaRT.
    The way I did my diskpart setup script was to use winpeshl.ini in the system32 directory.
    The contents of that were:
    Code:
    [LaunchApps]
    %WINDIR%\system32\winpeinit.exe
    %WINDIR%\system32\menu.cmd
    %SYSTEMDRIVE%\sources\setup.exe
    
    You could then make a menu.cmd that simply set the reg key to change system language. I don't know how you do that as I never change sys language myself. I doubt it would be very hard. You would also need to add all of the appropriate packages for the dart and dependent packages that dart might rely on, especially language packages. But that's not all. You would need to add the appropriate language cab files for the winpe environment into your boot.wim or else it will error out when you switch languages. You can find them on the winpe tool iso that is appropriate for the build, downloaded from MS website.
     
  11. liliactr

    liliactr MDL Member

    Sep 3, 2009
    220
    86
    10
    Can i demand a little favour too :) After i use your tool resulting winre.wim name is "winre.wim" with little alphabet "w" but the original winre.wim name inside install.wim is "Winre.wim" beginning alphabet "W". Can you change the winre.wim lines and update "Winre.wim" in your script? I am a little obsessive
     
  12. asabater

    asabater MDL Member

    Sep 6, 2008
    186
    60
    10
    #54 asabater, May 8, 2024
    Last edited: May 8, 2024

    mod yourself DaRT_Integration_Tool_4.2_Beta1.cmd is opensource

    ECHO ==========================================================
    echo Putting %warch% Winre.wim Back In %warch% %WIMFILE%...
    ECHO ==========================================================
    echo.

    for /f "tokens=3 delims=: " %%i in ('%_wimlib% info "TEMP\ISO\sources\%WIMFILE%" ^| findstr /c:"Image Count"') do set images=%%i
    for /L %%i in (1,1,%images%) do (
    %_wimlib% update "TEMP\ISO\sources\%WIMFILE%" %%i --command="add 'TEMP\Winre\Winre.wim' '\Windows\System32\Recovery\winre.wim'" >nul
    )
     
  13. liliactr

    liliactr MDL Member

    Sep 3, 2009
    220
    86
    10
    I know that. Just i do not want to manual mod it at every update. Thats why i said favour.
     
  14. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,460
    95,360
    450
    I already put the W in, the tool and the OP will be updated asap, atm busy cleaning my NAS for future IP ISOs.