1. mhussain

    mhussain MDL Senior Member

    Oct 1, 2012
    368
    144
    10
    "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
     
  2. forslaey

    forslaey MDL Novice

    Mar 4, 2021
    12
    6
    0
    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.
     
  3. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #20523 inTerActionVRI, Sep 28, 2021
    Last edited: Sep 28, 2021
    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
     
  4. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    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.

     
  5. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Have fixed the issue, do download the Toolkit.cmd again.

     
  6. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    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
     
  7. xlincn

    xlincn MDL Novice

    Nov 9, 2013
    48
    15
    0
    9/29,Toolkit.cmd line 8874 is not much "C"?!
     
  8. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Fixed.

     
  9. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    @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!
     
  10. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Thanks, have fixed the code now and uploaded.

    Will check with AV1 Codec and Sticky Notes.

     
  11. kovadimka

    kovadimka MDL Novice

    Mar 19, 2020
    40
    12
    0
    Windows 11, getting error while removing ClientWebExperience with ToolkitHelper, latest Toolkit.cmd.
     
  12. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Redownload the Toolkit.cmd.

     
  13. iskakfatoni

    iskakfatoni MDL Novice

    Mar 19, 2010
    13
    1
    0
    I have error when integrating Edge Chromium in Windows 8.1 target. File is there
     
  14. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    258
    152
    10
    @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...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    258
    152
    10
    @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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Ok will check out the issue.

     
  17. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    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.