"msmg hi, thanks for your responce a question if you will regarding package removal and the packages list. if as an example i wanted to prevent the removal of a cirten package would adding # before the package name be enough for it to be retained? exammple #windows store when the toolkit helper methordaligy is used? you is a cool person Majid
I work in Windows 10 19044.1237 I make an image of Windows 11 22000.194.0 RU x64 There are no spaces in the paths. C:\msmg\* On version 11.8, everything works well, but in the new version that you posted on the forum, there is an error that you posted above.
Yes, but just to let it working for now. Even I left the original lines commented. today's cmd version from :: Setting Source OS variablesset SelectedSourceOS= to :: Setting Source OS variables set SelectedSourceOS= from Code: :: Setting Windows Media Feature Pack folder path according to selected Source OS if "%SelectedSourceOS%" neq "w10" set "MediaFeaturePack=%MediaFeaturePack%\%SelectedSourceOS%" if "%SelectedSourceOS%" neq "w7" if "%SelectedSourceOS%" neq "w81" set "MediaFeaturePack=%MediaFeaturePack%\%SelectedSourceOS%\%PackageVersion%" to Code: :: Setting Windows Media Feature Pack folder path according to selected Source OS if "%SelectedSourceOS%" neq "w10" if "%SelectedSourceOS%" neq "w11" set "MediaFeaturePack=%MediaFeaturePack%\%SelectedSourceOS%" if "%SelectedSourceOS%" neq "w7" if "%SelectedSourceOS%" neq "w81" set "MediaFeaturePack=%MediaFeaturePack%\%SelectedSourceOS%\%PackageVersion%" from /v22H2 to /v22H1
That is to comment certain lines so that the ToolkitHelper would exclude those lines, yes it's in work to add comments for list, the same can be used for excluding components too.
The same thing as previous cases: To prevent it from being able to find the path to the files: "Microsoft.VCLibs120.00.UWPDesktop" and "Microsoft.VCLibs.140.00.UWPDesktop" and set the variables "VCLibs12_Appx" and "VCLibs14_Appx" erroneously. You can reverse the positions *_ to _*. from Code: for /f %%i IN ('"dir /b Microsoft.VCLibs.110.00.UWPDesktop*_%ImageArchitecture%__8wekyb3d8bbwe.Appx" 2^>nul') do set "VCLibsUWPDesktop11_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.VCLibs.120.00.UWPDesktop*_%ImageArchitecture%__8wekyb3d8bbwe.Appx" 2^>nul') do set "VCLibsUWPDesktop12_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.VCLibs.140.00.UWPDesktop*_%ImageArchitecture%__8wekyb3d8bbwe.Appx" 2^>nul') do set "VCLibsUWPDesktop14_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.VCLibs.120.00*_%ImageArchitecture%__8wekyb3d8bbwe.Appx" 2^>nul') do set "VCLibs12_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.VCLibs.140.00*_%ImageArchitecture%__8wekyb3d8bbwe.Appx" 2^>nul') do set "VCLibs14_Appx=/DependencyPackagePath:%Apps%\%%i" to Code: for /f %%i IN ('"dir /b Microsoft.VCLibs.110.00.UWPDesktop*%ImageArchitecture%*.Appx" 2^>nul') do set "VCLibsUWPDesktop11_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.VCLibs.120.00.UWPDesktop*%ImageArchitecture%*.Appx" 2^>nul') do set "VCLibsUWPDesktop12_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.VCLibs.140.00.UWPDesktop*%ImageArchitecture%*.Appx" 2^>nul') do set "VCLibsUWPDesktop14_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.VCLibs.120.00_*%ImageArchitecture%*.Appx" 2^>nul') do set "VCLibs12_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.VCLibs.140.00_*%ImageArchitecture%*.Appx" 2^>nul') do set "VCLibs14_Appx=/DependencyPackagePath:%Apps%\%%i" and... Only in these "For" commands to avoid problems with files named with "_~_". from __8wekyb3d8bbwe*.Appx to *.Appx or to *8wekyb3d8bbwe*.Appx
@MSMG, Some doubles "%" below. Code: for /f %%i IN ('"dir /b Microsoft.UI.Xaml.2.0*%ImageArchitecture%%*.Appx" 2^>nul') do set "UIXaml20_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.UI.Xaml.2.1*%ImageArchitecture%%*.Appx" 2^>nul') do set "UIXaml21_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.UI.Xaml.2.2*%ImageArchitecture%%*.Appx" 2^>nul') do set "UIXaml22_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.UI.Xaml.2.3*%ImageArchitecture%%*.Appx" 2^>nul') do set "UIXaml23_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.UI.Xaml.2.4*%ImageArchitecture%%*.Appx" 2^>nul') do set "UIXaml24_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.UI.Xaml.2.5*%ImageArchitecture%%*.Appx" 2^>nul') do set "UIXaml25_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.UI.Xaml.2.6*%ImageArchitecture%%*.Appx" 2^>nul') do set "UIXaml26_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.UI.Xaml.2.7*%ImageArchitecture%%*.Appx" 2^>nul') do set "UIXaml27_Appx=/DependencyPackagePath:%Apps%\%%i" The same thing as previous cases: To prevent it from being able to find the path to the files: "Microsoft.VCLibs120.00.UWPDesktop" and "Microsoft.VCLibs.140.00.UWPDesktop" and set the variables "VCLibs12_Appx" and "VCLibs14_Appx" erroneously. from Code: for /f %%i IN ('"dir /b Microsoft.VCLibs.120.00*%ImageArchitecture%*.Appx" 2^>nul') do set "VCLibs12_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.VCLibs.140.00*%ImageArchitecture%*.Appx" 2^>nul') do set "VCLibs14_Appx=/DependencyPackagePath:%Apps%\%%i" to Code: for /f %%i IN ('"dir /b Microsoft.VCLibs.120.00_*%ImageArchitecture%*.Appx" 2^>nul') do set "VCLibs12_Appx=/DependencyPackagePath:%Apps%\%%i" for /f %%i IN ('"dir /b Microsoft.VCLibs.140.00_*%ImageArchitecture%*.Appx" 2^>nul') do set "VCLibs14_Appx=/DependencyPackagePath:%Apps%\%%i" from Code: if "%C_ClientWebExperience%" equ "-" RemoveFolder "%InstallMount%\%%i\Program Files\WindowsApps\MicrosoftWindows.Client.WebExperience_321.14700.0.9_x64__cw5n1h2txyewy" to Code: if "%C_ClientWebExperience%" equ "-" call :RemoveFolder "%InstallMount%\%%i\Program Files\WindowsApps\MicrosoftWindows.Client.WebExperience_321.14700.0.9_x64__cw5n1h2txyewy" Reporting. AV1 does not integrate into the build 17763 x86, even with /SkipLicense. StickyNotes on W11 Code: ------------------------------------------------------------------------------- Integrating Sticky Notes Provisioned Appx Package... ------------------------------------------------------------------------------- Deployment Image Servicing and Management tool Version: 10.0.22000.1 Image Version: 10.0.22000.1 Error: 0xc1570117 The specified package is not a bundle containing a stub package. A stub package is required when the InstallStub option is specfied, or the package family's stub preference is configured to install a stub package. Thnks!
@MSMG , In 11.8 line 21631: :: Checking whether the selected Source OS is a Windows 10 Education N Edition it should be: :: Checking whether the selected Source OS is a Windows 10 Enterprise for Virtual Desktops Edition In 11.8 line 21633: if "%SelectedSourceOS%" equ "w10" echo.Windows 10 Enterprise for Virtual Desktops Edition can't be Upgraded... it should be: if "%SelectedSourceOS%" equ "w10" echo.Windows 10 Enterprise Multi-Sessions Edition can't be Upgraded... In 11.8 line 21634: if "%SelectedSourceOS%" equ "w11" echo.Windows 11 Enterprise for Virtual Desktops Edition can't be Upgraded... it should be: if "%SelectedSourceOS%" equ "w11" echo.Windows 11 Enterprise Multi-Sessions Edition can't be Upgraded...
@MSMG , When I use Upgrade Windows Image, When I try upgrade Windows 11 Image, I get crash. Toolkit was crashed. I trying a change, such as: In 11.8 line 21299: if "%ImageVersion:~0,-6%" equ "10.0" set "SelectedSourceOS=w10" it should be like (not same): if "%ImageVersion:~0,-6%" equ "10.0" ( if "%ImageBuild%" leq "20348" ( set "SelectedSourceOS=w10" set "OSID=10" ) if "%ImageBuild%" geq "22000" ( set "SelectedSourceOS=w11" set "OSID=11" ) ) if "%ImageVersion:~0,-6%" equ "11.0" ( set "SelectedSourceOS=w11" set "OSID=11" ) I don't know weather this change can be work well.
For some Windows 10 versions it is Windows 10 Enterprise for Virtual Desktops and for some it is Windows 10 Enterprise Multi-Sessions. Have improved the code and used the Enterprise Multi-Sessions as the name for all Windows 10/11 versions.