MSMG ToolKit

Discussion in 'MDL Projects and Applications' started by MSMG, Nov 21, 2013.

  1. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    #16421 MSMG, Sep 17, 2020
    Last edited: Sep 17, 2020
    (OP)
    Yes now for v1809, v1903/v1909, v2004/20H2 the steps are same, first integrate the update that the ToolKitHelper has been updated to support and then remove the components.

     
  2. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    Ok fixed it.

     
  3. Feartamixg

    Feartamixg MDL Addicted

    May 15, 2016
    555
    423
    30
    Thank you for your quick reply @MSMG

    Shall test later without removing components. I suspect the issue is as it was with 1803/1809 builds and that the integration of updates is causing the error. I don't think we ever got this problem fixed. :(

    See my earlier posts referring to 1809 errors:
    https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-760#post-1597271
    https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-761#post-1597597
     
  4. RaiyvaN

    RaiyvaN MDL Senior Member

    Sep 23, 2009
    302
    347
    10
    #16425 RaiyvaN, Sep 17, 2020
    Last edited: Oct 3, 2020
    https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-793#post-1606110

    Sent an 2020-09-17 updated file in the post above.

    Merged with new MSMG Toolkit 10.5

    I facilitated the steps in the menu [6] Apply.
    When it finish a step, it goes back to Menu "[6] Apply". Only when you finish the Rebuild Step that goes back to the Main Menu.

    Some aesthetic changes were made just to display the message "Mounting Image Registry ..." and "Un-Mounting Image Registry".

    Fixed the Menus that had the options reversed.

    Since I am doing this, I have already been reviewing the Custom Menus and I saw that after @MSMG added PowerShell7 to the menu, I forgot to change the information about which items are Integrated in the Custom Option. So, I also added PowerShell7 to be integrated into the "Integrate Custom Selected ..." options
    Code:
    ===============================================================================
                    MSMG ToolKit - Integrate Windows Features Menu
    ===============================================================================
    
      [A]   Microsoft .NET Framework 3.5
      [B]   Microsoft Edge Chromium Browser
      [C]   Microsoft Win32 Calculator
      [D]   Windows Accessibility Braille
      [E]   Windows Media Feature Pack
      [F]   Windows Portable Devices
      [G]   Windows PowerShell 7.0
      [H]   Open Secure Shell (SSH) Client & Server
      [I]   Microsoft Default Metro Apps
      [J]   Microsoft Office Desktop UWP Apps
      [K]   Microsoft DaRT 10.0 Tools
      [L]   Microsoft DirectX 9.0c
      [M]   Microsoft Games
      [N]   Windows Sidebar
      [O]   Microsoft Visual C++ Runtime
    
      [S]   Integrate Custom Selected L M O C G
      [Z]   Integrate Custom Selected L   O C G
    
      [X]   Go Back
    ===============================================================================
    
    Enter Your Choice :
    

    Merged with new MSMG Toolkit 10.4

    Now, with @MSMG suggestions, the removal menu doesn't show there options for ISO sources integrated with new cumulative or feature updates, is fixed.
    ex:
    18362.1016
    18363.1016

    Merged with new MSMG Toolkit 10.3

    Added: Show info in Source Menu when you have already selected your source.

    Merged with new Toolkit 10.2


    Some improvments:

    When you selected any option to remove all components and decided to return by answering "no" for some reason. You would always return to the Main Menu. In the Custom Toolkit when you answer "no" you are returned to the menu you were in.

    In previous Custom Toolkits I couldn't see a way to maintain the Original "Apply Tweaks Menu" without increasing the code size.

    But thanks to the changes that @MSMG made in the new version, it opened my eyes and I managed to put both menus. The original "Apply Tweaks Menu" back and the "Custom Apply Tweaks Menu".

    The problem was that when deciding to apply a tweak individually, fall into the system of applying all tweaks by answering questions. But now this is fixed.

    There was an error with an extra quote in the Edge removal lines, for some Custom Removal to make Specific Editions. First I thought about correcting it just by removing the extra quote. But I changed my mind and simply put it to remove the Edge directly on the command line to remove multiple components at once.

    I decided to make some changes mainly in the "Gamer Edition" (more components removed that can be added through the Windows Store), so I made changes in the other "Custom Editions" as well. But not in the "Accessibility Edition".

    I put some pauses in the custom integration steps "Integrate Custom Selection 8 7 6 5" so that you can see what happens.

    Fixed a registry error in my custom tweaks and added suggestions for use in the Windows Store, automatic installations in silent mode disabled. Autodownload - Update for installed apps enabled

    Code:
    ...
           if "%Component%" equ "PrivacyComponents" (
               %ToolKitHelper% "%InstallMount%\%%i" AssignedAccess;CEIP_SQM;FaceRecognition;KernelDebugging;LocationService;PicturePassword;PinEnrollment;UnifiedTelemetryClient;WiFiNetworkManager;WindowsInsiderHub
               if "%ImageBuild%" equ "17763" %ToolKitHelper% "%InstallMount%\%%i" WindowsErrorReporting
               if "%ImageBuild%" geq "18362" if "%ImageBuild%" leq "18363" %ToolKitHelper% "%InstallMount%\%%i" WindowsErrorReporting
               if "%ImageBuild%" equ "19041" %ToolKitHelper% "%InstallMount%\%%i" WindowsErrorReporting
               if "%ImageBuild%" equ "19042" %ToolKitHelper% "%InstallMount%\%%i" WindowsErrorReporting
           )
    )else(
           if "%Component%" equ "PrivacyComponents" (
               %ToolKitHelper% "%InstallMount%" AssignedAccess;CEIP_SQM;FaceRecognition;KernelDebugging;LocationService;PicturePassword;PinEnrollment;UnifiedTelemetryClient;WiFiNetworkManager;WindowsInsiderHub
               if "%ImageBuild%" equ "17763" %ToolKitHelper% "%InstallMount%" WindowsErrorReporting
               if "%ImageBuild%" geq "18362" if "%ImageBuild%" leq "18363" %ToolKitHelper% "%InstallMount%" WindowsErrorReporting
               if "%ImageBuild%" equ "19041" %ToolKitHelper% "%InstallMount%" WindowsErrorReporting
               if "%ImageBuild%" equ "19042" %ToolKitHelper% "%InstallMount%" WindowsErrorReporting
           )
    )
    

    Windows Error Reporting is needed for OOBE for v1903 / v1909 OS.
    This component has been reinserted and will pass again, according to specific conditions, to be automatically removed by the "Editions Custom Selection Removal Script" options available in CustomToolkit. Conditions prevent removal on versions v1903 / v1909.

    Only for:
    Remove All Privacy Components
    Accessibility Edition
    Lite Edition
    Xtreme Lite Edition
    Content Delivery Manager is needed for OOBE for v1809 / v1903 / v1909 / v2004 / v20H2 OS.
    For this Component, if you want, just access the "Remove System Components Menu" to remove "Content Delivery Manager".

    I also made available a model of my AutoUnattend *.xml answer file with a ReadMe for those who want to play a little.

    Reported a problem in the question "Do you want to Enable Fraunhofer MP3 Professional Codec ? ['Y'es/'N'o] :" mentioned in the post "https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-796#post-1607819" by friend @roedel.

    Problem solved.

    As @MSMG said:
    Content Delivery Manager is needed for OOBE for v1809 / v1903 / v1909 / v2004 / v20H2 OS.
    Windows Error Reporting is needed for OOBE for v1903 / v1909 OS.

    These components will no longer be automatically removed by the "Editions Custom Selection Removal Script" options available in CustomToolkit.

    If you want, just access the "Remove Privacy Components Menu" to remove "Windows Error Reporting" and "Remove System Components Menu" to remove "Content Delivery Manager".

    When I have an idea to edit the code I add commented lines as if they were reminders or a list of what to do.
    So, I removed some obsolete lines left behind.

    Also, I created a way to use the customized version and the original version of the Toolkit, without having to replace the original files.

    When you run Start.cmd, the Original Toolkit.cmd starts.
    When you run CustomStart.cmd, the CustomToolkit.cmd starts.

    In this file I also placed the original files, for those who had previously replaced them.

    Fixed the bug in the question about choosing the StorageDrive, when you answer "No". I kept asking for the letter and did not go to the Main Menu.

    Correcting the problem of saving the iso that I had set for my drive "I:", I decided to add an option to keep it as is or set another one (Optional for those who need to save their isos on some larger drive). Very simple. There is a moment when opening the toolkit that asks you to check <ENTER>. Well select Y or N. "N" will keep the ISO folder where it has always been - inside the Toolkit folder. Than select your drive.

    Fix Cortana App was not removed in 2004 H1 (only in the custom removal options I made available).

    In that apply tweaks menu by answering questions system, I added a question to the end to apply the integration of your Registry (*.reg) files.

    Removed some "pause" commands from the end of some processes in the Menus (Integrate Windows Features Menu - Integrate Windows Custom Features Menu - Remove Menu (when we select some of the Remove All Components) - Customize Menu) and replaced them with a question "Do you want to continue in that menu?"

    The part with menu options with custom component removal scripts has been retained.

    A huge change has made to apply Tweaks by answering Y (yes) or N (no) questions.

    The focus is on Menu 4 -> 2 and feel free to test.
    @mhussain , the part I promised is ready.
    follow 4, 2, A for Accessibility Edition
    at the end of the first part, you will be asked if you want to keep the Mixed Reality Pack, then ask if you want to keep the components for game functionality.
    just select Y or N.
    Back, in my menu is with the letter Q.

    In the initial menu, Exit, I also changed to the letter Q.

    Apply Custom Tweaks Menu is added. My Custom Tweaks List Available to Apply.


    Thnks!
     
  5. Feartamixg

    Feartamixg MDL Addicted

    May 15, 2016
    555
    423
    30
    @MSMG
    Have been able to test your suggestion of not integrating the updates and this seems to fix both the missing OOBE screen and SFC problems.

    • x86 ISO: 19041.450.200808-0726.VB_RELEASE_SVC_REFRESH_CLIENTENTERPRISE_VOL_X86FRE_EN-GB.ISO
    • x86 SSU: windows10.0-kb4577266-x86_189fc04e250eee5113654f9b2b56a8ce9f764bfe.msu
    • x86 CU: windows10.0-kb4571756-x86_32b08a98d6246f4e0186c74e0280a5c1518d883d.msu
    • x64 ISO: 19041.450.200808-0726.VB_RELEASE_SVC_REFRESH_CLIENTENTERPRISE_VOL_X64FRE_EN-GB.ISO
    • x64 SSU: windows10.0-kb4577266-x64_126987f629769e860cd7985371754db91685ea16.msu
    • x64 CU: windows10.0-kb4571756-x64_66f7130a68dd9748511454436b3ffb61730d9775.msu

    Extract ISO (1 > 3)

    Select source (1 > 1) (also mount boot and recovery images)

    Integrate Win32 calculator (3 > 3 > C)

    Apply SSU and CU updates (3 > 4 > 2 > 1 > 4)

    Apply setup media update (3 > 4 > 2 > 2)


    Remove using RemovePkgsList.txt (4 > 3)
    GameExplorer
    MapControl
    OneDrive
    PeopleExperienceHost
    RetailDemoContent
    SecureAssessmentBrowser
    SkypeORTC
    WindowsMixedReality
    XboxGameCallableUI
    3DViewer
    AdvertisingXaml
    Alarms
    BingWeather
    Calculator
    Camera
    CommunicationsApps
    Cortana
    DesktopAppInstaller
    FeedbackHub
    GetHelp
    Getstarted
    HEIFImageExtension
    Maps
    MixedRealityPortal
    OfficeHub
    OfficeOneNote
    Paint3D
    People
    Photos
    ScreenSketch
    SkypeApp
    SolitaireCollection
    SoundRecorder
    StickyNotes
    VP9VideoExtensions
    WalletService
    WebMediaExtensions
    WebpImageExtensions
    WindowsStore
    XboxApp
    XboxIdentityProvider
    YourPhone
    ZuneMusic
    ZuneVideo

    Unpin all Start menu icons (5 > 6)

    Tweaks for Task View, App Downloads, Photo Viewer (5 > 8 > B/D/J)

    Cleanup (6 > 1)

    Apply changes to image (6 > 2 > Y)

    Rebuild (6 > 1)

    Convert WIM to ESD (2 > 4)

    Make ISO (7 > 1)

    Screenshots below of x86 build in VM.

    VirtualBox_w10 x86_17_09_2020_19_25_33.png

    VirtualBox_w10 x86_17_09_2020_19_30_32.png
     
  6. asdf23451

    asdf23451 MDL Novice

    Feb 10, 2019
    36
    2
    0
    There's a bug with MSMG ToolKit v8.8, when using a Windows Server 2012 ISO, pressing 4 to select the remove option brings me to the customize menu rather than the remove menu.
     
  7. ingviowarr

    ingviowarr MDL Senior Member

    Dec 14, 2009
    314
    270
    10
    @MSMG

    "Restore point" need both packages to work. That was confirmed.
    So the next version you can add a dependecy noticement just inside the UI:

    • System Restore | Depends on: Windows Backup
    • Windows Backup

    I think, such noticements do not have to stop growing, because they are very important to feel in touch to the extemely unclear Windows environment.
    Of course, such things are not too good for the eyes (for UI representation), but dependecy tips are much more valuable.
     
  8. Yanta

    Yanta MDL Senior Member

    May 21, 2017
    279
    136
    10
  9. spidernz

    spidernz MDL Senior Member

    May 20, 2011
    371
    103
    10
    @MSMG
    did you ever get around to making a notepad3 pack to replace notepad in windows 10?
     
  10. 正义羊

    正义羊 MDL Member

    Feb 21, 2016
    115
    52
    10
    @MSMG ,When I Remove Windows Apps,I see the Toolkit v10.4 line 21168:
    if "%Component%" equ "WindowsApps" call :RemoveWindowsComponent "%InstallMount%\%%i", "System Apps", "WindowsApps"
    )

    It should be like:
    if "%Component%" equ "WindowsApps" call :RemoveWindowsComponent "%InstallMount%\%%i", "Windows Apps", "WindowsApps"
    )
    This code means remove Windows apps instead of System apps

    OK,I see this change in Toolkit 10.5
     
  11. cornetaranheta

    cornetaranheta MDL Novice

    Sep 10, 2017
    8
    0
    0
    Good morning it is possible to translate the program to pt-pt or pt-br
     
  12. joorno

    joorno MDL Novice

    Sep 4, 2010
    17
    3
    0
    I had thought the toolkit way was better...is it just personal preference? Why do you prefer DISM?
     
  13. ingviowarr

    ingviowarr MDL Senior Member

    Dec 14, 2009
    314
    270
    10
    Here I fully rely on the author's decision. Or this will be included in any manner, or not.
    I prefer GPO methods anyway, then all the rest things.
    Windows is not smth. about "logic" ;) Every dirty thing should be tested.
    If I want "Restore point", then leaving only "System Restore" is not enough. That was tested and confirmed. That's it.
     
  14. ingviowarr

    ingviowarr MDL Senior Member

    Dec 14, 2009
    314
    270
    10
  15. RaiyvaN

    RaiyvaN MDL Senior Member

    Sep 23, 2009
    302
    347
    10
    #16440 RaiyvaN, Sep 18, 2020
    Last edited: Oct 3, 2020
    https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-793#post-1606110

    Sent an 2020-09-18 updated file in the post above.

    Added "Block and UnBlock Automatic Edge Chromium-based Delivery" to Apply Tweaks Menu

    The "Block Automatic Edge Chromium-based Delivery" option was also inserted in the "Apply Custom Selected Tweaks" option. If you want to test Custom Tweaks and want to keep the possibility of receiving the update for Edge Chromium, just apply the option of "Unblock Automatic Edge Chromium-based Delivery" later. What the "Apply Custom Selected Tweaks" option does is described in the download post.

    Merged with new MSMG Toolkit 10.5

    I facilitated the steps in the menu [6] Apply.
    When it finish a step, it goes back to Menu "[6] Apply". Only when you finish the Rebuild Step that goes back to the Main Menu.

    Some aesthetic changes were made just to display the message "Mounting Image Registry ..." and "Un-Mounting Image Registry".

    Fixed the Menus that had the options reversed.

    Since I am doing this, I have already been reviewing the Custom Menus and I saw that after @MSMG added PowerShell7 to the menu, I forgot to change the information about which items are Integrated in the Custom Option. So, I also added PowerShell7 to be integrated into the "Integrate Custom Selected ..." options
    Code:
    ===============================================================================
                    MSMG ToolKit - Integrate Windows Features Menu
    ===============================================================================
    
      [A]   Microsoft .NET Framework 3.5
      [B]   Microsoft Edge Chromium Browser
      [C]   Microsoft Win32 Calculator
      [D]   Windows Accessibility Braille
      [E]   Windows Media Feature Pack
      [F]   Windows Portable Devices
      [G]   Windows PowerShell 7.0
      [H]   Open Secure Shell (SSH) Client & Server
      [I]   Microsoft Default Metro Apps
      [J]   Microsoft Office Desktop UWP Apps
      [K]   Microsoft DaRT 10.0 Tools
      [L]   Microsoft DirectX 9.0c
      [M]   Microsoft Games
      [N]   Windows Sidebar
      [O]   Microsoft Visual C++ Runtime
    
      [S]   Integrate Custom Selected L M O C G
      [Z]   Integrate Custom Selected L   O C G
    
      [X]   Go Back
    ===============================================================================
    
    Enter Your Choice :
    

    Merged with new MSMG Toolkit 10.4

    Now, with @MSMG suggestions, the removal menu doesn't show there options for ISO sources integrated with new cumulative or feature updates, is fixed.
    ex:
    18362.1016
    18363.1016

    Merged with new MSMG Toolkit 10.3

    Added: Show info in Source Menu when you have already selected your source.

    Merged with new Toolkit 10.2


    Some improvments:

    When you selected any option to remove all components and decided to return by answering "no" for some reason. You would always return to the Main Menu. In the Custom Toolkit when you answer "no" you are returned to the menu you were in.

    In previous Custom Toolkits I couldn't see a way to maintain the Original "Apply Tweaks Menu" without increasing the code size.

    But thanks to the changes that @MSMG made in the new version, it opened my eyes and I managed to put both menus. The original "Apply Tweaks Menu" back and the "Custom Apply Tweaks Menu".

    The problem was that when deciding to apply a tweak individually, fall into the system of applying all tweaks by answering questions. But now this is fixed.

    There was an error with an extra quote in the Edge removal lines, for some Custom Removal to make Specific Editions. First I thought about correcting it just by removing the extra quote. But I changed my mind and simply put it to remove the Edge directly on the command line to remove multiple components at once.

    I decided to make some changes mainly in the "Gamer Edition" (more components removed that can be added through the Windows Store), so I made changes in the other "Custom Editions" as well. But not in the "Accessibility Edition".

    I put some pauses in the custom integration steps "Integrate Custom Selection 8 7 6 5" so that you can see what happens.

    Fixed a registry error in my custom tweaks and added suggestions for use in the Windows Store, automatic installations in silent mode disabled. Autodownload - Update for installed apps enabled

    Code:
    ...
           if "%Component%" equ "PrivacyComponents" (
               %ToolKitHelper% "%InstallMount%\%%i" AssignedAccess;CEIP_SQM;FaceRecognition;KernelDebugging;LocationService;PicturePassword;PinEnrollment;UnifiedTelemetryClient;WiFiNetworkManager;WindowsInsiderHub
               if "%ImageBuild%" equ "17763" %ToolKitHelper% "%InstallMount%\%%i" WindowsErrorReporting
               if "%ImageBuild%" geq "18362" if "%ImageBuild%" leq "18363" %ToolKitHelper% "%InstallMount%\%%i" WindowsErrorReporting
               if "%ImageBuild%" equ "19041" %ToolKitHelper% "%InstallMount%\%%i" WindowsErrorReporting
               if "%ImageBuild%" equ "19042" %ToolKitHelper% "%InstallMount%\%%i" WindowsErrorReporting
           )
    )else(
           if "%Component%" equ "PrivacyComponents" (
               %ToolKitHelper% "%InstallMount%" AssignedAccess;CEIP_SQM;FaceRecognition;KernelDebugging;LocationService;PicturePassword;PinEnrollment;UnifiedTelemetryClient;WiFiNetworkManager;WindowsInsiderHub
               if "%ImageBuild%" equ "17763" %ToolKitHelper% "%InstallMount%" WindowsErrorReporting
               if "%ImageBuild%" geq "18362" if "%ImageBuild%" leq "18363" %ToolKitHelper% "%InstallMount%" WindowsErrorReporting
               if "%ImageBuild%" equ "19041" %ToolKitHelper% "%InstallMount%" WindowsErrorReporting
               if "%ImageBuild%" equ "19042" %ToolKitHelper% "%InstallMount%" WindowsErrorReporting
           )
    )
    

    Windows Error Reporting is needed for OOBE for v1903 / v1909 OS.
    This component has been reinserted and will pass again, according to specific conditions, to be automatically removed by the "Editions Custom Selection Removal Script" options available in CustomToolkit. Conditions prevent removal on versions v1903 / v1909.

    Only for:
    Remove All Privacy Components
    Accessibility Edition
    Lite Edition
    Xtreme Lite Edition
    Content Delivery Manager is needed for OOBE for v1809 / v1903 / v1909 / v2004 / v20H2 OS.
    For this Component, if you want, just access the "Remove System Components Menu" to remove "Content Delivery Manager".

    I also made available a model of my AutoUnattend *.xml answer file with a ReadMe for those who want to play a little.

    Reported a problem in the question "Do you want to Enable Fraunhofer MP3 Professional Codec ? ['Y'es/'N'o] :" mentioned in the post "https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-796#post-1607819" by friend @roedel.

    Problem solved.

    As @MSMG said:
    Content Delivery Manager is needed for OOBE for v1809 / v1903 / v1909 / v2004 / v20H2 OS.
    Windows Error Reporting is needed for OOBE for v1903 / v1909 OS.

    These components will no longer be automatically removed by the "Editions Custom Selection Removal Script" options available in CustomToolkit.

    If you want, just access the "Remove Privacy Components Menu" to remove "Windows Error Reporting" and "Remove System Components Menu" to remove "Content Delivery Manager".

    When I have an idea to edit the code I add commented lines as if they were reminders or a list of what to do.
    So, I removed some obsolete lines left behind.

    Also, I created a way to use the customized version and the original version of the Toolkit, without having to replace the original files.

    When you run Start.cmd, the Original Toolkit.cmd starts.
    When you run CustomStart.cmd, the CustomToolkit.cmd starts.

    In this file I also placed the original files, for those who had previously replaced them.

    Fixed the bug in the question about choosing the StorageDrive, when you answer "No". I kept asking for the letter and did not go to the Main Menu.

    Correcting the problem of saving the iso that I had set for my drive "I:", I decided to add an option to keep it as is or set another one (Optional for those who need to save their isos on some larger drive). Very simple. There is a moment when opening the toolkit that asks you to check <ENTER>. Well select Y or N. "N" will keep the ISO folder where it has always been - inside the Toolkit folder. Than select your drive.

    Fix Cortana App was not removed in 2004 H1 (only in the custom removal options I made available).

    In that apply tweaks menu by answering questions system, I added a question to the end to apply the integration of your Registry (*.reg) files.

    Removed some "pause" commands from the end of some processes in the Menus (Integrate Windows Features Menu - Integrate Windows Custom Features Menu - Remove Menu (when we select some of the Remove All Components) - Customize Menu) and replaced them with a question "Do you want to continue in that menu?"

    The part with menu options with custom component removal scripts has been retained.

    A huge change has made to apply Tweaks by answering Y (yes) or N (no) questions.

    The focus is on Menu 4 -> 2 and feel free to test.
    @mhussain , the part I promised is ready.
    follow 4, 2, A for Accessibility Edition
    at the end of the first part, you will be asked if you want to keep the Mixed Reality Pack, then ask if you want to keep the components for game functionality.
    just select Y or N.
    Back, in my menu is with the letter Q.

    In the initial menu, Exit, I also changed to the letter Q.

    Apply Custom Tweaks Menu is added. My Custom Tweaks List Available to Apply.

    Thnks!