1. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
  2. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,741
    1,010
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Don't worry, It won't have any issues with the systems working state.

    If you want to completely cleanup a component then the DISM method is not the right way, You need to use Manual method by reading the Component package manifest file and remove the files/folders/registry settings/tasks.

    This method is although fastest in removing but preparing the removal data takes time as we need to extract each main package of the component we need to remove and gather the data and convert it into the code.

    or else we need to write a auto-mechanism to read the manifest and generate the code.

     
  4. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    #1964 MSMG, May 2, 2017
    Last edited: May 2, 2017
    (OP)
    This is my usual recommended order and it still is the best for Windows 7/8.1

    - Integrate Features including .NET Framework 3.5
    - Integrate Language Packs
    - Integrate Updates
    - Remove Components
    - Clean-Up

    Integrating Updates after removing the components for example System Restore in Windows 8.1 will again get restored due to it's update.

    But, Starting from Windows 10 it has changed a bit like

    - Integrate Features
    - Integrate Language Packs
    - Integrate Updates
    - Remove Components
    - Clean-Up
    - Integrate .NET Framework 3.5

    Edit: Corrected the last step.

     
  5. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,741
    1,010
    60
    how do I integrate .NET Framework 3.5
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,741
    1,010
    60
    you lost me there. I'm new to this, how to use that component package manifest? please tell me step by step if you don't mind
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Before finalizing the changes to the image, Integrate the .NET Framework as a last step.


     
  8. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,741
    1,010
    60
    I understand that but don't know how to go on about doing it
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    One way is using the SxS Exapnder tool to create the Package for the Removed Component which contains all the files/folders/registry settings/tasks in it's manifest file that the Component will be installing.

    Read the manifest file and make the list of files/folders/registry settings/tasks it will be adding and write the code to remove the same.

     
  10. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    For example let take Windows 10

    1) Integrate all the features you want to add except the .NET Framework 3.5 using the Integrate Feature Menu.
    2) Integrate the Language pack you want if required
    3) Integrate the Updates.
    4) Remove the Apps you don't want
    5) Remove the Components you don't want
    6) Apply Changes, this will perform the Cleanup
    7) Re-Mount the Source
    8) Add the .NET Framework 3.5 using the Integrate Feature Menu.
    9) Apply Changes.
    10) Re-Build the Image.


     
  11. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,741
    1,010
    60
    Small bug report, I tried integrating the Windows 7 Games then got an error that the chess game could not be found and the operation aborted.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Please don't try to add the old Games pack as it contains a serious bug which it affects the entire drive and that's why I have removed the Games Packs until I redo it from scratch and so I haven't fixed the code too yet.

     
  13. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,741
    1,010
    60
    #1973 Super Spartan, May 2, 2017
    Last edited: May 2, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. °ツ

    °ツ MDL Addicted

    Jun 8, 2014
    904
    1,181
    30
  15. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,741
    1,010
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,741
    1,010
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    Can someone share their custom list for package removal? I am interested in packages other the ones MSMG lists and other than Store Apps, but your own custom ones relatively safe to use?

    I think I successfully removed most Holo packages - there are sooo many and unless you use that Holo stuff, removing all has no effect.

    BTW, when I made my image there was the reported error about denied access to the Windows Defender SecUI package yet registry keys were deleted and the package is not listed. Does that mean it is gone..? The folder still exists in SystemApps.
     
  18. Windows 10 User

    Windows 10 User MDL Guru

    Feb 2, 2017
    2,006
    122
    90
    #1980 Windows 10 User, May 3, 2017
    Last edited: May 3, 2017
    Ok, but to remove Windows Defender I just have to remove it with this tool or do I have to run PowerShell commands after or before using the Windows Defender removal option in MSMG?

    EDIT: I just used these PowerShell elevated commands after I removed Windows Defender and before applying & saving changes to the source images and creating the ISO:

    dism /Image:X:ToolKit\Mount\Install /Cleanup-Image /ScanHealth
    dism /Image:X:ToolKit\Mount\Install /Cleanup-Image /StartComponentCleanup /ResetBase

    I think the first wasn't needed since it didn't detect any component store corruption...