How do I make wim image with just one index? I have ISO with Pro, Ent and some others. I only want to modify Pro and finally make image of only Pro,
Code: ::------------------------------------------------------------------------------------------- :: Function to unhide a Windows Component Package :: Input Parameters [ %~1 : Package Name ] ::------------------------------------------------------------------------------------------- :UnHidePackage Dism /Mount-Wim /WimFile:"%~dp0dvd\sources\install.wim" /index:1 /MountDir:"%~dp0mount" setlocal set RegistryKey= :: Retriving Package Registry Key Path for /f "tokens=* delims=" %%a in ('reg query "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages" /f "%~1" ^| find /I "%~1"') do ( set "RegistryKey=%%a" ) :: Making Windows Components Package visible reg add "%RegistryKey%" /v Visibility /t REG_DWORD /d 1 /f >nul 2>&1 reg add "%RegistryKey%" /v DefVis /t REG_DWORD /d 2 /f >nul 2>&1 reg delete "%RegistryKey%\Owners" /f >nul 2>&1 set RegistryKey= endlocal Dism /Unmount-Wim /MountDir:"%~dp0mount" /Commit goto :eof MSMG, I tried to uninstall using the Remove-WindowsPackage but it didn't work, what should I do? https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-933#post-1647649 Am I doing everything right?
Select the Pro index, make your changes, when saving, select yes for the trim to be executed. Then, you will have the image only with the indexes you selected at the beginning. In that case only the Pro.
I need help with creating list of components to remove from LTSB2015. I assume first I'd need to list all present, and then remove (from the list) components that are necessary. I hope really like hell that someone did it and will share his list
I responded in the thread you created for this purpose alone but you did not care to check it. https://forums.mydigitallife.net/th...age-list-ltsb2015-in-msmg.83307/#post-1651704
@MSMG folowing on from the last poster talking about manifest_inum, you could componentize even more, by adding the individual components as @testplayer mentioned, makeing options more flexable, thinking of the toolkit removal lists not thrue the menu. I hope all is well with you all, Majid
Hi, I'm making my second attempt at customizing an ISO (10.0.19041, downloaded from Microsoft's site). I'm following the README, and the first optional step is integrating language packs. It seems the ISO defaults to en-US, so I wonder if there's any reason to integrate this language specifically. I was also wondering why someone might want to integrate a language since, in my first attempt at customizing an ISO, I still had to choose a language after installation was complete. (In my first attempt, I mostly just removed Windows' bloatware apps, then installed the custom ISO in a VM as a test run.) I was also wondering if there's an explanation anywhere about the material differences between the following options and why I might choose any, or all, of them: Code: [1] Integrate to Windows Setup Boot Image [2] Integrate to Windows Installation Image [3] Integrate to Windows Recovery Image Thanks for any help you can provide. PS: I'm also wondering where we'd get any drivers we'd like to integrate. Something like Snappy Driver Installer comes to mind, but I feel like I'm wrong, there.
If you're not using an unattended installation, it's normal to chose a language at setup. It's not just windows 10, it's the same in all Windows. Integrating the updates, packs etc into boot and recovery will update those images too and present you the options for the integrated modules when you employ those images. If it's just about the updates, the safest bet is to integrate them in all 3 images wherever the Toolkit gives you the option to do so.
Thanks for the advice, yes I have taken a long break and focusing on other things, there will be delay in Toolkit releases for some time. The DISM executable or DISMApi uses a session to service the WIM image, if the Toolkit is closed without unmounting the image and the system is restarted then the DISM won't service the image in such state and it requires to re-mount the image again.
Can't integrate third party apps without license.xml files, will try with .msixbundle files integration and update whether it works or not.
You have mixed up the code, here's the sample code Code: @echo off setlocal EnableExtensions EnableDelayedExpansion set "PackageName=Microsoft-Windows-OneDrive-Setup-Package~31bf3856ad364e35~amd64~~10.0.19041.1.mum" rem Mount the image Dism /Mount-Wim /WimFile:"%~dp0dvd\sources\install.wim" /index:1 /MountDir:"%~dp0mount" rem Set hidden package visible call :UnHidePackage "%~dp0mount", "%PackageName%" rem Remove the package Dism /Image:"%~dp0mount" /Remove-Package /PackageName:"%PackageName%" rem Commit changes and unmount the image Dism /Unmount-Wim /MountDir:"%~dp0mount" /Commit ::------------------------------------------------------------------------------------------- :: Function to unhide a Windows Component Package :: Input Parameters [ %~1 : Image Mount Path, %~2 : Package Name ] ::------------------------------------------------------------------------------------------- :UnHidePackage setlocal set RegistryKey= :: Mounting Image Registry call :MountImageRegistry "%~1" >nul :: Retriving Package Registry Key Path for /f "tokens=* delims=" %%a in ('reg query "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages" /f "%~2" ^| find /I "%~2"') do ( set "RegistryKey=%%a" ) :: Making Windows Components Package visible reg add "%RegistryKey%" /v Visibility /t REG_DWORD /d 1 /f >nul 2>&1 reg add "%RegistryKey%" /v DefVis /t REG_DWORD /d 2 /f >nul 2>&1 reg delete "%RegistryKey%\Owners" /f >nul 2>&1 :: Un-Mounting Image Registry call :UnMountImageRegistry set RegistryKey= endlocal goto :eof ::------------------------------------------------------------------------------------------- ::------------------------------------------------------------------------------------------- :: Function to mount Image Registry :: Input Parameters [ %~1 : Image Mount Path ] ::------------------------------------------------------------------------------------------- :MountImageRegistry :: Mounting Image Registry for Offline Editing reg load HKLM\TK_SOFTWARE "%~1\Windows\System32\config\SOFTWARE" >nul goto :eof ::------------------------------------------------------------------------------------------- ::------------------------------------------------------------------------------------------- :: Function to unmount Image Registry :: Input Parameters [ None ] ::------------------------------------------------------------------------------------------- :UnMountImageRegistry :: Un-Mounting Image Registry reg unload HKLM\TK_SOFTWARE >nul 2>&1 goto :eof ::------------------------------------------------------------------------------------------- endlocal EnableExtensions EnableDelayedExpansion
For W7-W10 v1803 only DISM method of removal is supported and that too only Remove Windows Components using Package list method is supported. You can get the template list from Toolkit's <Bin\Lists\DISM_Templates> folder.
You can get the template list Toolkit's <Bin\Lists\DISM_Templates> and <Bin\Lists\Features_Templates> folder.