1. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,626
    3,361
    60
    From
    Code:
    :: Setting Custom Windows Recovery Image file path according to selected Source OS
    set "RecoveryImage=%RecoveryImage%\%SelectedSourceOS%\%ImageArchitecture%"
    
    :: Checking whether Custom Windows Recovery Image file exist
    if not exist "%RecoveryImage%\winre.wim" (
       echo.Custom Windows Recovery Image file "winre.wim" not found...
       echo.
       echo.Please copy the above file to ^<Custom\RecoveryImage\%SelectedSourceOS%\%ImageArchitecture%^> folder...
       goto :Stop
    )
    echo.-------------------------------------------------------------------------------
    echo.####Starting Integrating Custom Windows Recovery Image#########################
    echo.-------------------------------------------------------------------------------
    echo.
    echo.    Image                    : Install.wim
    if /i "%ImageIndexNo%" equ "A" echo.    Image Indexes            : 1-%ImageCount%
    if /i "%ImageIndexNo%" neq "A" echo.    Image Index              : %ImageIndexNo%
    echo.    Image Architecture       : %ImageArchitecture%
    echo.    Image Version            : %ImageVersion%.%ImageServicePackBuild%.%ImageServicePackLevel%
    echo.
    echo.-------------------------------------------------------------------------------
    echo.####Integrating Custom Windows Recovery Image##################################
    echo.-------------------------------------------------------------------------------
    
    for /l %%i in (1, 1, %ImageCount%) do (
       if exist "%InstallMount%\%%i" (
           echo.
           if not %%i gtr 9 echo.=====================[Install.wim, Index : %%i -^> WinRE.wim]====================
           if %%i gtr 9 echo.=====================[Install.wim, Index : %%i -^> WinRE.wim]===================
           echo.
           echo.Copying Custom Windows Recovery Environment (WinRE) Image...
    
    to
    Code:
    :: Setting Custom Windows Recovery Image file path according to selected Source OS
    set "RecoveryImage=%CustomRecoveryImage%\%SelectedSourceOS%\%ImageArchitecture%"
    
    :: Checking whether Custom Windows Recovery Image file exist
    if not exist "%RecoveryImage%\winre.wim" (
       echo.Custom Windows Recovery Image file "winre.wim" not found...
       echo.
       echo.Please copy the above file to ^<%RecoveryImage%^> folder...
       goto :Stop
    )
    echo.-------------------------------------------------------------------------------
    echo.####Starting Integrating Custom Windows Recovery Image#########################
    echo.-------------------------------------------------------------------------------
    echo.
    echo.    Image                    : Install.wim
    if /i "%ImageIndexNo%" equ "A" echo.    Image Indexes            : 1-%ImageCount%
    if /i "%ImageIndexNo%" neq "A" echo.    Image Index              : %ImageIndexNo%
    echo.    Image Architecture       : %ImageArchitecture%
    echo.    Image Version            : %ImageVersion%.%ImageServicePackBuild%.%ImageServicePackLevel%
    echo.
    echo.-------------------------------------------------------------------------------
    echo.####Integrating Custom Windows Recovery Image##################################
    echo.-------------------------------------------------------------------------------
    
    for /l %%i in (1, 1, %ImageCount%) do (
       if exist "%InstallMount%\%%i" (
           echo.
           if not %%i gtr 9 echo.=====================[Install.wim, Index : %%i -^> WinRE.wim]====================
           if %%i gtr 9 echo.=====================[Install.wim, Index : %%i -^> WinRE.wim]===================
           echo.
           echo.Copying Custom Windows Recovery Environment ^(WinRE^) Image...
    
    With the correction suggested by, @正义羊
     
  2. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,626
    3,361
    60
    I saw your answer after posting. Hehehe
     
  3. xCyBx

    xCyBx MDL Senior Member

    Aug 6, 2018
    315
    598
    10
    My answer is simple and correct too.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. xCyBx

    xCyBx MDL Senior Member

    Aug 6, 2018
    315
    598
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. SoraToYoshi

    SoraToYoshi MDL Novice

    Jan 14, 2021
    2
    0
    0
    It has been on Removing Package Files for 15 minutes now?

    It says:

    ''
    Component: Screensketch

    Removing Package Files...
    ''

    does it take this long to remove a file?
     
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,026
    93,874
    450
  7. SoraToYoshi

    SoraToYoshi MDL Novice

    Jan 14, 2021
    2
    0
    0
    It has been on Removing Package Files for 20 minutes now?
    It says:

    ''
    Component: Screensketch

    Removing Package Files...
    ''

    does it take this long to remove a file?
     
  8. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,412
    15,485
    210
    Use the latest version of Toolkit + the latest Toolkit script uploaded separately in the download link.

    You need to choose the components first and then start removing the components and yes it will take some time to start the removal process but doesn't take a long time for each components like in previous versions.

     
  9. graver.x

    graver.x MDL Senior Member

    Jan 18, 2020
    341
    474
    10
  10. graver.x

    graver.x MDL Senior Member

    Jan 18, 2020
    341
    474
    10
  11. kusosaito

    kusosaito MDL Junior Member

    Nov 14, 2018
    55
    4
    0
    @MSMG, i upload REG files for u there, whats wrong with it?
     
  12. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,412
    15,485
    210
    If you haven't selected the recovery image for mounting while selecting the source then you can remove it but can't say if it breaks the OS without testing.

     
  13. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,412
    15,485
    210
    Haven't checked yet today will be checking.

     
  14. xCyBx

    xCyBx MDL Senior Member

    Aug 6, 2018
    315
    598
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    728
    540
    30
    @MSMG:

    There may be an issue with the "disable windows update" tweak in the script.

    Line 1164 and line 1165:
    Code:
    Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DODownloadMode" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DODownloadMode" /t REG_DWORD /d "63" /f >nul 2>&1
    The policy setting is being repeated, as you can see.
    But besides that, the value "63" is not valid. Valid would be 0, 1, 99 and 100 according to MS docs.
    Leaving this uncorrected will flood the event viewer with delivery optimization warnings.

    Cheers.