MSMG ToolKit

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

  1. Krager

    Krager MDL Senior Member

    Jan 9, 2017
    396
    230
    10
    That's unfortunate for me since I'm using LTSC x64. I regularly check this thread in hopes there will be a version at some point that has no ill effects on that image. For now I'm just disabling things rather than removing. When those issues get worked out I'll use the toolkit.

    At the minimum I want remove flash player from the installation image. There's just no way I can find to uninstall that package otherwise. In previous versions of Windows it's just a reg tweak to make the package visible and a call to dism /Remove-Package. They buried it in LTSC. Why did they do that, especially considering the damn thing will be deprecated next year.

    I can actually get ToolKitHelper.exe to work from a script for the most part, modified image installs without a problem. The main issue for me is it breaks the component store. Component cleanup after installation fails with a file not found error (dism /Cleanup-Image /StartComponentCleanup). Would also be good to see sfc run without flagging any files.
     
  2. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    Do try out and see if it works for you if you are only removing few selected components and not all, It may work as my tests were with all components.

    Right now testing WHD update pack integration, once it's finished will upload the newer version.

     
  3. Krager

    Krager MDL Senior Member

    Jan 9, 2017
    396
    230
    10
    #9863 Krager, Mar 18, 2019
    Last edited: Mar 18, 2019
    I'll give it a try, let you know what happens. I'll start by removing flash player and see if any issues arise. Probably try it tomorrow or next day. Thanks for all your work on this. After looking into removing stuff with dism it seems like a bit of magic involved. They really made things convoluted with this new component store layout, at least in terms of identifying packages through the registry.
     
  4. hiepbg

    hiepbg MDL Novice

    Nov 29, 2008
    36
    18
    0
    #9864 hiepbg, Mar 18, 2019
    Last edited: Mar 19, 2019
    I used Toolkit 9.1 to make a new modified x64 iso. When install new windows, and after the last step, the screen becomes grey, nothing happens, but i still hear some windows sound. I press Windows + L to get out to lock screen and wait for some seconds and the desktop screen opens.
    I did not see any bugs on new windows installation. Everything work fine. Only Components cleanup is error and sfc/scannow recover some files.

    Code:
    C:\Windows\system32>DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.17763.1
    
    [====                       7.2%                           ]
    [================           28.7%                          ]
    
    Error: 2
    
    The system cannot find the file specified.
    
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
    
    C:\Windows\system32>
    Code:
    2019-03-19 05:32:31, Info                  CSI    00004c70 [SR] Beginning Verify and Repair transaction
    2019-03-19 05:32:31, Info                  CSI    00004c71 [SR] Repairing corrupted file \??\C:\Windows\System32\\Windows.Data.Pdf.dll from store
    2019-03-19 05:32:31, Info                  CSI    00004c72@2019/3/18:22:32:31.436 Primitive installers committed for repair
    2019-03-19 05:32:31, Info                  CSI    00004c73 [SR] Repairing corrupted file \??\C:\Windows\System32\\iotstartup.exe from store
    2019-03-19 05:32:31, Info                  CSI    00004c74@2019/3/18:22:32:31.530 Primitive installers committed for repair
    2019-03-19 05:32:31, Info                  CSI    00004c75 [SR] Repairing corrupted file \??\C:\Windows\System32\en-US\\Windows.Data.Pdf.dll.mui from store
    2019-03-19 05:32:31, Info                  CSI    00004c76@2019/3/18:22:32:31.639 CSIPERF - FileMapsCreated 112ms
    2019-03-19 05:32:31, Info                  CSI    00004c77 CSIPERF - FilePI Commit 113ms
    2019-03-19 05:32:31, Info                  CSI    00004c78@2019/3/18:22:32:31.655 Primitive installers committed for repair
    2019-03-19 05:32:31, Info                  CSI    00004c79 [SR] Repairing corrupted file \??\C:\Windows\System32\\uwfcsp.dll from store
    2019-03-19 05:32:31, Info                  CSI    00004c7a [SR] Repairing corrupted file \??\C:\Windows\System32\\uwfcfgmgmt.dll from store
    2019-03-19 05:32:31, Info                  CSI    00004c7b@2019/3/18:22:32:31.733 Primitive installers committed for repair
    2019-03-19 05:32:31, Info                  CSI    00004c7c [SR] Repairing corrupted file \??\C:\Windows\System32\\uwfservicingapi.dll from store
    2019-03-19 05:32:31, Info                  CSI    00004c7d@2019/3/18:22:32:31.827 Primitive installers committed for repair
    2019-03-19 05:32:31, Info                  CSI    00004c7e [SR] Repairing corrupted file \??\C:\ProgramData\Microsoft\Diagnosis\OfflineSettings\\offlineblocklist.json from store
    2019-03-19 05:32:31, Info                  CSI    00004c7f [SR] Repairing corrupted file \??\C:\ProgramData\Microsoft\Diagnosis\WindowsAnalytics\\analyticsevents.dat from store
    2019-03-19 05:32:31, Info                  CSI    00004c80@2019/3/18:22:32:31.842 Primitive installers committed for repair
     
  5. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    is there some guide to make maximum stripped image with install_wim_tweak?
     
  6. weberio

    weberio MDL Junior Member

    Nov 22, 2016
    92
    29
    0
    Let me know if you get satisfactory results, I also want to remove it from the system LTSC x64, thk.-
     
  7. Yanta

    Yanta MDL Senior Member

    May 21, 2017
    282
    137
    10
    Here's a little tidbit I received from Corsair today.

    I typically remove Windows error reporting, but Corsair tell me their iCue software depends on WER. So if you use Corsair AIO coolers with their iCue software WER should probably not be removed.
     
  8. zcelakdgl

    zcelakdgl MDL Novice

    Nov 21, 2018
    26
    10
    0
    MDL Developer, does the new version support the removal of functions "Clipboard history" and "Timeline" ?
     
  9. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    - Yes after the OOBE the screen will be blank for some time and then the desktop appears.

    - You need to run the Image cleanup once before the component removal and once after the removal.

    - Yes the SFC errors are their in v9.1 but it's been fixed in v9.2

     
  10. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    Unfortunately now install_wim_tweak method is limited due to various packages are being merged with every new builds coming out, It will be difficult to have a maximum stripped image list.

     
  11. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    No these components aren't added yet, as far as I have seen these components are turned off using tweaks.

     
  12. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    #9872 MSMG, Mar 19, 2019
    Last edited: Mar 19, 2019
    (OP)
    Updated the ToolKit to v9.2

    Highlights:

    - WADK v10.0.18356.1 Tools.
    - Windows 10 v1607 x86 CU Integration Fix.
    - Windows 10 v1809 Multi-Language Image Component Removal.
    - SFC, Windows Updates and Set Default Browser Setting Fixes.
    - FaceRecognition, GameExplorer, LocationService Components Removal.

    Note:

    - Only for x86 builds the component removal is working fully.
    - For x64 LTSC Edition the component removal is not working.
    - For x64 Non-LTSC Editions the setup is failing when some Inbox Apps are removed, I have made a safe list of working components that can be removed.

    Code:
    Remove System Apps, Advanced Windows Components and then remove the below Apps which requires manual removal.
    
    WalletService
    StickyNotes
    Photos
    Paint3D
    Maps
    CommunicationsApps
    Calculator
    HEIFImageExtension
    

    For ToolKitHelper.exe I have added more menus/groups for easier usage:

    Code:
    C:\Toolkit>Bin\ToolKitHelper.exe Mount\Install /?
    
    MSMG ToolKit Commandline Helper
    Version: 1.0.1512.0
    
    Image Version: 10.0.17763.1
    
    Valid Component Names:
    
    Internet
    ========
    
      AdobeFlashForWindows                  -  Adobe Flash For Windows
      InternetExplorer                      -  Internet Explorer
    
    Multimedia
    ==========
    
      FirstLogonAnimation                   -  First Logon Animation
      GameExplorer                          -  Game Explorer
      SnippingTool                          -  Snipping Tool
      WindowsMediaPlayer                    -  Windows Media Player
      WindowsPhotoViewer                    -  Windows Photo Viewer
      WinSAT                                -  Windows System Assessment Tool
    
    Privacy
    =======
    
      AssignedAccess                        -  Assigned Access
      CEIP_SQM                              -  Customer Experience Improvement Program (CEIP)
      FaceRecognition                       -  Face Recognition
      KernelDebugging                       -  Kernel Debugging | Depends on: WindowsErrorReporting
      LocationService                       -  Location Service
      UnifiedTelemetryClient                -  Unified Telemetry Client (Asimov) | Depends on: WindowsErrorReporting
      WindowsErrorReporting                 -  Windows Error Reporting
    
    Remoting
    ========
    
      HomeGroup                             -  HomeGroup
      MultiPointConnector                   -  MultiPoint Connector
      RemoteAssistance                      -  Remote Assistance
    
    System
    ======
    
      DeviceLockdown                        -  Device Lockdown (Embedded Experience)
      EaseOfAccessThemes                    -  Ease of Access Themes
      Paint                                 -  Paint
      SystemRestore                         -  System Restore
      WindowsSubsystemForLinux              -  Windows Sybsystem For Linux
      WindowsToGo                           -  Windows To Go
    
    System Apps
    ===========
    
      AADBrokerPlugin                       -  Azure Active Directory AppX Broker Plugin
      AssignedAccessLockApp                 -  Assigned Access Lock App | Depends on: AssignedAccess
      BioEnrollment                         -  Bio Enrollment App
      ContentDeliveryManager                -  Content Delivery Manager
      Cortana                               -  Cortana, StartMenu & Settings Search App
      EdgeDevToolsClient                    -  Edge Developer Tools Client | Depends on: Edge
      Edge                                  -  Edge Browser App
      FileExplorer                          -  File Explorer App
      LockApp                               -  Lockscreen App
      MapControl                            -  Map Control
      OneDrive                              -  OneDrive Desktop Client
      ParentalControls                      -  Parental Controls App
      PeopleExperienceHost                  -  People Bar
      PPIProjection                         -  Connect App
      QuickAssist                           -  Quick Assist App
      RetailDemoContent                     -  Retail Demo Content
      SecureAssessmentBrowser               -  Take Test App
      SettingSync                           -  Setting Sync
      SkypeORTC                             -  Skype ORTC
      SmartScreen                           -  SmartScreen App
      WindowsDefender                       -  Windows Defender App
      WindowsMixedReality                   -  Windows Mixed Reality
      WindowsReaderPDF                      -  Windows Reader (PDF) | Depends on: Edge
      XboxGameCallableUI                    -  Xbox Game Callable UI
    
    Windows Apps
    ============
    
      3DViewer                              -  Mixed Reality Viewer App | Depends on: WindowsMixedReality
      AdvertisingXaml                       -  Advertising Xaml
      Alarms                                -  Alarms & Clock App
      BingWeather                           -  Weather App | Depends on: AdvertisingXaml
      Calculator                            -  Calculator App
      Camera                                -  Camera App
      CommunicationsApps                    -  Windows Calendar & Mail App | Depends on: AdvertisingXaml
      DesktopAppInstaller                   -  Desktop App Installer
      FeedbackHub                           -  Feedback Hub App
      GetHelp                               -  Get Help App
      Getstarted                            -  Tips App
      HEIFImageExtension                    -  High Efficiency Image File (HEIF) format Plugin
      Maps                                  -  Maps App | Depends on: MapControl
      Messaging                             -  Messaging App
      MixedRealityPortal                    -  Mixed Reality Portal App | Depends on: WindowsMixedReality
      OfficeHub                             -  My Office App
      OfficeOneNote                         -  OneNote App
      OneConnect                            -  Mobile Plans App
      Paint3D                               -  Paint 3D App
      People                                -  People App | Depends on: PeopleExperienceHost
      Photos                                -  Photos App
      Print3D                               -  Print 3D App
      ScreenSketch                          -  Screen Sketch App
      SkypeApp                              -  Skype App
      SolitaireCollection                   -  Solitaire Collection App | Depends on: XboxGameCallableUI
      SoundRecorder                         -  Voice Recorder App
      StickyNotes                           -  Sticky Notes App
      VP9VideoExtensions                    -  Google's VP9 WebM Video Codec Plugin
      WalletService                         -  Microsoft Pay App
      WebMediaExtensions                    -  Web Media format Plugin
      WebpImageExtensions                   -  WebP Image format Plugin
      WindowsStore                          -  Microsoft Store App
      XboxApp                               -  Microsoft Xbox App | Depends on: XboxGameCallableUI
      XboxIdentityProvider                  -  Xbox Identity Provider | Depends on: XboxApp
      YourPhone                             -  Your Phone App
      ZuneMusic                             -  Groove Music App
      ZuneVideo                             -  Films & TV App
    
    Group Commands
    ==============
    
      Internet                              -  All Internet Components
      Multimedia                            -  All Multimedia Components
      Privacy                               -  All Privacy Components
      Remoting                              -  All Remoting Components
      System                                -  All System Components
      SystemApps                            -  All System Apps
      WindowsApps                           -  All Windows Apps
      AllComponents                         -  All Components
    
    C:\Toolkit>
    

    v9.2
    + Updated ToolKit's Bin Folder with Windows 10 Insider Preview WADK (v10.0.18356.1) Tools.
    + Updated ToolKit's Bin Folder with 7-zip Command-line Latest Version.
    + Fixed a Bug in the Feature "Integrate Windows Language Packs", Where the WinPE-Setup-Server-Package was added for Integration instead of WinPE-Setup-Server-Package for Windows Server 2008 R2 Source OS.
    + Updated the Feature "Integrate WHD Update Pack" with Cumulative Update Integration Fix for Windows 10 Redstone 1 x86 Source OS (Thanks to MDL Member: abbodi1406).
    + Updated the Feature "Remove Windows Component" to Support Windows 10 Redstone 5 Source OS All Languages (Thanks to MDL Member: kusosaito).
    + Updated the Feature "Remove Windows Component" to Remove "FaceRecognition", "GameExplorer", "LocationService" Components for Windows 10 Redstone 5 Source OS.
    + Fixed a Bug in the Feature "Remove Windows Component", Where SFC /SCANNOW generated errors for some Component Removals.
    + Fixed a Bug in the Feature "Remove Windows Component", Where Removing Internet Explorer broke Setting Default Browser App in Settings->Default Apps Section.
     
  13. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    So we cant remove packages anymore in w10??
     
  14. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    Only the packages that are available can be removed and not all like Flash, Cortana etc.

     
  15. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    Fix is coming soon??
     
  16. intro

    intro MDL Member

    Apr 10, 2010
    230
    48
    10
    I just tested 9.2 with w10 pro 17763.1 en_us x64, removed everything except Windows Photo Viewer, Internet Explorer (so I can choose default browser) and Paint. I didn't integrate any updates and only integrated 1 small driver. It installed without issues and so far is running fine. MSMG what issues were you talking about when you said 9.2 has issues with x64 win 10?
     
  17. Feartamixg

    Feartamixg MDL Addicted

    May 15, 2016
    555
    423
    30
    I believe you may see errors if you run this command in a command prompt window:
    Code:
    dism /online /Cleanup-Image /StartComponentCleanup /ResetBase
    Also try:
    Code:
    sfc /scannow
     
  18. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    35,591
    59,669
    450
    When you run that command online, it shouldn't give errors, only offline when the pending flag is set, by offline enabling dotnetfx3, for example.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. intro

    intro MDL Member

    Apr 10, 2010
    230
    48
    10
    #9879 intro, Mar 19, 2019
    Last edited: Mar 19, 2019
    I didn't get errors with either of those commands. I was expecting a repair with sfc /scannow but it finished without errors. Just noticed that according to the changelog (which I forgot to read) sfc errors are fixed and the default browser issue is also fixed.
     
  20. Krager

    Krager MDL Senior Member

    Jan 9, 2017
    396
    230
    10
    That's a really good sign.

    On LTSC x64 using ToolKitHelper.exe v9.1 only to remove flash player was resulting in a component cleanup error. Returned a file not found complaint.

    I also experimented with the toolkit v9.1 removing most components and ran into some odd issues. Of course there was the sfc problem, but I also had an issue with File explorer restarting and apps throwing an address exception at odd times. That was strange.

    I don't know if I should try again since MSMG flat out stated component removal is broken for LTSC x64. In a production sense I only need the toolkit for flash player removal. I can live with just disabling everything else.