1. tosgaba

    tosgaba MDL Junior Member

    Nov 22, 2009
    96
    41
    0
    @MSMG While I was integrating PortableDevices to a W10 19043 image Toolkit throwed this error. Could you please investigate? I'm using the latest Toolkit from Mega link.
     

    Attached Files:

  2. jinvidia

    jinvidia MDL Member

    Aug 7, 2016
    238
    36
    10
    #20162 jinvidia, Aug 21, 2021
    Last edited: Aug 21, 2021
    Thanks a lot buddy.

    Even in ltsc 1809 also when i serviced the iso with msmg 11.7 I got sfc errors. Only in msmg 9.8 I didn't get sfc errors though the iso underwent the component cleaning step.

    So now I want to download version 1809 with the upto date feature update from uupdump.
    In this case should i exclude or include cleaning Component storage in the download script and msmg 11.7 to get rid of sfc errors ?
     
  3. shhnedo

    shhnedo MDL Guru

    Mar 20, 2011
    2,095
    2,869
    90
    @tosgaba Just so I don't come across as rude, I assume said file is actually missing from said directory? Like I suppose you actually downloaded the relevant files from the mega folder and put them into... well... Packs\PortableDevices\10.0.19041, instead of just saying "here's an error, fix it".
     
  4. tosgaba

    tosgaba MDL Junior Member

    Nov 22, 2009
    96
    41
    0
    Yes, precisely the said files have been downloaded from the Mega link and put where they belong to.
     
  5. shhnedo

    shhnedo MDL Guru

    Mar 20, 2011
    2,095
    2,869
    90
    Let me test it on my end real quick and get back to you.
     
  6. tosgaba

    tosgaba MDL Junior Member

    Nov 22, 2009
    96
    41
    0
    Thank you, waiting for your return.
     
  7. shhnedo

    shhnedo MDL Guru

    Mar 20, 2011
    2,095
    2,869
    90
    Code:
    Volume in drive D has no label.
    Volume Serial Number is 7CA9-F7A5
    Directory of D:\wMSMG\Packs\PortableDevices\10.0.19041
    
    21.08.2021 г.  15:20    <DIR>          .
    21.08.2021 г.  15:20    <DIR>          ..
    02.03.2020 г.  09:46            35 153 Microsoft-Windows-Portable-Devices-Package~31bf3856ad364e35~amd64~bg-BG~10.0.19041.1.cab
    02.03.2020 г.  09:46            32 987 Microsoft-Windows-Portable-Devices-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1.cab
    02.03.2020 г.  09:46         2 271 199 Microsoft-Windows-Portable-Devices-Package~31bf3856ad364e35~amd64~~10.0.19041.1.cab
    02.03.2020 г.  09:46            36 860 Microsoft-Windows-Portable-Devices-Package~31bf3856ad364e35~x86~bg-BG~10.0.19041.1.cab
    02.03.2020 г.  09:46            34 812 Microsoft-Windows-Portable-Devices-Package~31bf3856ad364e35~x86~en-US~10.0.19041.1.cab
    02.03.2020 г.  09:46         2 038 811 Microsoft-Windows-Portable-Devices-Package~31bf3856ad364e35~x86~~10.0.19041.1.cab
    02.03.2020 г.  09:47            12 326 Microsoft-Windows-Portable-Devices-WOW64-Package~31bf3856ad364e35~amd64~bg-BG~10.0.19041.1.cab
    02.03.2020 г.  09:47            13 070 Microsoft-Windows-Portable-Devices-WOW64-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1.cab
    02.03.2020 г.  09:47           681 225 Microsoft-Windows-Portable-Devices-WOW64-Package~31bf3856ad364e35~amd64~~10.0.19041.1.cab
                   9 File(s)      5 156 443 bytes
                   2 Dir(s)  675 917 627 392 bytes free
    Code:
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    Details for image : install.wim
    
    Index : 1
    Name : Windows 10 Home
    Description : Windows 10 Home
    Size : 16 439 396 167 bytes
    WIM Bootable : No
    Architecture : x64
    Hal : <undefined>
    Version : 10.0.19044
    ServicePack Build : 1165
    ServicePack Level : 0
    Edition : Core
    Installation : Client
    ProductType : WinNT
    ProductSuite : Terminal Server
    System Root : WINDOWS
    Directories : 29050
    Files : 108145
    Created : 7.12.2019 г. - 13:33:21
    Modified : 21.8.2021 г. - 15:31:17
    Languages :
            bg-BG
            en-US (Default)
    The operation completed successfully.
    I got the same error as you.
    Notice how the WOW64 cabs have amd64 in them, where the error says wow64. So I replaced amd64 with wow64 in my 3 WOW64 cabs. This is what I got:
    Code:
    ===============================================================================
                 MSMG ToolKit - Integrate Windows Portable Devices
    ===============================================================================
    -------------------------------------------------------------------------------
    ####Starting Integrating Windows Portable Devices##############################
    -------------------------------------------------------------------------------
        Image                    : Install.wim
        Image Index              : 1
        Image Architecture       : x64
        Image Version            : 10.0.19044.1165.0
    -------------------------------------------------------------------------------
    ####Integrating Windows Portable Devices#######################################
    -------------------------------------------------------------------------------
    ===========================[Install.wim, Index : 1]============================
    -------------------------------------------------------------------------------
    ####Finished Integrating Windows Portable Devices##############################
    -------------------------------------------------------------------------------
    ===============================================================================
    Press any key to continue . . .
    Now the only thing I don't really know is if anything actually got integrated or not. I see the Integrating... and Finished integrating... signs, but there's nothing under install.wim, Index : 1, so I can't really know for sure myself.
    This is where we need @MSMG I guess.
     
  8. tosgaba

    tosgaba MDL Junior Member

    Nov 22, 2009
    96
    41
    0
    @shhnedo Thank you for your input,
    Tomorrow I'll rename the corresponding files, do the integration and test the resulting image in a VM.
    We'll see what happens.
     
  9. graver.x

    graver.x MDL Senior Member

    Jan 18, 2020
    349
    486
    10
    #20169 graver.x, Aug 21, 2021
    Last edited: Aug 21, 2021
    Regarding errors in LTSC , this is already a question for MSMG. You need to describe in more detail: the version of the Toolkit, the version of the image (whether the number of the integrated LCU corresponds to the declared support for the component removal module), a list of your actions and add a file to the message: C:\Windows\Logs\CBS\CBS.log

    The last LTSC image that I had to work with (17763.1577 with Toolkit v10.9) - there were no problems, cleanup was performed in the Toolkit.
    Unfortunately, uupdump does not allow you to get the LTSC edition.
    In order to work with LTSC, follow the compatibility recommendations of the component removal module (ToolkitHelper.exe) with the specified in Changelog.txt supported by the LCU version, you need to have a base image, preferably MSDN ISO, OS build 17763.1.
    and from updump.net You can download the specified in Changelog.txt the LCU + SSU version, and integrate it into this image before removing the components.

    If all required conditions are met, there should be no sfc errors.
     
  10. sergey130270

    sergey130270 MDL Senior Member

    May 15, 2014
    300
    397
    10
    #20170 sergey130270, Aug 21, 2021
    Last edited: Aug 21, 2021
    Hello guys! Help me please, I can not integrate Cumulative (windows10.0-kb5005189-x64.cab) into the install.wim, for windows 11, writes to this error: "Package_for_RollupFix" Error: 0x800f0988, can I have a wrong integration sequence?
    first I integrate ServicingStack (ssu-22000.132-x64.cab),
    the second: GeneralPackage (windows10.0-kb5004567-x64.cab),
    third: Cumulative (windows10.0-kb5005189-x64.cab),
    fourth: NetCumulative (windows10.0-kb5004342-x64).
    Can you help?
    Here's an example of the commands I'm using:
    @echo off

    setlocal EnableExtensions EnableDelayedExpansion
    COLOR 1F
    :: TITLE Windows 10 Integrator
    CLS

    :: Setting Tools environment path variables
    If exist "%WinDir%\SysWOW64" (
    SET "Arch=x64"
    ) else (
    SET "Arch=x86"
    )

    :: Setting environment path variables
    SET "MOUNT=%~dp0Mount"
    SET "MountWinRE=%MOUNT%\WinRE"
    SET "WinRE=%MOUNT%\Windows\System32\Recovery"
    SET "Sources=%~dp0DVD\sources"
    SET "WIM=%Sources%\install.wim"
    SET "WIMTmp=%Sources%\install_temp.wim"
    SET "Tweaks=%~dp0Tweaks"
    SET "TweaksTEMP=%~dp0Tweaks\Temp"
    SET "ImageDefaultLanguage="

    :: Mounting image
    for /f %%i in ('%~dp0Tools\%Arch%\wimlib-imagex.exe info "%WIM%"^|find "Index:"') do set /a maxindex += 1
    set /a maxindex -= 1
    for /l %%i in (1,1,%maxindex%) DO (
    "%~dp0Tools\%Arch%\DISM\Dism.exe" /Get-WimInfo /WimFile:"%WIM%" /index:"%%i"
    if not exist "%MOUNT%" mkdir "%MOUNT%"
    "%~dp0Tools\%Arch%\DISM\Dism.exe" /Mount-Wim /WimFile:"%WIM%" /index:%%i /MountDir:"%MOUNT%"

    echo.
    echo.
    echo.===============================================================================
    ECHO Addding [Updates] to installation image
    echo.===============================================================================
    for /R "%~dp0Updates\%Arch%\NETFX3" %%i in (*.cab) do dism /image:"%MOUNT%" /add-package /packagepath:"%%i"
    for /R "%~dp0Updates\%Arch%\ServicingStack" %%i in (*.cab) do dism /image:"%MOUNT%" /add-package /packagepath:"%%i"
    for /R "%~dp0Updates\%Arch%\Cumulative" %%i in (*.cab) do dism /image:"%MOUNT%" /add-package /packagepath:"%%i"
    for /R "%~dp0Updates\%Arch%\GeneralPackage" %%i in (*.cab) do dism /image:"%MOUNT%" /add-package /packagepath:"%%i"
    for /R "%~dp0Updates\%Arch%\NetCumulative" %%i in (*.cab) do dism /Image:"%MOUNT%" /Add-Package /PackagePath:"%%i"

    echo.
    echo.
    echo.===============================================================================
    ECHO Addding [Updates] to Windows Recovery of image
    echo.===============================================================================
    if not exist "%MountWinRE%" mkdir "%MountWinRE%"
    "%~dp0Tools\%Arch%\DISM\Dism.exe" /Mount-Wim /WimFile:"%WinRE%\WinRE.wim" /index:1 /MountDir:"%MountWinRE%"
    for /R "%~dp0Updates\%Arch%\ServicingStack" %%i in (*.cab) do dism /Image:"%MountWinRE%" /Add-Package /PackagePath:"%%i"
    for /R "%~dp0Updates\%Arch%\WinRE" %%i in (*.cab) do dism /Image:"%MountWinRE%" /Add-Package /PackagePath:"%%i"

    echo.
    echo.
    echo.===============================================================================
    echo Unmounting image[WinRE]
    echo.===============================================================================
    "%~dp0Tools\%Arch%\DISM\Dism.exe" /Unmount-Wim /MountDir:"%MountWinRE%" /commit
    "%~dp0Tools\%Arch%\DISM\Dism.exe" /Export-Image /SourceImageFile:"%WinRE%\WinRE.wim" /all /DestinationImageFile:"%WinRE%\WinRE_temp.wim" /compress:max /checkintegrity
    move /y "%WinRE%\WinRE_temp.wim" "%WinRE%\WinRE.wim" >nul
    rd /q /s "%MountWinRE%" >nul 2>&1
    if exist "%MOUNT%\PerfLogs\Admin" rmdir /q /s "%MOUNT%\PerfLogs\Admin"
    del /f /s /q "%~dp0Updates\%Arch%\NetCumulative\*.cab" >nul 2>&1
    Тип продукта: WinNT
    Набор продуктов: Terminal Server
    Корень системы: WINDOWS
    Каталогов: 21408
    Файлов: 109214
    Создано: 05.06.2021 - 21:58:42
    Изменено: 21.08.2021 - 21:49:42
    Языков:
    ru-RU (по умолчанию)

    Операция успешно завершена.

    Cистема DISM
    Версия: 10.0.22000.1

    Подключение образа
    [==========================100.0%==========================]
    Операция успешно завершена.


    ===============================================================================
    Addding [Updates] to installation image
    ===============================================================================

    Cистема DISM
    Версия: 10.0.19041.844

    Версия образа: 10.0.22000.1

    Обрабатывается 1 из 1 - Добавление пакета Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.22000.1
    [==========================100.0%==========================]
    Операция успешно завершена.

    Cистема DISM
    Версия: 10.0.19041.844

    Версия образа: 10.0.22000.1

    Обрабатывается 1 из 1 - Добавление пакета Package_for_ServicingStack~31bf3856ad364e35~amd64~~22000.132.1.0
    [==========================100.0%==========================]
    Операция успешно завершена.

    Cистема DISM
    Версия: 10.0.19041.844

    Версия образа: 10.0.22000.1

    Обрабатывается 1 из 1 - Добавление пакета Package_for_RollupFix~31bf3856ad364e35~amd64~~22000.160.1.0
    [==========================100.0%==========================]
    Произошла ошибка - "Package_for_RollupFix" Ошибка: 0x800f0988

    Ошибка: 0x800f0988

    Сбой DISM. Операция не выполнена.
    Дополнительные сведения см. в файле журнала.

    Файл журнала DISM находится по адресу C:\Windows\Logs\DISM\dism.log

    Cистема DISM
    Версия: 10.0.19041.844

    Версия образа: 10.0.22000.1

    Обрабатывается 1 из 1 - Добавление пакета Package_for_KB5004567~31bf3856ad364e35~amd64~~10.0.1.0
    [==========================100.0%==========================]
    Операция успешно завершена.

    Cистема DISM
    Версия: 10.0.19041.844

    Версия образа: 10.0.22000.1

    Обрабатывается 1 из 1 - Добавление пакета Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4400.3
    [==========================100.0%==========================]
    Операция успешно завершена.


    ===============================================================================
    Addding [Updates] to Windows Recovery of image
    ===============================================================================

    Cистема DISM
    Версия: 10.0.22000.1

    Подключение образа
    [==========================100.0%==========================]
    Операция успешно завершена.

    Cистема DISM
    Версия: 10.0.19041.844

    Версия образа: 10.0.22000.132

    Processing 1 of 1 - Adding package Package_for_ServicingStack~31bf3856ad364e35~amd64~~22000.132.1.0
    [==========================100.0%==========================]
    Операция успешно завершена.

    Cистема DISM
    Версия: 10.0.19041.844

    Версия образа: 10.0.22000.132

    Processing 1 of 1 - Adding package Package_for_KB5005662~31bf3856ad364e35~amd64~~22000.132.1.7
    [==========================100.0%==========================]
    Операция успешно завершена.


    ===============================================================================
    Unmounting image[WinRE]
    ===============================================================================

    Cистема DISM
    Версия: 10.0.22000.1

    Файл образа: C:\Win\Integrator11\Mount\Windows\System32\Recovery\WinRE.wim
    Индекс образа: 1
    Сохранение образа
    [==========================100.0%==========================]
    Отключение образа
    [==========================100.0%==========================]
    Операция успешно завершена.

    Cистема DISM
    Версия: 10.0.22000.1

    Экспорт образа
    [==========================100.0%==========================]
    Операция успешно завершена.


    ===============================================================================
    Mount Image Registry
    ===============================================================================


    ===============================================================================
    Integration of [vcredist_x64_2005-2008] into the installation image
    ===============================================================================
    Скопировано файлов: 1.
    Importing [Certificates.reg] to Image Registry...
    Importing [VC_x64_2005.reg] to Image Registry...
    Importing [VC_x64_2008.reg] to Image Registry...
    Importing [VC_x86_2005.reg] to Image Registry...
    Importing [VC_x86_2008.reg] to Image Registry...


    ===============================================================================
    Integration of [vcredist_2013] into the installation image
    ===============================================================================
    Скопировано файлов: 1.
    Importing [Certificates.reg] to Image Registry...
    Importing [VC_x64_2010.reg] to Image Registry...
    Importing [VC_x64_2012.reg] to Image Registry...
    Importing [VC_x64_2013.reg] to Image Registry...
    Importing [VC_x86_2010.reg] to Image Registry...
    Importing [VC_x86_2012.reg] to Image Registry...
    Importing [VC_x86_2013.reg] to Image Registry...
    Importing [VC_x86_Legacy.reg] to Image Registry...


    ===============================================================================
    Integration of [vcredist_2022] into the installation image
    ===============================================================================
    Importing [Certificates.reg] to Image Registry...
    Importing [VC_x64_2022.reg] to Image Registry...
    Importing [VC_x86_2022.reg] to Image Registry...


    ===============================================================================
    Integration of [DirectX9c] into the installation image
    ===============================================================================
    Importing [64bit.reg] to Image Registry...


    ===============================================================================
    Integration of [7-Zip] into the installation image
    ===============================================================================
    Importing [7zipArch.reg] to Image Registry...
    Importing [7zip_x64.reg] to Image Registry...


    ===============================================================================
    Integration of [Unlocker] into the installation image
    ===============================================================================
    Importing [Unlocker_x64.reg] to Image Registry...


    ===============================================================================
    Making settings in the registry
    ===============================================================================
    Importing [Disable_Cortana.reg] to Image Registry...
    Importing [Disable_Telemetry.reg] to Image Registry...
    Importing [Disabling_Specter_Meltdown.reg] to Image Registry...
    Importing [PhotoViewer.reg] to Image Registry...
    Importing [Systems.reg] to Image Registry...


    ===============================================================================
    Uninstalling OneDrive.
    ===============================================================================


    ===============================================================================
    Un-Mounting Image Registry
    ===============================================================================

    Done

    Cистема DISM
    Версия: 10.0.22000.1

    Файл образа: C:\Win\Integrator11\DVD\sources\install.wim
    Индекс образа: 1
    Сохранение образа
    [==========================100.0%==========================]
    Отключение образа
    [==========================100.0%==========================]
    Операция успешно завершена.


    ===============================================================================
    Extracting Windows 10 Setup Media Update to [DVD] folder.
    ===============================================================================


    ===============================================================================
    Copy the [$OEM$] folder to the sources folder
    ===============================================================================


    ===============================================================================
    Re-Building Source [Install.wim] Image with compress maximum...
    ===============================================================================

    Cистема DISM
    Версия: 10.0.22000.1

    Экспорт образа
    [==========================100.0%==========================]
    Операция успешно завершена.

    Cистема DISM
    Версия: 10.0.22000.1

    Поиск устаревших файлов на диске C
    Поиск устаревших файлов на диске D
    Операция успешно завершена.


    All finished.

    Press any key to end the script.
     
  11. Bira

    Bira MDL Senior Member

    Oct 4, 2017
    364
    210
    10
    #20172 Bira, Aug 22, 2021
    Last edited: Aug 22, 2021
    @MSMG, I went to check the "Starting Applying Tweaks" block, there are some things that are out of identification.
    I made two attached files, showing officer errors, and tried to improve identities, I hope to be correct and have helped
     

    Attached Files:

  12. Mandar Hadap

    Mandar Hadap MDL Novice

    Aug 22, 2021
    1
    0
    0
    how big is the download?
     
  13. tosgaba

    tosgaba MDL Junior Member

    Nov 22, 2009
    96
    41
    0
    #20174 tosgaba, Aug 22, 2021
    Last edited: Aug 22, 2021
    Today I've integrated Portable Devices pack into a Windows 10 Pro N 19043.1200 image tested it within a VM and result is yes Toolkit integrates the Packages properly and it works.
    I attached an image of the corresponding result below.
    But Toolkit expects some of package names in their respective folder to be renamed to "....wow64....." instead of "...amd64..." like you said previously.
     

    Attached Files:

  14. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    #20175 inTerActionVRI, Aug 23, 2021
    Last edited: Aug 23, 2021
    I was scared, I did not find anything logical, in any of the codes that can return a date instead of ImageAchitecture. heheheeh
    About Sun Valley Icons Integration Just Replace "Move" to "Copy".
    But I saw now that it has already been corrected.

    About PortableDevices
    from
    Code:
                   if "%ImageArchitecture%" equ "x64" (
                       echo.-------------------------------------------------------------------------------
                       echo.Integrating Windows Portable Devices WOW64 Package...
                       echo.-------------------------------------------------------------------------------
                       if "%ImageBuild%" leq "17763" call :AddPackage "%InstallMount%\%%i", "%PortableDevices%\Microsoft-Windows-Portable-Devices-WOW64-Package~31bf3856ad364e35~amd64~~%PackageVersion%.%PackageServicePackBuild%.cab"
                       if "%ImageBuild%" geq "18362" call :AddPackage "%InstallMount%\%%i", "%PortableDevices%\Microsoft-Windows-Portable-Devices-WOW64-Package~31bf3856ad364e35~wow64~~%PackageVersion%.%PackageServicePackBuild%.cab"
                       echo.-------------------------------------------------------------------------------
                       echo.Integrating Windows Portable Devices [%ImageDefaultLanguage%] Language WOW64 Package...
                       echo.-------------------------------------------------------------------------------
                       if "%ImageBuild%" leq "17763" call :AddPackage "%InstallMount%\%%i", "%PortableDevices%\Microsoft-Windows-Portable-Devices-WOW64-Package~31bf3856ad364e35~amd64~%ImageDefaultLanguage%~%PackageVersion%.%PackageServicePackBuild%.cab"
                       if "%ImageBuild%" geq "18362" call :AddPackage "%InstallMount%\%%i", "%PortableDevices%\Microsoft-Windows-Portable-Devices-WOW64-Package~31bf3856ad364e35~wow64~%ImageDefaultLanguage%~%PackageVersion%.%PackageServicePackBuild%.cab"
                   )
    
    to
    Code:
                   if "%ImageArchitecture%" equ "x64" (
                       echo.-------------------------------------------------------------------------------
                       echo.Integrating Windows Portable Devices WOW64 Package...
                       echo.-------------------------------------------------------------------------------
                       call :AddPackage "%InstallMount%\%%i", "%PortableDevices%\Microsoft-Windows-Portable-Devices-WOW64-Package~31bf3856ad364e35~amd64~~%PackageVersion%.%PackageServicePackBuild%.cab"
                       echo.-------------------------------------------------------------------------------
                       echo.Integrating Windows Portable Devices [%ImageDefaultLanguage%] Language WOW64 Package...
                       echo.-------------------------------------------------------------------------------
                       call :AddPackage "%InstallMount%\%%i", "%PortableDevices%\Microsoft-Windows-Portable-Devices-WOW64-Package~31bf3856ad364e35~amd64~%ImageDefaultLanguage%~%PackageVersion%.%PackageServicePackBuild%.cab"
                   )
    
    Since there are no packages "Microsoft-Windows-Portable-Devices-WOW64-Package~31bf3856ad364e35~wow64~" In the repository folders, only "Microsoft-Windows-Portable-Devices-WOW64-Package~31bf3856ad364e35~amd64~".

    Unless it is that the fact that the files exist, but they are absent from the repository folder for the lack of space in the mega.

    I'm curious about VC_2019. Will VC_2022 replace it completely?
    The VC_2022 will not support Windows 8.1?

    Or can we simply apply the suggestion from @Bira?

    Code:
    for %%i in (Certificates, VC_2005, VC_2008, VC_2010, VC_2012, VC_2013, VC_2019, VC_2022, VC_Legacy) do (
       if "%SelectedSourceOS%" neq "w10" if "%SelectedSourceOS%" neq "w11" (
           if "%%i" neq "VC_2022" if not exist "!VCRuntime!\%%i_%ImageArchitecture%.reg" (
               echo.Microsoft Visual C++ Runtime Pack file "%%i_%ImageArchitecture%.reg" not found...
               echo.
               echo.Please copy the above file to ^<Packs\VCRuntime\%SelectedSourceOS%^> folder...
               goto :Stop
           )
       ) else (
           if "%%i" neq "VC_2019" if not exist "!VCRuntime!\%%i_%ImageArchitecture%.reg" (
               echo.Microsoft Visual C++ Runtime Pack file "%%i_%ImageArchitecture%.reg" not found...
               echo.
               echo.Please copy the above file to ^<Packs\VCRuntime\%SelectedSourceOS%^> folder...
               goto :Stop
           )
       )
    )
    
    and
    Code:
           for %%i in (Certificates, VC_2005, VC_2008, VC_2010, VC_2012, VC_2013, VC_2019, VC_2022, VC_Legacy) do (
               if "%SelectedSourceOS%" neq "w10" if "%SelectedSourceOS%" neq "w11" (
                   if "%%i" neq "VC_2022" call :ImportRegistry2Image "!VCRuntime!\%%i_%ImageArchitecture%.reg"
               ) else (
                   if "%%i" neq "VC_2019" call :ImportRegistry2Image "!VCRuntime!\%%i_%ImageArchitecture%.reg"
               )
           )
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    from
    Code:
    copy /y "%Temp%\Win32Calc.exe" "%InstallMount%\%%i\Windows\SysWOW64\Win32Calc.exe" >nul
    
    to
    Code:
    copy /y "%Temp%\Win32Calc_wow64.exe" "%InstallMount%\%%i\Windows\SysWOW64\Win32Calc.exe" >nul
    
    and

    from
    Code:
    call :RemoveFile "%Temp%\cmd_wow64.dll" >nul
    
    to
    Code:
    call :RemoveFile "%Temp%\cmd_wow64.exe" >nul
    
    or a slight optimized:
    Code:
    for %%f in (cmd; cmd_wow64; imageres; imageres_wow64; imagesp1; imagesp1_wow64; SnippingTool; SnippingTool_wow64; shell32; shell32_wow64; taskmgr; taskmgr_wow64; Win32Calc; Win32Calc_wow64; zipfldr; zipfldr_wow64; ResourceHacker.exe; ResourceHacker.ini; ResourceHacker.log) do (
       call :RemoveFile "%Temp%\%%f"
       call :RemoveFile "%Temp%\%%f.bak"
       call :RemoveFile "%Temp%\%%f.dll"
       call :RemoveFile "%Temp%\%%f.exe"
       call :RemoveFile "%Temp%\%%f.dll.mun"
       call :RemoveFile "%Temp%\%%f.exe.mun"
    )
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Bira

    Bira MDL Senior Member

    Oct 4, 2017
    364
    210
    10
    Icons also supported for ;

    w7 ;

    Capturar_2021_08_22_23_46_30_465.png Capturar_2021_08_22_23_46_46_169.png Capturar_2021_08_22_23_48_23_602.png Capturar_2021_08_22_23_48_38_219.png Capturar_2021_08_22_23_51_27_442.png Capturar_2021_08_22_23_46_30_465.png Capturar_2021_08_22_23_46_46_169.png Capturar_2021_08_22_23_48_23_602.png Capturar_2021_08_22_23_48_38_219.png Capturar_2021_08_22_23_51_27_442.png

    w81 ;

    Capturar_2021_08_22_23_59_03_52.png Capturar_2021_08_22_23_59_16_117.png Capturar_2021_08_22_23_59_53_22.png Capturar_2021_08_23_00_00_18_749.png
     

    Attached Files:

  17. Bira

    Bira MDL Senior Member

    Oct 4, 2017
    364
    210
    10
    It will only have to have some changes in the panel, so you can get there.
    Replace the same part that is in the script for this

    Code:
    
    ::-------------------------------------------------------------------------------------------
    :: Function to Integrate Windows Icons Skin
    ::-------------------------------------------------------------------------------------------
    :IntWIconsSkin
    
    setlocal
    
    cls
    echo.===============================================================================
    echo.              MSMG ToolKit - Integrate Windows Icons Skin
    echo.===============================================================================
    echo.
    
    :: Getting Install Image Index Architecture
    call :GetImageArchitecture "%InstallWim%", %DefaultIndexNo% >nul
    
    set "Skins=%Skins%\Icons"
    
    :: Checking whether Windows Icons Skin Pack file exist
    for %%i in (cmd.exe.res, imageres.dll.res, imagesp1.dll.res, mydocs.dll.res, snippingtool.exe.res, shell32.dll.res, taskmgr.exe.res, win32calc.exe.res, zipfldr.dll.res) do (
        if not exist "%Skins%\%%i" (
            echo.Windows Icons Skin Pack file "%%i" not found...
            echo.
            echo.Please copy the above file to ^<Packs\Skins\Icons^> folder...
            goto :Stop
        )
    )
    
    echo.-------------------------------------------------------------------------------
    echo.####Starting Integrating Windows Icons Skin####################################
    echo.-------------------------------------------------------------------------------
    echo.
    echo.    Image                    : Install.wim
    echo.    Image Index              : %ImageIndexNo%
    echo.    Image Architecture       : %ImageArchitecture%
    echo.    Image Version            : %ImageVersion%.%ImageServicePackBuild%.%ImageServicePackLevel%
    echo.
    echo.-------------------------------------------------------------------------------
    echo.####Processing Windows Icons Resource Skin#####################################
    echo.-------------------------------------------------------------------------------
    echo.
    echo.Copying Windows Icons resource files...
    copy /y %ResourceHacker% %Temp% >nul
    
    copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\cmd.exe" "%Temp%\cmd.bak" >nul
    copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\SnippingTool.exe" "%Temp%\SnippingTool.bak" >nul
    if exist "%InstallMount%\%DefaultIndexNo%\Windows\System32\win32calc.exe" copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\win32calc.exe" "%Temp%\win32calc.bak" >nul
    
    if "%ImageArchitecture%" equ "x64" (
        copy "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\cmd.exe" "%Temp%\cmd_wow64.bak" >nul
        if exist "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\win32calc.exe" copy "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\win32calc.exe" "%Temp%\win32calc_wow64.bak" >nul
    )
    
    if "%SelectedSourceOS%" neq "w10" (
        copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\imageres.dll" "%Temp%\imageres.bak" >nul
        copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\imagesp1.dll" "%Temp%\imagesp1.bak" >nul
        copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\mydocs.dll" "%Temp%\mydocs.bak" >nul
        rem copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\shell32.dll" "%Temp%\shell32.bak" >nul
        rem copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\taskmgr.exe" "%Temp%\taskmgr.bak" >nul
        copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\zipfldr.dll" "%Temp%\zipfldr.bak" >nul
       
        if "%ImageArchitecture%" equ "x64" (
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\imageres.dll" "%Temp%\imageres_wow64.bak" >nul
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\imagesp1.dll" "%Temp%\imagesp1_wow64.bak" >nul
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\mydocs.dll" "%Temp%\mydocs_wow64.bak" >nul
            rem copy "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\taskmgr.exe" "%Temp%\taskmgr_wow64.bak" >nul
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\zipfldr.dll" "%Temp%\zipfldr_wow64.bak" >nul
        )
        echo.
        echo.Patching [\Windows\System32\imageres.dll] file...
        "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\imageres.bak", "%Temp%\imageres.dll", "%Skins%\imageres.dll.res" ,,,
        call :RemoveFile "%Temp%\imageres.bak"
        echo.Patching [\Windows\System32\imagesp1.dll] file...
        "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\imagesp1.bak", "%Temp%\imagesp1.dll", "%Skins%\imagesp1.dll.res" ,,,
        call :RemoveFile "%Temp%\imagesp1.bak"
        echo.Patching [\Windows\System32\mydocs.dll] file...
        "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\mydocs.bak", "%Temp%\mydocs.dll", "%Skins%\mydocs.dll.res" ,,,
        call :RemoveFile "%Temp%\mydocs.bak"
        rem echo.Patching [\Windows\System32\shell32.dll] file...
        rem "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\shell32.bak", "%Temp%\shell32.dll", "%Skins%\shell32.dll.res" ,,,
        rem call :RemoveFile "%Temp%\shell32.bak"
        rem echo.Patching [\Windows\System32\taskmgr.exe] file...
        rem "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\taskmgr.bak", "%Temp%\taskmgr.exe", "%Skins%\taskmgr.exe.res" ,,,
        rem call :RemoveFile "%Temp%\taskmgr.bak"
        echo.Patching [\Windows\System32\zipfldr.dll] file...
        "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\zipfldr.bak", "%Temp%\zipfldr.dll", "%Skins%\zipfldr.dll.res" ,,,
        call :RemoveFile "%Temp%\zipfldr.bak"
    
        if "%ImageArchitecture%" equ "x64" (
            echo.Patching [\Windows\SysWOW64\imageres.dll] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\imageres_wow64.bak", "%Temp%\imageres_wow64.dll", "%Skins%\imageres.dll.res" ,,,
            call :RemoveFile "%Temp%\imageres_wow64.bak"
            echo.Patching [\Windows\SysWOW64\imagesp1.dll] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\imagesp1_wow64.bak", "%Temp%\imagesp1_wow64.dll", "%Skins%\imagesp1.dll.res" ,,,
            call :RemoveFile "%Temp%\imagesp1_wow64.bak"
            echo.Patching [\Windows\SysWOW64\mydocs.dll] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\mydocs_wow64.bak", "%Temp%\mydocs_wow64.dll", "%Skins%\mydocs.dll.res" ,,,
            call :RemoveFile "%Temp%\mydocs_wow64.bak"
            rem echo.Patching [\Windows\SysWOW64\taskmgr.exe] file...
            rem "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\taskmgr_wow64.bak", "%Temp%\taskmgr_wow64.exe", "%Skins%\taskmgr.exe.res" ,,,
            rem call :RemoveFile "%Temp%\taskmgr_wow64.bak"
            echo.Patching [\Windows\SysWOW64\zipfldr.dll] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\zipfldr_wow64.bak", "%Temp%\zipfldr_wow64.dll", "%Skins%\zipfldr.dll.res" ,,,
            call :RemoveFile "%Temp%\zipfldr_wow64.bak"
        )
    ) else (
        copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\imageres.dll" "%Temp%\imageres.bak" >nul
        copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\imagesp1.dll" "%Temp%\imagesp1.bak" >nul
        copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\mydocs.dll" "%Temp%\mydocs.bak" >nul
        rem copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\shell32.dll" "%Temp%\shell32.bak" >nul
        rem copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\taskmgr.exe" "%Temp%\taskmgr.bak" >nul
        copy "%InstallMount%\%DefaultIndexNo%\Windows\System32\zipfldr.dll" "%Temp%\zipfldr.bak" >nul
       
        if "%ImageArchitecture%" equ "x64" (
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\imageres.dll" "%Temp%\imageres_wow64.bak" >nul
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\imagesp1.dll" "%Temp%\imagesp1_wow64.bak" >nul
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\mydocs.dll" "%Temp%\mydocs_wow64.bak" >nul
            rem copy "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\taskmgr.exe" "%Temp%\taskmgr_wow64.bak" >nul
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\zipfldr.dll" "%Temp%\zipfldr_wow64.bak" >nul
        )
        echo.
        echo.Patching [\Windows\System32\imageres.dll] file...
        "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\imageres.bak", "%Temp%\imageres.dll", "%Skins%\imageres.dll.res" ,,,
        call :RemoveFile "%Temp%\imageres.bak"
        echo.Patching [\Windows\System32\imagesp1.dll] file...
        "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\imagesp1.bak", "%Temp%\imagesp1.dll", "%Skins%\imagesp1.dll.res" ,,,
        call :RemoveFile "%Temp%\imagesp1.bak"
        echo.Patching [\Windows\System32\mydocs.dll] file...
        "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\mydocs.bak", "%Temp%\mydocs.dll", "%Skins%\mydocs.dll.res" ,,,
        call :RemoveFile "%Temp%\mydocs.bak"
        rem echo.Patching [\Windows\System32\shell32.dll] file...
        rem "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\shell32.bak", "%Temp%\shell32.dll", "%Skins%\shell32.dll.res" ,,,
        rem call :RemoveFile "%Temp%\shell32.bak"
        rem echo.Patching [\Windows\System32\taskmgr.exe] file...
        rem "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\taskmgr.bak", "%Temp%\taskmgr.exe", "%Skins%\taskmgr.exe.res" ,,,
        rem call :RemoveFile "%Temp%\taskmgr.bak"
        echo.Patching [\Windows\System32\zipfldr.dll] file...
        "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\zipfldr.bak", "%Temp%\zipfldr.dll", "%Skins%\zipfldr.dll.res" ,,,
        call :RemoveFile "%Temp%\zipfldr.bak"
    
        if "%ImageArchitecture%" equ "x64" (
            echo.Patching [\Windows\SysWOW64\imageres.dll] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\imageres_wow64.bak", "%Temp%\imageres_wow64.dll", "%Skins%\imageres.dll.res" ,,,
            call :RemoveFile "%Temp%\imageres_wow64.bak"
            echo.Patching [\Windows\SysWOW64\imagesp1.dll] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\imagesp1_wow64.bak", "%Temp%\imagesp1_wow64.dll", "%Skins%\imagesp1.dll.res" ,,,
            call :RemoveFile "%Temp%\imagesp1_wow64.bak"
            echo.Patching [\Windows\SysWOW64\mydocs.dll] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\mydocs_wow64.bak", "%Temp%\mydocs_wow64.dll", "%Skins%\mydocs.dll.res" ,,,
            call :RemoveFile "%Temp%\mydocs_wow64.bak"
            rem echo.Patching [\Windows\SysWOW64\taskmgr.exe] file...
            rem "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\taskmgr_wow64.bak", "%Temp%\taskmgr_wow64.exe", "%Skins%\taskmgr.exe.res" ,,,
            rem call :RemoveFile "%Temp%\taskmgr_wow64.bak"
            echo.Patching [\Windows\SysWOW64\zipfldr.dll] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\zipfldr_wow64.bak", "%Temp%\zipfldr_wow64.dll", "%Skins%\zipfldr.dll.res" ,,,
            call :RemoveFile "%Temp%\zipfldr_wow64.bak"
        )
    
        if "%ImageBuild%" geq "18363" (
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SystemResources\imageres.dll.mun" "%Temp%\imageres.bak" >nul
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SystemResources\imagesp1.dll.mun" "%Temp%\imagesp1.bak" >nul
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SystemResources\mydocs.dll.mun" "%Temp%\mydocs.bak" >nul
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SystemResources\shell32.dll.mun" "%Temp%\shell32.bak" >nul
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SystemResources\taskmgr.exe.mun" "%Temp%\taskmgr.bak" >nul
            copy "%InstallMount%\%DefaultIndexNo%\Windows\SystemResources\zipfldr.dll.mun" "%Temp%\zipfldr.bak" >nul
            echo.
            echo.Patching [\Windows\SystemResources\imageres.dll.mun] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\imageres.bak", "%Temp%\imageres.dll.mun", "%Skins%\imageres.dll.res" ,,,
            call :RemoveFile "%Temp%\imageres.bak"
            echo.Patching [\Windows\SystemResources\imagesp1.dll.mun] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\imagesp1.bak", "%Temp%\imagesp1.dll.mun", "%Skins%\imagesp1.dll.res" ,,,
            call :RemoveFile "%Temp%\imagesp1.bak"
            echo.Patching [\Windows\SystemResources\mydocs.dll.mun] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\mydocs.bak", "%Temp%\mydocs.dll.mun", "%Skins%\mydocs.dll.res" ,,,
            call :RemoveFile "%Temp%\mydocs.bak"
            echo.Patching [\Windows\SystemResources\shell32.dll.mun] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\shell32.bak", "%Temp%\shell32.dll.mun", "%Skins%\shell32.dll.res" ,,,
            call :RemoveFile "%Temp%\shell32.bak"
            echo.Patching [\Windows\SystemResources\taskmgr.exe.mun] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\taskmgr.bak", "%Temp%\taskmgr.exe.mun", "%Skins%\taskmgr.exe.res" ,,,
            call :RemoveFile "%Temp%\taskmgr.bak"
            echo.Patching [\Windows\SystemResources\zipfldr.dll.mun] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\zipfldr.bak", "%Temp%\zipfldr.dll.mun", "%Skins%\zipfldr.dll.res" ,,,
            call :RemoveFile "%Temp%\zipfldr.bak"
        )
    )
    
    echo.Patching [\Windows\System32\cmd.exe] file...
    "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\cmd.bak", "%Temp%\cmd.exe", "%Skins%\cmd.exe.res" ,,,
    call :RemoveFile "%Temp%\cmd.bak"
    echo.Patching [\Windows\System32\SnippingTool.exe] file...
    "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\SnippingTool.bak", "%Temp%\SnippingTool.exe", "%Skins%\snippingtool.exe.res" ,,,
    call :RemoveFile "%Temp%\SnippingTool.bak"
    
    if exist "%InstallMount%\%DefaultIndexNo%\Windows\System32\win32calc.exe" (
        echo.Patching [\Windows\System32\win32calc.exe] file...
        "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\win32calc.bak", "%Temp%\win32calc.exe", "%Skins%\win32calc.exe.res" ,,,
        call :RemoveFile "%Temp%\win32calc.bak"
    )
    
    if "%ImageArchitecture%" equ "x64" (
        echo.Patching [\Windows\SysWOW64\cmd.exe] file...
        "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\cmd_wow64.bak", "%Temp%\cmd_wow64.exe", "%Skins%\cmd.exe.res" ,,,
        call :RemoveFile "%Temp%\cmd_wow64.bak"
    
        if exist "%InstallMount%\%DefaultIndexNo%\Windows\SysWOW64\win32calc.exe" (
            echo.Patching [\Windows\SysWOW64\win32calc.exe] file...
            "%Temp%\ResourceHacker.exe" -addoverwrite "%Temp%\win32calc_wow64.bak", "%Temp%\win32calc_wow64.exe", "%Skins%\win32calc.exe.res" ,,,
            call :RemoveFile "%Temp%\win32calc_wow64.bak"
        )
    )
    
    echo.
    echo.-------------------------------------------------------------------------------
    echo.####Integrating Windows Icons Skin#############################################
    echo.-------------------------------------------------------------------------------
    echo.
    for /l %%i in (1, 1, %ImageCount%) do (
        if exist "%InstallMount%\%%i" (
            if not %%i gtr 9 echo.===========================[Install.wim, Index : %%i]============================
            if %%i gtr 9 echo.==========================[Install.wim, Index : %%i]============================
            echo.
            echo.Copying Patched Windows Icons files...
            echo.
            echo.Copying [\Windows\System32\cmd.exe] file...
            copy /y "%Temp%\cmd.exe" "%InstallMount%\%%i\Windows\System32\cmd.exe" >nul
            echo.Copying [\Windows\System32\SnippingTool.exe] file...
            copy /y "%Temp%\SnippingTool.exe" "%InstallMount%\%%i\Windows\System32\SnippingTool.exe" >nul
    
            if exist "%InstallMount%\%%i\Windows\System32\win32calc.exe" (
                echo.Copying [\Windows\System32\win32calc.exe] file...
                copy /y "%Temp%\win32calc.exe" "%InstallMount%\%%i\Windows\System32\win32calc.exe" >nul
            )
    
            if "%ImageArchitecture%" equ "x64" (
                echo.Copying [\Windows\SysWOW64\cmd.exe] file...
                copy /y "%Temp%\cmd_wow64.exe" "%InstallMount%\%%i\Windows\SysWOW64\cmd.exe" >nul
    
                if exist "%InstallMount%\%%i\Windows\SysWOW64\win32calc.exe" (
                    echo.Copying [\Windows\SysWOW64\win32calc.exe] file...
                    copy /y "%Temp%\win32calc.exe" "%InstallMount%\%%i\Windows\SysWOW64\win32calc.exe" >nul
                )
            )
    
            if "%SelectedSourceOS%" neq "w10" (
                echo.Copying [\Windows\System32\imageres.dll] file...
                copy /y "%Temp%\imageres.dll" "%InstallMount%\%%i\Windows\System32\imageres.dll" >nul
                echo.Copying [\Windows\System32\imagesp1.dll] file...
                copy /y "%Temp%\imagesp1.dll" "%InstallMount%\%%i\Windows\System32\imagesp1.dll" >nul
                echo.Copying [\Windows\System32\mydocs.dll] file...
                copy /y "%Temp%\mydocs.dll" "%InstallMount%\%%i\Windows\System32\mydocs.dll" >nul
                rem echo.Copying [\Windows\System32\shell32.dll] file...
                rem copy /y "%Temp%\shell32.dll" "%InstallMount%\%%i\Windows\System32\shell32.dll" >nul
                rem echo.Copying [\Windows\System32\taskmgr.exe] file...
                rem copy /y "%Temp%\taskmgr.exe" "%InstallMount%\%%i\Windows\System32\taskmgr.exe" >nul
                echo.Copying [\Windows\System32\zipfldr.dll] file...
                copy /y "%Temp%\zipfldr.dll" "%InstallMount%\%%i\Windows\System32\zipfldr.dll" >nul
    
                if "%ImageArchitecture%" equ "x64" (
                    echo.Copying [\Windows\SysWOW64\imageres.dll] file...
                    copy /y "%Temp%\imageres_wow64.dll" "%InstallMount%\%%i\Windows\SysWOW64\imageres.dll" >nul
                    echo.Copying [\Windows\SysWOW64\imagesp1.dll] file...
                    copy /y "%Temp%\imagesp1_wow64.dll" "%InstallMount%\%%i\Windows\SysWOW64\imagesp1.dll" >nul
                    echo.Copying [\Windows\SysWOW64\mydocs.dll] file...
                    copy /y "%Temp%\mydocs_wow64.dll" "%InstallMount%\%%i\Windows\SysWOW64\mydocs.dll" >nul
                    rem echo.Copying [\Windows\SysWOW64\taskmgr.exe] file...
                    rem copy /y "%Temp%\taskmgr_wow64.exe" "%InstallMount%\%%i\Windows\SysWOW64\taskmgr.exe" >nul
                    echo.Copying [\Windows\SysWOW64\zipfldr.dll] file...
                    copy /y "%Temp%\zipfldr_wow64.dll" "%InstallMount%\%%i\Windows\SysWOW64\zipfldr.dll" >nul
                )
            ) else (
                echo.Copying [\Windows\System32\imageres.dll] file...
                copy /y "%Temp%\imageres.dll" "%InstallMount%\%%i\Windows\System32\imageres.dll" >nul
                echo.Copying [\Windows\System32\imagesp1.dll] file...
                copy /y "%Temp%\imagesp1.dll" "%InstallMount%\%%i\Windows\System32\imagesp1.dll" >nul
                echo.Copying [\Windows\System32\mydocs.dll] file...
                copy /y "%Temp%\mydocs.dll" "%InstallMount%\%%i\Windows\System32\mydocs.dll" >nul
                rem echo.Copying [\Windows\System32\shell32.dll] file...
                rem copy /y "%Temp%\shell32.dll" "%InstallMount%\%%i\Windows\System32\shell32.dll" >nul
                rem echo.Copying [\Windows\System32\taskmgr.exe] file...
                rem copy /y "%Temp%\taskmgr.exe" "%InstallMount%\%%i\Windows\System32\taskmgr.exe" >nul
                echo.Copying [\Windows\System32\zipfldr.dll] file...
                copy /y "%Temp%\zipfldr.dll" "%InstallMount%\%%i\Windows\System32\zipfldr.dll" >nul
    
                if "%ImageArchitecture%" equ "x64" (
                    echo.Copying [\Windows\SysWOW64\imageres.dll] file...
                    copy /y "%Temp%\imageres_wow64.dll" "%InstallMount%\%%i\Windows\SysWOW64\imageres.dll" >nul
                    echo.Copying [\Windows\SysWOW64\imagesp1.dll] file...
                    copy /y "%Temp%\imagesp1_wow64.dll" "%InstallMount%\%%i\Windows\SysWOW64\imagesp1.dll" >nul
                    echo.Copying [\Windows\SysWOW64\mydocs.dll] file...
                    copy /y "%Temp%\mydocs_wow64.dll" "%InstallMount%\%%i\Windows\SysWOW64\mydocs.dll" >nul
                    rem echo.Copying [\Windows\SysWOW64\taskmgr.exe] file...
                    rem copy /y "%Temp%\taskmgr_wow64.exe" "%InstallMount%\%%i\Windows\SysWOW64\taskmgr.exe" >nul
                    echo.Copying [\Windows\SysWOW64\zipfldr.dll] file...
                    copy /y "%Temp%\zipfldr_wow64.dll" "%InstallMount%\%%i\Windows\SysWOW64\zipfldr.dll" >nul
                )
    
                if "%ImageBuild%" geq "18363" (
                    echo.Copying [\Windows\SystemResources\imageres.dll.mun] file...
                    copy /y "%Temp%\imageres.dll.mun" "%InstallMount%\%%i\Windows\SystemResources\imageres.dll.mun" >nul
                    echo.Copying [\Windows\SystemResources\imagesp1.dll.mun] file...
                    copy /y "%Temp%\imagesp1.dll.mun" "%InstallMount%\%%i\Windows\SystemResources\imagesp1.dll.mun" >nul
                    echo.Copying [\Windows\SystemResources\mydocs.dll.mun] file...
                    copy /y "%Temp%\mydocs.dll.mun" "%InstallMount%\%%i\Windows\SystemResources\mydocs.dll.mun" >nul
                    echo.Copying [\Windows\SystemResources\shell32.dll.mun] file...
                    copy /y "%Temp%\shell32.dll.mun" "%InstallMount%\%%i\Windows\SystemResources\shell32.dll.mun" >nul
                    echo.Copying [\Windows\SystemResources\taskmgr.exe.mun] file...
                    copy /y "%Temp%\taskmgr.exe.mun" "%InstallMount%\%%i\Windows\SystemResources\taskmgr.exe.mun" >nul
                    echo.Copying [\Windows\SystemResources\zipfldr.dll.mun] file...
                    copy /y "%Temp%\zipfldr.dll.mun" "%InstallMount%\%%i\Windows\SystemResources\zipfldr.dll.mun" >nul
                )
            )
        )
    )
     
  18. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210
    That's due to

    1) Not performing Image Cleanup.
    2) Compared to earlier versions the removal program now removes less in WinSxS folder to maintain Windows Update Compatibility.