1. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #22601 inTerActionVRI, May 2, 2022
    Last edited: May 2, 2022
    I don't check the insiders. But I leave everything free in the custom Toolkit so that everyone can test, even knowing that this is not supported by Toolkit.

    I didn't get it right, but ok.

    I made an error these days when I learned that to use variables in a "del" or "RD" command you have to ensure that nothing is empty.
    NOTE: There are other ways of doing this without risking. But this example is as learning.

    example:
    Code:
    set "ROOT=%~dp0"
    set _TMP=
    if exist "%ROOT%\%_TMP%\" RD /S /Q "%ROOT%\%_TMP%"
    
    Here I am forcing the example with an empty variable. But see that I put the "if exist" and the condition will be valid as it will recognize "%ROOT%\\" and will be present. So this will exclude your script root directory along with yourself.
    I am not ashamed to put this, as this will serve that others do not make the same mistake.
    So, to correct a use of exclusion with variables only, it would be necessary to check that the variable, of the object to be excluded, is empty.
    Code:
    if "%_TMP%" neq "" if exist "%ROOT%\%_TMP%" RD /S /Q "%ROOT%\%_TMP%"
    
    So don't worry, because if your mistake serves so that others don't make the same mistake, that's a good thing.
     
  2. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,854
    2,107
    60
    i think we are pursuing the same goal but, 2 different ways.
    I'll get an ISO ready for you.
    give it to you private.
     
  3. AnimaliX

    AnimaliX MDL Novice

    Jul 28, 2009
    45
    23
    0
    #22603 AnimaliX, May 5, 2022
    Last edited: May 5, 2022
    Hello
    its possible integrate/update Store apps with MSMG on Win11? (not with additional external dism/powershell command) for example update Store itself and especially App Installer (winget) which is unusable without an update on fresh W11.
    I really dont understand why MS not updating store apps for years on monthly updated images.
    W11x64.651
     
  4. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    762
    556
    30
    @MSMG:
    The toolkit has an option to convert .wim file to .esd file.
    You have coded it so it uses dism.
    Recently I've tried the small utility from abbodi1406, it uses wimlib. It is faster than dism.
    The toolkit has wimlib bundled, so here is my question:
    Why did you decide to use dism for esd conversion? Having wimlib bundled with the toolkit, is it not better to use wimlib for esd conversion?
    The resulting esd file size is almost the same.

    Cheers.
     
  5. Feartamixg

    Feartamixg MDL Addicted

    May 15, 2016
    783
    629
    30
    https://forums.mydigitallife.net/threads/esd-wim-conversion-batch.54007/#post-903619
    Is this the tool you refer to?

    I would be interested in testing this myself. There must be some reason MSMG isn't using this, or I am sure he already would.
     
  6. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    762
    556
    30
    Yes correct, WIM2ESD, that is the tool.
    No doubt @MSMG knows about it. There must be a reason he hasn't implemented it.
    At the moment, this last step (convert wim to esd) is rather time consuming, uses a lot of cpu also.
    It would be nice to make it a bit faster.

    Cheers.
     
  7. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    258
    152
    10
    #22607 正义羊, May 9, 2022
    Last edited: May 10, 2022
    @MSMG ,
    Although the dependencies are all placed in the correct folders, the integration of the News and Gaming application still prompts Error: 0xc1570117

    It seems that the Toolkit's looping code for finding dependencies didn't work in this two apps, only one dependency was found (or it was found but replaced by a new result). This seems to be the cause of this error.

    By looking at the dism log, it shows that when it integrates some applications (such as news applications), it does not integrate all the dependencies. It only integrates one of two dependencies, x64 and x86.

    Code:
    ===============================================================================
                     MSMG 工具箱 - 集成 Microsoft 默认内置应用
    ===============================================================================
    
    -------------------------------------------------------------------------------
    ####正在开始集成 Microsoft 默认内置应用########################################
    -------------------------------------------------------------------------------
    
        映像文件名称             :Install.wim
        映像索引                 :1
        映像体系结构             :x64
        映像版本                 :10.0.22000.652.0
    
    -------------------------------------------------------------------------------
    ####正在集成 Microsoft 默认内置应用############################################
    -------------------------------------------------------------------------------
    
    ===========================[Install.wim,索引 :1]=============================
    
    -------------------------------------------------------------------------------
    正在集成资讯提供的 Appx 程序包……
    -------------------------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22598.1
    
    Image Version: 10.0.22000.652
    
    
    Error: 0xc1570117
    
    未指定的错误
    
    The DISM log file can be found at E:\Toolkit_v12.2\Logs\Dism.txt
    
    -------------------------------------------------------------------------------
    正在优化 Microsoft 默认内置应用……
    -------------------------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22598.1
    
    Image Version: 10.0.22000.652
    
    The operation completed successfully.
    
    -------------------------------------------------------------------------------
    ####集成 Microsoft 默认内置应用已完成##########################################
    -------------------------------------------------------------------------------
    
    ===============================================================================
    
    请按任意键继续. . .
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #22608 inTerActionVRI, May 9, 2022
    Last edited: May 9, 2022
    He has commented on me about using Imagex and Wimlib-Imagex, but I don't remember what it was.
    I know there is something about the difference between the 2. one is MS tool and another is OpenSource tool.


    Both are present in the Toolkit Bin folder.
    But I know that in Toolkit and Customtoolkit:
    * Imagex: is used to get ImageFlag information and to Setting WIM Image [Flag] in "Capturing Drive or Folder to WIM Image", rename a selected Image Index Information, merge a splitted Image.
    * Wimlib-Imagex: is used on Renaming Source WIM Image, Upgrading Source WIM Image Edition,

    EDIT: I saw Imagex and didn't see that Wimlib-Imagex was present too.
     
  9. shyamsundarsoni

    shyamsundarsoni MDL Novice

    Jan 15, 2012
    16
    13
    0
    Dear MSMG,
    Thanks for version 12.2
    If Server kind of Source OS is selected (e.g., in my case, Windows Server 2022 [10.20348]), user should not be allowed to select "[4] Microsoft Default Inbox Apps" at Line 1279 as it locked user in an infinite loop at Line 8650 (label SelectInboxAppsMenu) & only option to the user is to press Ctrl + C to terminate Execution there by losing result of all previous operations done by user. He has to start again & lost mounted Install, Boot & WinRE images. This not only waste his time but may allow him to do the same mistake again.
    Please correct in next version.
     
  10. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #22611 inTerActionVRI, May 10, 2022
    Last edited: May 11, 2022
    The "Custom Toolkit" from which date did you use? This one from April 30th?
    I tested today Build 17763.2803 with the Toolkit Custom and the Searchbar is not working.
    It seems that it only works with the removal of Cortana to Builds from 18362 onwards.

    What is the language of your ISO? Here is pt-BR.


    I am working on an alternative to Setupcomplete to provide direct web installation after the internet connection is established and interactively, as in Winget the argument for silent way make some apps enter infinite loop.

    It will be something relatively simple.

    We have to integrate a small script through the Customize menu. Which will detect the presence of 2 possible scripts within a folder called Installers within your installation USB stick and display a menu for the execution of these scripts.

    One of the scripts you customize for anything offline, apps in Silent Install or others that don't run through the setupcomplete that can be placed in the Installers folder created inside the USB stick. I am also studying some details about "FirstLogon.cmd", as one of the scripts I named "1stLogon". There are still some details to be completed, maybe I have done a job that already exists, but I have never seen it.

    The other will be specific for apps of app directly from the web.

    The purpose of this is to install Windows quickly and be able to use your features while installing your applications in your latest released versions.

    This is not possible with preinstalled apps, as it gets obsolete and there is a need to prepare another ISO, and do the manual work of: download, rename and position everything in their proper places. While, this is not necessary.
     
  11. fbifido1

    fbifido1 MDL Novice

    Mar 6, 2018
    21
    2
    0
    Hi,
    Trying MSMG toolkit for the first time, using windows 11 iso created with media creation tool

    1. download windows 11 ent iso:
    MediaCreationToolW11.exe /Eula Accept /Retail /MediaArch x64 /MediaLangCode en-US /MediaEdition Enterprise
    2. download the MSMG toolkit, extracted to c:\toolkit
    3. copy ISO file to c:\toolkit\iso\
    4. run c:\toolkit\start.cmd
    yes : to admin prompt
    A : to continue
    any key to un-pause
    5. 1-->3, name of ISO file, Windows11
    Note: it's extracting a windows 11 iso files, which contains an install.esd file, which it does not even notice.
    6. 1-->1, error
    it found install.esd, but needs install.wim. WHY can't it convert the file ????
    it gives me a stupid suggestion, "use the Extract Source from Store ESD Image menu from Source menu"
    guest what that did ???, yes it did exactly was it said "it extracted the index selected into the DVD folder overwriting the first extracted ISO, now all you have in the DVD folder is the mounted content "
     
  12. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    If you want to integrate any of the UWP InboxApp.
    Change the line 8268 from:
    Code:
    if "%SelectedSourceOS%" equ "w10" if "%ImageBuild%" geq "17763" if "%ImageBuild%" leq "19044" (
    
    to:
    Code:
    if "%SelectedSourceOS%" equ "w10" if "%ImageBuild%" geq "17763" if "%ImageBuild%" lss "21996" (
    
    This will fix the loop and provide access to Inboxapp Menu options.
     
  13. fbifido1

    fbifido1 MDL Novice

    Mar 6, 2018
    21
    2
    0
  14. fbifido1

    fbifido1 MDL Novice

    Mar 6, 2018
    21
    2
    0
    #22615 fbifido1, May 12, 2022
    Last edited: May 12, 2022
    .reg file

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig]
    "BypassTPMCheck"=dword:00000001
    "BypassCPUCheck"=dword:00000001
    "BypassRAMCheck"=dword:00000001
    "BypassSecureBootCheck"=dword:00000001
    "BypassStorageCheck"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup]
    "AllowUpgradesWithUnsupportedTPMOrCPU"=dword:00000001
    
     
  15. undo001

    undo001 MDL Novice

    May 7, 2022
    3
    0
    0
    Yeah i used the one from April 30th.
    I think i let cortana activated at the main menu (where it is conected with the search bar) and disabled it somewhere else.
    I used it on the en-EN and the de-DE version and both works.

    I only want to preistall apps that dont need any updates. Also i will make on my USB-boot-stick an folder with all necessary tools. This is easy since i can just put it on the Stick after using Rufus.
    The only problem atm for me is "how to preinstall apps".
     
  16. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    This option is available in Customize Menu.
    If ISO is created with this applied tweak, there is no need to use that option on Rufus.
     
  17. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    Oh right, but then if you have not removed Cortana through the Remove Components menu the Search Bar will work using any script (Toolkit or Custom Toolkit).
    In both there is the option to disable Cortana through the Customize Menu.

    In Toolkit only through the Integrate Menu, and only for MS products.
    Example: I put Sysinternals Suite, in Custom Toolkit because it has been purchased by MS for years, and are very useful tools for dealing with new malware in manual work mode.
     
  18. undo001

    undo001 MDL Novice

    May 7, 2022
    3
    0
    0
    This will be perfect. Just need to figure out how to make at the setup a menu where i can choose between 4-5 Browsers. Dont want to be fixed to edge.
    Its not a big deal if its not possible, but would be nice.
     
  19. Schrotty

    Schrotty MDL Junior Member

    Aug 12, 2009
    52
    3
    0
    Can not remove apps from 22621.1. Whene i enter remove App List is see nothing.

    Screenshot 2022-05-13 093517.png