MSMG ToolKit

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

  1. ahczwudichao

    ahczwudichao MDL Junior Member

    Joined:
    May 1, 2013
    Messages:
    81
    Likes Received:
    74
    Trophy Points:
    0
    hi @MSMG, thanks for your work.

    But past few Windows Insider Preview builds will give an error about explorer.exe stack overrun error after slimed down using MSMG Toolkit

    I believe it's related to some of the component removal process.

    I know your toolkit haven't support RS5 prerelease builds yet but just a reminder who wish to use it for insider build.

    DON'T USE TOOLKIT ON INSIDER BUILD YET.
     
  2. Windows 10 User

    Windows 10 User MDL Expert

    Joined:
    Feb 2, 2017
    Messages:
    1,229
    Likes Received:
    74
    Trophy Points:
    60
    So, should I use ToolkitHelper.exe to remove things or Start.exe? Are there things that can only be removed by ToolkitHelper.exe and not Start.exe?
     
  3. sergey130270

    sergey130270 MDL Member

    Joined:
    May 15, 2014
    Messages:
    133
    Likes Received:
    25
    Trophy Points:
    10
    Hello, dear forum users!!! Сan you advise me?To date, there is a newer instruction for properly using the MSMG ToolKit? If there is, then tell meplease see where it can be found
     
  4. windows builder

    windows builder MDL Guru

    Joined:
    Sep 13, 2017
    Messages:
    2,030
    Likes Received:
    1,328
    Trophy Points:
    90
    Readme.txt file in archive with the ToolKit
     
  5. nosirrahx

    nosirrahx MDL Addicted

    Joined:
    Nov 7, 2017
    Messages:
    873
    Likes Received:
    396
    Trophy Points:
    30
    #7345 nosirrahx, Jul 20, 2018
    Last edited: Jul 20, 2018
    I have a question about something I have noticed since I started using this tool. When you use the media creation tool you get a sources folder with ~71 sub folders and ~880 files. After the toolkit does its work on the WIM file virtually all of this is blown away.

    Since the beginning I have always just copied what what the toolkit creates over my original sources folder letting letting all duplicates be replaced.

    What I want to know is, do I actually need to keep all of those untouched original files or can I simply use the sources folder created by the toolkit exactly as it is after I modify the image?
     
  6. nosirrahx

    nosirrahx MDL Addicted

    Joined:
    Nov 7, 2017
    Messages:
    873
    Likes Received:
    396
    Trophy Points:
    30
    Another question, I just noticed that there is one removal mentioned specifically after cleanup:

    [L] - Cleanup the Source Image using [Apply->Cleanup Source Images] menu.
    [M] - Remove Microsoft Hyper-V Windows Component using [Remove->Remove Windows Components->Remove Advanced Windows Components->Microsoft Hyper-V] menu.

    I did not notice this change until I had built the image I am about to install. Is this a critical ordering? I did all of my removals first before cleanup, should I dump the image and start over or install it as is?
     
  7. Gunmicha

    Gunmicha MDL Novice

    Joined:
    Apr 24, 2015
    Messages:
    9
    Likes Received:
    3
    Trophy Points:
    0
    That instruction is for Windows 10 TH1. Were you really using this version as source? Make sure you didn't misread the instructions.
     
  8. nosirrahx

    nosirrahx MDL Addicted

    Joined:
    Nov 7, 2017
    Messages:
    873
    Likes Received:
    396
    Trophy Points:
    30
    ahhh I didn't check close enough, no I am on RS4
     
  9. MSMG

    MSMG MDL Developer

    Joined:
    Jul 15, 2011
    Messages:
    5,430
    Likes Received:
    11,396
    Trophy Points:
    180
    Double clicking Start.cmd calls the Nsudo which in turn runs the script using TrustedInstaller.

    So right-clicking and then choosing run as adminstrator may not be required, but some people earlier reported to have issues doing so.

    On RS5 Insider Preview OS's, there seems to be some issues calling NSudo inside a cmd, so choose run as Administrator for RS5 Preview OS's.


    Sometimes editing the script using notepad may give errors especially when the script is running, use rem instead of :: to comment the line

    Toolkit.cmd uses the TooolKitHelper.exe to remove the component manually., if you are familiar with using the ToolKitHelper.exe then you can use it.

     
  10. windows builder

    windows builder MDL Guru

    Joined:
    Sep 13, 2017
    Messages:
    2,030
    Likes Received:
    1,328
    Trophy Points:
    90
    or use Notpad++?
     
  11. MSMG

    MSMG MDL Developer

    Joined:
    Jul 15, 2011
    Messages:
    5,430
    Likes Received:
    11,396
    Trophy Points:
    180
    Will check with the MCT Image and see what's wrong with it.

    Did you choose MCT Image to WIM Image in the ToolKit to convert the image to regular WIM Image?

    If you had choosen Remove Windows Manual Setup Feature in the Advanced Windows Components then it would keep only the required files to do a clean install.

     
  12. Windows 10 User

    Windows 10 User MDL Expert

    Joined:
    Feb 2, 2017
    Messages:
    1,229
    Likes Received:
    74
    Trophy Points:
    60
    Ok, but there are things that can be removed by Start.exe and Toolkit.cmd (I think) so in that case should I remove them with which one of the two, i. e., which of them removes more things?
     
  13. tefor

    tefor MDL Senior Member

    Joined:
    Apr 5, 2017
    Messages:
    266
    Likes Received:
    212
    Trophy Points:
    10
  14. MSMG

    MSMG MDL Developer

    Joined:
    Jul 15, 2011
    Messages:
    5,430
    Likes Received:
    11,396
    Trophy Points:
    180
    The ToolKit.cmd uses ToolKitHelper.exe for only these components :

    Microsoft Telemetry (CEIP, KernelDebugging, Asimov, WER)
    Windows Defender
    PeopleExperienceHost
    SmartScreen

    ToolKitHelper removes more components than ToolKit.cmd but also lacks few components present in the ToolKit.cmd like IE, Hyper-V, WMP, PhotoViewer, Search, System Restore etc.

    ToolKitHelper allows more components and is for experimental purpose, once it's working properly then the ToolKit.cmd will be made to use it to remove all components.



     
  15. jonaaa

    jonaaa MDL Member

    Joined:
    Jul 20, 2015
    Messages:
    186
    Likes Received:
    122
    Trophy Points:
    10
  16. tefor

    tefor MDL Senior Member

    Joined:
    Apr 5, 2017
    Messages:
    266
    Likes Received:
    212
    Trophy Points:
    10
    ok thanks MSMG
    I will be waiting for your answer
     
  17. tefor

    tefor MDL Senior Member

    Joined:
    Apr 5, 2017
    Messages:
    266
    Likes Received:
    212
    Trophy Points:
    10
    I dont think so i am doing something wrong , i am following all given steps carefully..maybe it is beause of the Turkish language at OOBE stage or something else.. i will wait for MSMG's answer.. thank you anyway
     
  18. nosirrahx

    nosirrahx MDL Addicted

    Joined:
    Nov 7, 2017
    Messages:
    873
    Likes Received:
    396
    Trophy Points:
    30
    Don't think there is anything wrong, I think you just answered my question though. You mentioned doing a clean install.

    I assume that full load of files through the media creation tool also includes everything needed to upgrade windows?
     
  19. Windows 10 User

    Windows 10 User MDL Expert

    Joined:
    Feb 2, 2017
    Messages:
    1,229
    Likes Received:
    74
    Trophy Points:
    60
    Ok, thanks.