If using the source image with right CU specified in the latest changelog.txt then removing components won't corrupt the component store, do specify the source image used? Using Cleanup Image (DISM /Cleanup-Image /StartComponentCleanup /ResetBase) will give a ghost SFC error. Adding support for skipping Boot.wim (Index 2) needs modification for all Toolkit features related to boot.wim image, will see what can be done.
Code: echo.------------------------------------------------------------------------------- echo.####Integrating Firefox ############################### echo.------------------------------------------------------------------------------- for /l %%i in (1, 1, %ImageCount%) do ( if exist "%InstallMount%\%%i" ( echo. if not %%i gtr 9 echo.===========================[Install.wim, Index : %%i]============================ if %%i gtr 9 echo.==========================[Install.wim, Index : %%i]============================ echo. :: Getting Image Index Information call :GetImageIndexInfo "%InstallWim%", %%i >nul echo.------------------------------------------------------------------------------- echo.Integrating Firefox Browser ... echo.------------------------------------------------------------------------------- call :ApplyImage "%Firefox%\Firefox_%SelectedSourceOS%.tpk", %PackageIndex%, "%InstallMount%\%%i" echo.------------------------------------------------------------------------------- echo.Importing Firefox Browser Registry Settings... echo.------------------------------------------------------------------------------- echo. echo.Mounting Image Registry... call :MountImageRegistry "%InstallMount%\%%i" echo.Importing Registry Settings to Image Registry... call :ImportRegistry2Image "%Firefox%\Firefox_%SelectedSourceOS%_%ImageArchitecture%.reg" echo.Un-Mounting Image Registry... call :UnMountImageRegistry echo. ) ) echo.------------------------------------------------------------------------------- echo.####Finished Integrating Firefox Browser###################### echo.------------------------------------------------------------------------------- :Stop echo. echo.=============================================================================== echo. pause
there is 12.9 there, wait for the MSMG to update or put it in some block using the paths and variables, the one I gave you was just an example of how you can install it every time it updates the .tpk and the reg, it will only change the variables, but it's the same thing everything applied the .tpk and import the .reg
False alarm. What causes Component Store corruption in Windows 10 is disabling (not removing) Optional Features and then rebasing the image.I am not sure which features are the issue, but its not related to MSMG Toolkit. Can you add option for Home editions to have GPEDIT.MSC and Local Sucurity Policy package? Or is it part of RSAT pack? GPEDIT can be added via DISM to any edition of Windows 10/11 like this: Code: @echo off pushd "%~dp0" dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" pause Is it possible to add BitLocker support via DISM to Home editions? The pack for MP3/Multimedia codecs is missing.
Integrate the path variable at that point, putting the firefox folder in packs play all there Code: :: Setting Toolkit's packs environment path variables set "Firefox=%Packs%\Firefox" Managed and integrated into the menu Code: echo. [C] Firefox Browser if errorlevel 3 goto :IntFirefox And with that same code, put it in the block calling it to integrate Code: ::------------------------------------------------------------------------------------------- :: Function to Firefox Browser ::------------------------------------------------------------------------------------------- :IntFirefox setlocal cls echo.=============================================================================== echo. MSMG ToolKit - Integrate Firefox Browser echo.=============================================================================== echo. :: Getting Install Image Index Architecture call :GetImageArchitecture "%InstallWim%", %DefaultIndexNo% >nul :: Checking whether Firefox Browser Pack file exist if not exist "%Firefox%\Firefox_%SelectedSourceOS%.tpk" ( echo.Firefox Browser Pack folder is missing the below file... echo. echo."Firefox_%SelectedSourceOS%.tpk" echo. echo.Please copy the above file to ^<Packs\Firefox^> folder... goto :Stop ) if not exist "%Firefox%\Firefox_%SelectedSourceOS%_%ImageArchitecture%.reg" ( echo.Firefox Browser is missing the below file... echo. echo."Firefox_%SelectedSourceOS%_%ImageArchitecture%.reg" echo. echo.Please copy the above file to ^<Packs\Firefox^> folder... goto :Stop ) echo.------------------------------------------------------------------------------- echo.####Started Integrating Firefox Browser####################### echo.------------------------------------------------------------------------------- echo. echo. Image : Install.wim echo. Image Index : %ImageIndexNo% echo. Image Architecture : %ImageArchitecture% echo. Image Version : %ImageVersion%.%ImageServicePackBuild%.%ImageServicePackLevel% echo. echo.------------------------------------------------------------------------------- echo.####Integrating Firefox ############################### echo.------------------------------------------------------------------------------- for /l %%i in (1, 1, %ImageCount%) do ( if exist "%InstallMount%\%%i" ( echo. if not %%i gtr 9 echo.===========================[Install.wim, Index : %%i]============================ if %%i gtr 9 echo.==========================[Install.wim, Index : %%i]============================ echo. :: Getting Image Index Information call :GetImageIndexInfo "%InstallWim%", %%i >nul echo.------------------------------------------------------------------------------- echo.Integrating Firefox Browser ... echo.------------------------------------------------------------------------------- call :ApplyImage "%Firefox%\Firefox_%SelectedSourceOS%.tpk", %PackageIndex%, "%InstallMount%\%%i" echo.------------------------------------------------------------------------------- echo.Importing Firefox Browser Registry Settings... echo.------------------------------------------------------------------------------- echo. echo.Mounting Image Registry... call :MountImageRegistry "%InstallMount%\%%i" echo.Importing Registry Settings to Image Registry... call :ImportRegistry2Image "%Firefox%\Firefox_%SelectedSourceOS%_%ImageArchitecture%.reg" echo.Un-Mounting Image Registry... call :UnMountImageRegistry echo. ) ) echo.------------------------------------------------------------------------------- echo.####Finished Integrating Firefox Browser###################### echo.------------------------------------------------------------------------------- :Stop echo. echo.=============================================================================== echo. pause endlocal :: Returning to Integrate Features Menu goto :IntFeaturesMenu ::------------------------------------------------------------------------------------------- Installed; Code: =============================================================================== MSMG ToolKit - Integrate Firefox Browser =============================================================================== ------------------------------------------------------------------------------- ####Started Integrating Firefox Browser####################### ------------------------------------------------------------------------------- Image : Install.wim Image Index : 1 Image Architecture : x64 Image Version : 10.0.17763.1.0 ------------------------------------------------------------------------------- ####Integrating Firefox ############################### ------------------------------------------------------------------------------- ===========================[Install.wim, Index : 1]============================ ------------------------------------------------------------------------------- Integrating Firefox Browser ... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.25227.1000 Applying image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------------------------- Importing Firefox Browser Registry Settings... ------------------------------------------------------------------------------- Mounting Image Registry... Importing Registry Settings to Image Registry... A operação foi concluída com êxito. Un-Mounting Image Registry... ------------------------------------------------------------------------------- ####Finished Integrating Firefox Browser###################### ------------------------------------------------------------------------------- =============================================================================== Press any key to continue. Hope this helps ...
cool... but milling, when he launches the .tpk and the reg just as he is launching for the Toolkit, it will be standard that way, Net6 net7 and others all the same way, just put the path variables, integrate in the menu and the installation part, the same thing, be aware of that e va getting the hang of it, see you later... something else, don't forget to translate here on the forum
there is an updated Toolkit.cmd on the download.ru. changes: - re-add .NET 6 (thank you for that, i hope i wasn't too rude trying to explain my reasoning why it should still be supported - its not my time and effort put in this after all) - add support for firefox
@MSMG, If I'm not mistaken, you commented that you were waiting a moment to be able to make a complete tutorial on how to create .tpk, when the opportunity to convert from a non-MS application, appeared. It would be interesting to address the method used in converting Firefox. This tutorial is very interesting. Is it possible to take advantage of the Sandbox for this procedure? Thanks for the attention, man!