DISMTools

Discussion in 'MDL Projects and Applications' started by Tito, Aug 1, 2023.

  1. The Windows Guy

    The Windows Guy MDL Senior Member

    Dec 7, 2020
    351
    1,140
    10
    Great! DISMTools focuses on Windows image compatibility so, if you run into issues while tinkering with the Win11 beta, report them (either here or on the GitHub repo).
     
  2. David Retzloff

    David Retzloff MDL Novice

    Apr 30, 2023
    22
    22
    0
    Windows 11 Pro beta 22635.2700 - No notable issues mounting the .wim or applying any of the changes made during use. I noticed that it was easier to add .appx/.msix files in bulk with this version.

    Some future nice to haves: Registry integration, post install .msi/.exe support (silent switch detection would be nice but I know it's very difficult with the various installer versions); Themepack integration (really any custom backgrounds, icons, cursors, etc.). I'm sure other things will occur to me.

    An offer of support. One of my eclectic skills is techincal writing with a focus on Technical SOP's. I see that you have some stuff up on the website and github but DISMTools would be more friendly to novice users with good documentation. Just a thought.
     
  3. The Windows Guy

    The Windows Guy MDL Senior Member

    Dec 7, 2020
    351
    1,140
    10
    Coming in version 0.4:

    DISMTools_KquZmc4cVH.png

    Image information report preview capabilities! This will let you see the reports you generate right after that process has finished. You can also print them from this window:

    info_report_print.png

    Do note that I haven't tinkered with lots of printing-related settings, like copies; so let me know if something goes wrong.
     
  4. The Windows Guy

    The Windows Guy MDL Senior Member

    Dec 7, 2020
    351
    1,140
    10
    Enhancements were made to this new design to properly support the dark theme. Also, here is the new "Project" tab in action:
    DISMTools_vzBkvIR08t.png
    The Project Tasks section from the side panel is also revamped in this new design.

    DISMTools_2TNKWibSNZ.png

    The Project Tasks section in the old design

    DISMTools_CZlbDUGyz4.png

    The Project Tasks section in the new design
    The Image Tasks section is yet to be implemented in this new design, but it will have the same design as the new Project Tasks section.
     
  5. nekro666

    nekro666 MDL Novice

    Aug 25, 2013
    20
    2
    0
    Change the color of the image capture icon. It's toxic, the eyes are flowing. What can be removed from windows - will it be an analogue of MS MG ToolKit? In general, the design is pleasant, it can also arrange the arrangement of elements and it will be fine
     
  6. The Windows Guy

    The Windows Guy MDL Senior Member

    Dec 7, 2020
    351
    1,140
    10
    The Image Tasks section is now implemented in this new design:

    DISMTools_udpTHkmi2e.png
    And, when no images are mounted, this is what you'll get:

    V1vGxF6gKU.png
     
  7. The Windows Guy

    The Windows Guy MDL Senior Member

    Dec 7, 2020
    351
    1,140
    10
    This new design is now functional, and you no longer need to pass the "/exp" flag to experience it
     
  8. The Windows Guy

    The Windows Guy MDL Senior Member

    Dec 7, 2020
    351
    1,140
    10
    DISMTools 0.4 now lets you configure the image information saver to avoid being asked questions all the time:

    LzXRgbnfKt.png
    You can find these settings in the "Image operations" section of the Options window.
     
  9. nekro666

    nekro666 MDL Novice

    Aug 25, 2013
    20
    2
    0
    Error level : B
    This error has not yet been added to the database, so a useful description can't be shown now. Try running the command manually and, if you see the same error, try looking it up on the Internet.

    version 22631.2787
     
  10. The Windows Guy

    The Windows Guy MDL Senior Member

    Dec 7, 2020
    351
    1,140
    10
    What operation did you try to do? I want to learn more about this error to determine if it's a bug.
     
  11. nekro666

    nekro666 MDL Novice

    Aug 25, 2013
    20
    2
    0
    I chose to create a new project, then chose to mount an image, chose a wim file, and when he tried to unpack the wim file, an alert with this error appeared
    2023-11-26 17:07:11, Info DISM PID=7056 TID=8320 Scratch directory set to 'C:\Users\Admin\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir
    2023-11-26 17:07:11, Info DISM PID=7056 TID=8320 DismCore.dll version: 10.0.22621.1 - CDISMManager::FinalConstruct
    2023-11-26 17:07:11, Info DISM Initialized Panther logging at C:\Users\Admin\Desktop\v0.4_231126\logs\DISMTools-26.11.2023 17-07-11.log
    2023-11-26 17:07:11, Info DISM PID=7056 TID=8320 Successfully loaded the ImageSession at "C:\Windows\system32\Dism" - CDISMManager::LoadLocalImageSession
    2023-11-26 17:07:11, Info DISM Initialized Panther logging at C:\Users\Admin\Desktop\v0.4_231126\logs\DISMTools-26.11.2023 17-07-11.log
    2023-11-26 17:07:11, Info DISM DISM Provider Store: PID=7056 TID=8320 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2023-11-26 17:07:11, Info DISM Initialized Panther logging at C:\Users\Admin\Desktop\v0.4_231126\logs\DISMTools-26.11.2023 17-07-11.log
    2023-11-26 17:07:11, Info DISM DISM Manager: PID=7056 TID=8320 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2023-11-26 17:07:11, Info DISM DISM.EXE:
    2023-11-26 17:07:11, Info DISM DISM.EXE: <----- Starting Dism.exe session ----->
    2023-11-26 17:07:11, Info DISM DISM.EXE:
    2023-11-26 17:07:11, Info DISM DISM.EXE: Host machine information: OS Version=10.0.22631, Running architecture=amd64, Number of processors=4
    2023-11-26 17:07:11, Info DISM DISM.EXE: Dism.exe version: 10.0.22621.1
    2023-11-26 17:07:11, Info DISM DISM.EXE: Executing command line: "C:\Windows\system32\dism.exe" /logpath="C:\Users\Admin\Desktop\v0.4_231126\logs\DISMTools-26.11.2023 17-07-11.log" /english /mount-image /imagefile="H:\Windows X-Lite (22631.2787) 'Optimum 11 23H2 Home' v3 by FBConan\Windows X-Lite (22631.2787) 'Optimum 11 23H2 Home' v3 by FBConan\sources\install.wim" /index=1 /mountdir="H:\Windows X-Lite (22631.2787) 'Optimum 11 23H2 Home' v3 by FBConan\Windows X-Lite (22631.2787)\mount"
    2023-11-26 17:07:11, Info DISM DISM Imaging Provider: PID=7056 TID=8320 WIM image specified - CGenericImagingManager::GetImageInfoCollection
    [7056.8320] [0x8144012d]
    2023-11-26 17:07:11, Warning DISM DISM WIM Provider: PID=7056 [ReadWimHeader:(1906) -> header version mismatch] H:\Windows X-Lite (22631.2787) 'Optimum 11 23H2 Home' v3 by FBConan\Windows X-Lite (22631.2787) 'Optimum 11 23H2 Home' v3 by FBConan\sources\install.wim (HRESULT=0x8007000B) - CWimManager::WimProviderMsgLogCallback
    [7056.8320] [0xc144012e]
    2023-11-26 17:07:11, Error DISM DISM WIM Provider: PID=7056 [WIMCreateFile:(419) -> Fail to read WIM header] H:\Windows X-Lite (22631.2787) 'Optimum 11 23H2 Home' v3 by FBConan\Windows X-Lite (22631.2787) 'Optimum 11 23H2 Home' v3 by FBConan\sources\install.wim (HRESULT=0x8007000B) - CWimManager::WimProviderMsgLogCallback
    2023-11-26 17:07:11, Error DISM DISM WIM Provider: PID=7056 TID=8320 "WIM open failed." - CWimImageInfo::Mount(hr:0x8007000b)
    2023-11-26 17:07:11, Error DISM DISM Imaging Provider: PID=7056 TID=8320 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:833 - CGenericImagingManager::InternalOpMount(hr:0x8007000b)
    2023-11-26 17:07:11, Error DISM DISM Imaging Provider: PID=7056 TID=8320 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:746 - CGenericImagingManager::InternalCmdMount(hr:0x8007000b)
    2023-11-26 17:07:11, Error DISM DISM Imaging Provider: PID=7056 TID=8320 onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:538 - CGenericImagingManager::ExecuteCmdLine(hr:0x8007000b)
    2023-11-26 17:07:11, Info DISM DISM.EXE: Image session has been closed. Reboot required=no.
    2023-11-26 17:07:11, Info DISM DISM.EXE:
    2023-11-26 17:07:11, Info DISM DISM.EXE: <----- Ending Dism.exe session ----->
    2023-11-26 17:07:11, Info DISM DISM.EXE:
     
  12. The Windows Guy

    The Windows Guy MDL Senior Member

    Dec 7, 2020
    351
    1,140
    10
    Can you upload a screenshot or a video recording of the error to view the error more clearly? This may also be a DISM error, so can you check the logs for more information?
     
  13. nekro666

    nekro666 MDL Novice

    Aug 25, 2013
    20
    2
    0
    Yes, I can. Look at my post above, I added a log there
     
  14. The Windows Guy

    The Windows Guy MDL Senior Member

    Dec 7, 2020
    351
    1,140
    10
    Can you manually try running the command in the log file manually?

    "C:\Windows\system32\dism.exe" /logpath="C:\Users\Admin\Desktop\v0.4_231126\logs\DISMTools-26.11.2023 17-07-11.log" /english /mount-image /imagefile="H:\Windows X-Lite (22631.2787) 'Optimum 11 23H2 Home' v3 by FBConan\Windows X-Lite (22631.2787) 'Optimum 11 23H2 Home' v3 by FBConan\sources\install.wim" /index=1 /mountdir="H:\Windows X-Lite (22631.2787) 'Optimum 11 23H2 Home' v3 by FBConan\Windows X-Lite (22631.2787)\mount"

    Looking at the error code (0x8007000b), it returns the following:

    Code:
    # for hex 0x8007000b / decimal -2147024885
      COR_E_BADIMAGEFORMAT                                           corerror.h
    # The format of DLL or executable being loaded is invalid.
    # as an HRESULT: Severity: FAILURE (1), FACILITY_WIN32 (0x7), Code 0xb
    # for hex 0xb / decimal 11
      ERROR_BAD_FORMAT                                               winerror.h
    # An attempt was made to load a program with an incorrect
    # format.
    # 2 matches found for "0x8007000b"
     
  15. nekro666

    nekro666 MDL Novice

    Aug 25, 2013
    20
    2
    0
    Error: 87

    The /mount-image option is not recognized in this context.
    The h parameter is specified without arguments.
    Delete the argument and run DISM again.
     
  16. The Windows Guy

    The Windows Guy MDL Senior Member

    Dec 7, 2020
    351
    1,140
    10
    Can you upload a screenshot of the DISM error?