Je Jin's DISM Tool

Discussion in 'Windows 7' started by Mr Jinje, Sep 14, 2009.

?

Were you able to create a recovery DVD with this tool ?

  1. Yes

    86 vote(s)
    39.6%
  2. No

    68 vote(s)
    31.3%
  3. WTF is a Recovery DVD ?

    63 vote(s)
    29.0%
  1. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,770
    1,101
    60
    #1 Mr Jinje, Sep 14, 2009
    Last edited by a moderator: May 23, 2017
  2. tomorrow

    tomorrow MDL Addicted

    Jul 3, 2008
    723
    263
    30
    Would be nice if someone made a DISM/WAIK tool that allows you to disable packets and features(the "Add or Remove Windows Features" dialog)

    So that you may have certain features disabled after install like IE8,WMP12 and so on
     
  3. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,770
    1,101
    60
    Well, don't expect this to be the next vLite or anything, but I could probably code removal of the more common packages/features.
     
  4. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    300
    #4 urie, Sep 14, 2009
    Last edited by a moderator: Apr 20, 2017
    Thanks for tool but, i can't get it to mount or even show wim info.

    Code:
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    E:\Windows_7_rtm_x86\sources>DISM /Get-WimInfo /WimFile:E:\Windows_7
    rces\install.wim
    
    Deployment Image Servicing and Management tool
    Version: 6.1.7600.16385
    
    
    Error: 87
    
    The get-wiminfo option is unknown.
    For more information, refer to the help by running DISM.exe /?.
    
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
    
    E:\Windows_7_rtm_x86\sources>

    Code:
    2009-09-14 18:16:58, Info                  DISM   PID=3716 Scratch directory set to 'C:\Users\George\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir
    2009-09-14 18:16:58, Info                  DISM   PID=3716 Successfully loaded the ImageSession at "E:\Windows_7_rtm_x86\sources" - CDISMManager::LoadImageSession
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Failed to get and initialize the PE Provider.  Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Manager: PID=3716 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: 
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: 
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: Host machine information: OS Version=6.1.7600, Running architecture=x86, Number of processors=4
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: Executing command line: DISM  /Get-WimInfo /WimFile:E:\Windows_7_rtm_x86\sources\install.wim
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Loading Provider from location E:\Windows_7_rtm_x86\sources\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
    2009-09-14 18:16:58, Warning               DISM   DISM Provider Store: PID=3716 Failed to Load the provider: E:\Windows_7_rtm_x86\sources\WimProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Loading Provider from location E:\Windows_7_rtm_x86\sources\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Connecting to the provider located at E:\Windows_7_rtm_x86\sources\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Loading Provider from location E:\Windows_7_rtm_x86\sources\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Connecting to the provider located at E:\Windows_7_rtm_x86\sources\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: FolderManager
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
    2009-09-14 18:16:58, Warning               DISM   DISM.EXE: Failed to load WimManager. Try running from the Deployment Tools Command Prompt. If the issue persists, ensure that wimgapi.dll and wimserv.exe are up to date.
    2009-09-14 18:16:58, Warning               DISM   DISM.EXE: Failed to add any commands.
    2009-09-14 18:16:58, Error                 DISM   DISM.EXE: No providers were found that support the command(get-wiminfo). HRESULT=0
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: 
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
    2009-09-14 18:16:58, Info                  DISM   DISM.EXE: 
    2009-09-14 18:16:58, Info                  DISM   DISM Image Session: PID=3716 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
    2009-09-14 18:16:58, Info                  DISM   DISM Provider Store: PID=3716 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
    
     
  5. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,770
    1,101
    60
    Yeah, now I am seeing that error, but only after I use "Choose WIM" button Think something must be up with the select file dialogs. (also notice the directory being changed in cmd.exe after using Choose WIM)..

    Can you verify this by pasting the install.wim path into the text field without using the choose wim button and see if it works then.
     
  6. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    300
    #6 urie, Sep 14, 2009
    Last edited by a moderator: Apr 20, 2017
    Yes it works for wim info when pasting install.wim path into text field but not for mounting image.
    Code:
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:\>DISM /Get-WimInfo /WimFile:E:\Windows_7_rtm_x86\sources\install.wim
    
    Deployment Image Servicing and Management tool
    Version: 6.1.7600.16385
    
    Details for image : E:\Windows_7_rtm_x86\sources\install.wim
    
    Index : 1
    Name : Windows 7 STARTER
    Description : Windows 7 STARTER
    Size : 7,936,340,784 bytes
    
    Index : 2
    Name : Windows 7 HOMEBASIC
    Description : Windows 7 HOMEBASIC
    Size : 7,992,394,907 bytes
    
    Index : 3
    Name : Windows 7 HOMEPREMIUM
    Description : Windows 7 HOMEPREMIUM
    Size : 8,432,859,356 bytes
    
    Index : 4
    Name : Windows 7 PROFESSIONAL
    Description : Windows 7 PROFESSIONAL
    Size : 8,313,318,889 bytes
    
    Index : 5
    Name : Windows 7 ULTIMATE
    Description : Windows 7 ULTIMATE
    Size : 8,471,060,645 bytes
    
    The operation completed successfully.
    
    C:\>
     
  7. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    300
    #7 urie, Sep 14, 2009
    Last edited by a moderator: Apr 20, 2017
    Image is mounting now ok
    Code:
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    E:\Windows_7_rtm_x86\sources>c:
    
    C:\>DISM.exe /Mount-Wim /wimfile:E:\Windows_7_rtm_x86\sources\install.wim /index
    :4 /MountDir:C:\Test
    
    Deployment Image Servicing and Management tool
    Version: 6.1.7600.16385
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    C:\>
    If you select path at choose wim part and also mount dir it doesn't remeber those settings when you select mount wim you have to select wim image and folder again.
    When you select integrate cert folder opens you select certificate then explorer opens i cant see certificate in mounted folder
     
  8. Brandrune

    Brandrune MDL Addicted

    Jul 30, 2009
    528
    6
    30
    Sorry for the noobie comment but what does this do?
     
  9. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    300
    It is a front end for DISM so you can mount and edit wim images saves you typing in commands into cmd windows:)
     
  10. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,770
    1,101
    60
  11. sebus

    sebus MDL Guru

    Jul 23, 2008
    6,354
    2,026
    210
    Nice GUI, thnaks

    sebus
     
  12. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,528
    13,518
    340
  13. Dolorous Edd

    Dolorous Edd MDL Expert

    Aug 31, 2009
    1,054
    217
    60
    Not sure what I am doing wrong, can you take a look at this?

    keeps telling me that

    "Error: 87

    The mount-wim option is unknown."


    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Windows7RTMX64\sources>c:

    C:\Windows7RTMX64\sources>DISM.exe /Mount-Wim /wimfile:C:\Windows7RTMX64\sources
    \install.wim /index:1 /MountDir:C:\working

    Deployment Image Servicing and Management tool
    Version: 6.1.7600.16385


    Error: 87

    The mount-wim option is unknown.
    For more information, refer to the help by running DISM.exe /?.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    C:\Windows7RTMX64\sources>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Dolorous Edd

    Dolorous Edd MDL Expert

    Aug 31, 2009
    1,054
    217
    60
    Think I have it now, it is mounting the image.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. colinzim

    colinzim MDL Senior Member

    May 14, 2007
    461
    114
    10
    #15 colinzim, Sep 15, 2009
    Last edited by a moderator: May 23, 2017
  16. colinzim

    colinzim MDL Senior Member

    May 14, 2007
    461
    114
    10
    #16 colinzim, Sep 15, 2009
    Last edited by a moderator: Apr 20, 2017
    Not a valid win32 application

    It should be going back to the program directory
    C:\Program Files\Windows OPK\Tools\PETools>
     
  17. colinzim

    colinzim MDL Senior Member

    May 14, 2007
    461
    114
    10
    #17 colinzim, Sep 15, 2009
    Last edited by a moderator: Apr 20, 2017
    That will work, been pasting that in to use the program
     
  18. Dolorous Edd

    Dolorous Edd MDL Expert

    Aug 31, 2009
    1,054
    217
    60
    #18 Dolorous Edd, Sep 15, 2009
    Last edited: Sep 15, 2009
    LOL, every where ther was a : D (but without the space) it was turned into :D

    The error at the top is from the gui, below that shows where I changed the path statement according to your instructions.

    Looks like an easy fix.

    BTW, I have a DISM.EXE in my system32 folder, on the root of C: and in my sources folder, where do you suggest DISM be and where are you invoking it from?

    I have the AIK installed.


    C:\7RTMX64\sources>c:

    C:\7RTMX64\sources>DISM.exe /Mount-Wim /wimfile:C:\7RTMX64\sources\install.wim /
    index:1 /MountDir:D:\test

    Deployment Image Servicing and Management tool
    Version: 6.1.7600.16385


    Error: 87

    The mount-wim option is unknown.
    For more information, refer to the help by running DISM.exe /?.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    C:\7RTMX64\sources>cd\



    C:\>dism.exe /mount-wim /wimfile:c:\7rtmx64\sources\install.wim /index:1 /mountd
    ir:D:\test

    Deployment Image Servicing and Management tool
    Version: 6.1.7600.16385

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    C:\>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. tuvi123

    tuvi123 MDL Addicted

    Jul 29, 2009
    623
    86
    30
    What is the different between this and GImageX?
     
  20. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,770
    1,101
    60