1. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    #22301 inTerActionVRI, Mar 19, 2022
    Last edited: Mar 21, 2022
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    Very nice your bug hunting.

    About this license: the variable for this and some others, are in the code, but since there is currently no oem license available, the installation is being done with /SkipLicense.

    If you look for /SkipLicense, in the code you will see what the other components are.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. RafhaCorreia

    RafhaCorreia MDL Novice

    Aug 14, 2015
    16
    4
    0
    #22303 RafhaCorreia, Mar 20, 2022
    Last edited: Mar 21, 2022
    I tested it with Toolkit_v12.1 toolkit, it completes successfully but shows an error after installing windows enabling mediaplayer and photoviewer skin metro

    ----EDIT 1----

    In the Toolkit_v12.0 version it works normally for the same .iso
    So 12.1 has this problem??

    ----EDIT 2----

    The file I downloaded I don't remember the source was in error. I downloaded it again from another source (zero cool root) and it worked just fine. Excuse me. Thanks.
     
  4. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    About the Skins, nothing has changed for the new version. That is not what would be causing you problems.
    It must be the removal of some extra component that you decided to remove in 12.1.

    There must be a way to do it via tweaks, but I have never found it.
    Only, after installation, or during the end of the installation via SetupComplete.cmd.
    you will have to add a bcdedit command for F8 safe mod.

    Enable F8
    Code:
    BDCEdit.exe /set {default} bootmenupolicy legacy
    
    Restore to default/standard
    Code:
    BDCEdit.exe /set {default} bootmenupolicy standard
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. GeorgePirkl

    GeorgePirkl MDL Novice

    Feb 4, 2018
    45
    15
    0
    Its maybe stupid to ask but how was test of custom toolkit ? Will be still unlocked to any windows version ( last one i was use to modiffe insidee iso last give me remove option to 22449 ... will be possible give it try with 22h2 ... thank you for answer /response
     
  6. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    @MSMG

    Are there "EnterpriseS" and "EnterpriseSN" Editions for the "18362" and "18363" builds?

    If yes. Are the "Edge", "OneDrive" and "SecureAssessmentBrowser" components present in the "EnterpriseS" and "EnterpriseSN" Editions for the mentioned builds?

    These are interesting examples, which caught my attention when doing the automatic menu generation scheme, because as conditions that prevent a removal attempt for these Editions are not applied for builds "18362" and "18363".
    Is this correct?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    #22307 inTerActionVRI, Mar 22, 2022
    Last edited: Mar 22, 2022
    Yes, considering unsupported builds, I leave that unlocked by default in Custom, so everyone can use the removal menus.
    Remembering that the recommendation is "this is for testing only."

    MSMG leaves, for builds not supported by ToolkitHelper, the menus locked and the lists unlocked. And the recommendation is to use the removal list per DISM command list. Considering unsupported builds in the Toolkit, the ToolkitHelper list is also for testing only.

    I will add a Warning for Builds and Service Pack Builds above the supported ones. So people use at their own risk, or for testing purposes and, aware of the facts. Also withhold Service Pack Builds from the image before a WHD update so that this Warning will not appear in the removal menu.

    I am on a journey to find out which reg tweak is breaking W11 wifi, sound, battery and calendar taskbar icons left click function.
    After that I release Custom.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    260
    160
    10
    @MSMG , In v12.1 line 16481,

    App to add Microsft Account for Microsoft Apps

    It should be

    App to add Microsoft Account for Microsoft Apps
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. xlincn

    xlincn MDL Junior Member

    Nov 9, 2013
    59
    18
    0
    #22311 xlincn, Mar 23, 2022
    Last edited: Mar 23, 2022
    There are no edits when using it

    Curiously, after using NTLite first, then using MSMG ToolKit everything works fine
     
  11. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    #22312 inTerActionVRI, Mar 24, 2022
    Last edited: Mar 30, 2022
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    260
    160
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    When I returned I read everything I had missed. I had seen that your suggestion was made before MSMG came back and released the new version.
    MSMG implemented the change, in this current version.
    Yes, I think I understand your point.
    I also optimized the code for creating the Information Texts that are stored in the Temp folder. In the Custom Tookit it is "C:\TK\TMP", no matter where you put the Toolkit main folder. The InstallMedia (DVD), Mount and TMP folders, will always be on C: which is supposed to be an SSD, unless the user doesn't have an SSD yet.
    In this case, in the Custom Toolkit, it was not necessary to change, because the working directory during execution, will always be SytemDRIVE (usually C:).
    It has been many versions since I changed this. It was in Custom Toolkit 11.4 5th patch (CHANGELOG 2021-04-14).

    But if you can test it, and you have something.
    I'm grateful for the warning of the bugs found.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210

    Yes the current Toolkit doesn't follow automated process like select all the required options instead each option is execute when selected and that's why sometimes the order may change according to the users choice and also the MS makes things further complex by adding new prerequisites to perform a task.

    I'm working on two other tools based on DISMApi with one tool being like the current CMD Toolkit with the difference that all the required options or features are selected first and then applied at the last, contains pure dynamic menus, enable/disable capabilities/features, the integrate drivers display full driver info, most of the current features in the integration part are treated as updates and moved to updates part where the user just need to copy the cab/msu files to the updates folder and the tool will display the language packs, winpe language packs, features packs and updates in proper order.

    Make sure you put a warning note for the users about the cleanup-image generating ghost SFC bug.

    Will make changes to the Toolkit script to include Disable New Watermark Message: "System requirements not met. Go to Settings to learn more." tweak.
     
  15. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    #22316 inTerActionVRI, Mar 24, 2022
    Last edited: Mar 25, 2022
    I didn't put a warning message in that part. But I put a question, so they can decide if they want to do the "Cleanup Source" or not.
    And, for the fully automated process, only the NetFX35 Integration will occur, without "Cleanup Source".

    With this message of yours, people will be more aware of this warning.
    This warning will certainly be present in the next version.
    Code:
       echo.-------------------------------------------------------------------------------
       echo.####Enabling Windows Features Using Features List##############################
       echo.-------------------------------------------------------------------------------
    
       for %%i in (!ImageIndexNo!) do (
           if exist "%InstallMount%\%%i" (
               echo.
               if %%i leq 9 echo.===========================[Install.wim, Index :  %%i]===========================
               if %%i gtr 9 echo.===========================[Install.wim, Index : %%i]===========================
               echo.
               echo.    Image Edition          : "!ImageEdition%%i!"
               echo.
               echo.
    
               for /f "eol=# tokens=*" %%z in ('type "%EnableFeaturesList%" 2^>nul') do (
                   if "%ImageBuild%" geq "17763" (
                       if /i "%%z" neq "NetFX3" if /i "%%z" neq "Microsoft-Windows-Client-EmbeddedExp-Package" if /i "%%z" neq "Microsoft-Windows-NetFx3-OC-Package" if /i "%%z" neq "Microsoft-Windows-NetFx3-WCF-OC-Package" if /i "%%z" neq "Microsoft-Windows-NetFx4-US-OC-Package" if /i "%%z" neq "Microsoft-Windows-NetFx4-WCF-US-OC-Package" if /i "%%z" neq "FaxServicesClientPackage" if /i "%%z" neq "Internet-Explorer-Optional-amd64" if /i "%%z" neq "Windows-Defender-ApplicationGuard" if /i "%%z" neq "SmbDirect" if /i "%%z" neq "ServicesForNFS-ClientOnly" if /i "%%z" neq "ClientForNFS-Infrastructure" if /i "%%z" neq "NFS-Administration" if /i "%%z" neq "Microsoft-Hyper-V" if /i "%%z" neq "Microsoft-Hyper-V-All" if /i "%%z" neq "Microsoft-Hyper-V-Hypervisor" if /i "%%z" neq "Microsoft-Hyper-V-Management-Clients" if /i "%%z" neq "Microsoft-Hyper-V-Management-PowerShell" if /i "%%z" neq "Microsoft-Hyper-V-Services" if /i "%%z" neq "Microsoft-Hyper-V-Tools-All" if /i "%%z" neq "Containers-DisposableClientVM" if /i "%%z" neq "Containers" if /i "%%z" neq "Containers-HNS" if /i "%%z" neq "Containers-SDN" (
                           call :EnableFeature "%InstallMount%\%%i" %%z
                       )
                       if "%ImageBuild%" lss "21996" (
                           if "%ImageBuild%" lss "19041" (
                               if /i "%%z" equ "Microsoft-Windows-Client-EmbeddedExp-Package" call :EnableFeature "%InstallMount%\%%i" %%z
                               if /i "%%z" equ "Microsoft-Windows-NetFx3-OC-Package" call :EnableFeature "%InstallMount%\%%i" %%z
                               if /i "%%z" equ "Microsoft-Windows-NetFx3-WCF-OC-Package" call :EnableFeature "%InstallMount%\%%i" %%z
                               if /i "%%z" equ "Microsoft-Windows-NetFx4-US-OC-Package" call :EnableFeature "%InstallMount%\%%i" %%z
                               if /i "%%z" equ "Microsoft-Windows-NetFx4-WCF-US-OC-Package" call :EnableFeature "%InstallMount%\%%i" %%z
                               if /i "%%z" equ "FaxServicesClientPackage" call :EnableFeature "%InstallMount%\%%i" %%z
                           )
                           if /i "%ImageArchitecture%" neq "x86" if /i "%ImageArchitecture%" neq "arm" if /i "%ImageArchitecture%" neq "arm64" (
                               if /i "%%z" equ "Internet-Explorer-Optional-amd64" call :EnableFeature "%InstallMount%\%%i" %%z
                           )
                       )
                       if /i "!ImageEdition%%i!" neq "Core" if /i "!ImageEdition%%i!" neq "CoreN" if /i "!ImageEdition%%i!" neq "CoreSingleLanguage" (
                           if /i "%%z" equ "Windows-Defender-ApplicationGuard" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "SmbDirect" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "ServicesForNFS-ClientOnly" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "ClientForNFS-Infrastructure" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "NFS-Administration" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "Microsoft-Hyper-V" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "Microsoft-Hyper-V-All" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "Microsoft-Hyper-V-Hypervisor" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "Microsoft-Hyper-V-Management-Clients" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "Microsoft-Hyper-V-Management-PowerShell" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "Microsoft-Hyper-V-Services" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "Microsoft-Hyper-V-Tools-All" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "Containers-DisposableClientVM" call :EnableFeature "%InstallMount%\%%i" %%z
                           if /i "%%z" equ "Containers" call :EnableFeature "%InstallMount%\%%i" %%z
                           if "%ImageBuild%" geq "21996" (
                               if /i "%%z" equ "Containers-HNS" call :EnableFeature "%InstallMount%\%%i" %%z
                               if /i "%%z" equ "Containers-SDN" call :EnableFeature "%InstallMount%\%%i" %%z
                           )
                       )
                   )
               )
           )
       )
       for /f "eol=# tokens=*" %%z in ('type "%EnableFeaturesList%" 2^>nul') do (
           if /i "%%z" equ "NetFX3" (
               call :CleanupSource
               call :IntNetFX35
           )
       )
    
       echo.-------------------------------------------------------------------------------
       echo.####Finished Enabling Windows Features Using Features List#####################
       echo.-------------------------------------------------------------------------------
    
    

    Code:
    ::-------------------------------------------------------------------------------------------
    :: Function to Cleanup Source Images
    ::-------------------------------------------------------------------------------------------
    :CleanupSource
    
    if "%SelectedSourceOS%" equ "w81" set "CleanupSources=1"
    if "%SelectedSourceOS%" neq "w7" if "%SelectedSourceOS%" neq "w81" (
       if "%ImageBuild%" leq "17763" set "CleanupSources=1"
       if "%ImageBuild%" geq "18362" (
           if "%IsDialogsEnabled%" equ "Yes" if "!CleanupSources_Warning!" equ "" (
               cls
               echo.
               echo.===============================================================================
               echo.   MSMG Toolkit - Cleanup Source Images with Component Cleanup ^& ResetBase
               echo.===============================================================================
               echo.
               echo.                                W A R N I N G
               echo.                                =============
               echo.
               echo. The SFC ghost error comes since the M^$ has executed "DISM /Cleanup-Image"
               echo. command before performing the Sysprep. This bug is present in all OS source
               echo. image version equal to or greater than 1903 ^(Build 18362^) with LCU integrated
               echo. ^(included Official LTSC 2021^) and "DISM /Cleanup-Image" command executed.
               echo.
               echo. forums.mydigitallife.net/threads/msmg-toolkit.50572/page-1114#post-1726900
               echo.
               echo.
               echo. The only way to fix the "SFC ghost bug" is by running the "SFC /SCANNOW"
               echo. command once after installation.
               echo.
               echo. forums.mydigitallife.net/threads/msmg-toolkit.50572/page-1114#post-1726897
               echo.
               echo.
               echo.===============================================================================
               echo.
               choice /C:YN /N /M "Do you want to Cleanup Source Images ? ['Y'es/'N'o] : "
               if errorlevel 2 goto :Stop
               if errorlevel 1 (
                   set "CleanupSources_Warning=Yes"
                   set "CleanupSources=1"
               )
           )
       )
    )
    
    if "!CleanupSources!" neq "" (
       cls
       echo.===============================================================================
       echo.   MSMG Toolkit - Cleanup Source Images with Component Cleanup ^& ResetBase
       echo.===============================================================================
       echo.
       :: Unmount Image Registry if Mounted
       call :UnMountImageRegistry
       echo.-------------------------------------------------------------------------------
       echo.####Starting Cleaning Up Source Images with Component Cleanup ^& ResetBase######
       echo.-------------------------------------------------------------------------------
       echo.
       if "%IsBootImageSelected%" equ "Yes" (
           :: Performing [Boot.wim, Index : 1 and 2] Image Component Cleanup with ResetBase Option
           for /l %%i in (1, 1, 2) do (
               echo.-------------------------------------------------------------------------------
               echo.Performing [Boot.wim, Index : %%i] Image Component Cleanup...
               echo.-------------------------------------------------------------------------------
               call :CleanupImage "%BootMount%\%%i", "ComponentCleanupResetBase"
           )
       )
    
       if "%IsRecoveryImageSelected%" equ "Yes" if exist "%WinReMount%\Windows" (
           :: Performing [WinRE.wim] Image Component Cleanup with ResetBase Option
           echo.-------------------------------------------------------------------------------
           echo.Performing [Install.wim, Index : !SpecifiedSourceIndex! -^> WinRE.wim] Image Component Cleanup...
           echo.-------------------------------------------------------------------------------
           call :CleanupImage "%WinReMount%", "ComponentCleanupResetBase"
       )
    
       for %%i in (!ImageIndexNo!) do (
           if exist "%InstallMount%\%%i" (
               :: Performing [Install.wim] Image Component Clean-Up with ResetBase Option
               echo.-------------------------------------------------------------------------------
               echo.Performing [Install.wim, Index : %%i] Image Component Cleanup...
               echo.-------------------------------------------------------------------------------
               if exist "%InstallMount%\%%i\Windows\WinSxS\pending.xml" (
                   echo.
                   echo.Cannot Perform Image Component Cleanup when Pending.xml is present...
                   echo.
               ) else (
                   if "%SelectedSourceOS%" equ "w7" call :CleanupImage "%InstallMount%\%%i", "SPSupersededHideSP"
                   if "%SelectedSourceOS%" neq "w7" call :CleanupImage "%InstallMount%\%%i", "ComponentCleanupResetBase"
               )
           )
       )
    
       echo.-------------------------------------------------------------------------------
       echo.####Finished Cleaning Up Source Images with Component Cleanup ^& ResetBase######
       echo.-------------------------------------------------------------------------------
    )
    
    :Stop
    echo.
    echo.===============================================================================
    echo.
    
    set CleanupSources=
    
    This is very, very nice! Then the anxiety sticks with me, hehehehe
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Panco1

    Panco1 MDL Junior Member

    Dec 29, 2014
    56
    47
    0
    I make windows 10 golden iso whit this tool and is amazing fast remove all crap and blotware.i have one question is this tool completely remove telemetry in windows iso ? Sorry for bad English
     
  17. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210
    Will test with the ImageFlag and make the required changes.
     
  18. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210
    Thanks for the feedback, have made the changes, since the license xml for RawImageExtension is available now it will be added in next release.