1. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210
    Sorry small correction,

    Writing to HKLM\TK_SOFTWARE\Classes will write into HKCR

    or

    Writing to HKEY_LOCAL_MACHINE\TK_SOFTWARE\Classes will write into HKEY_CLASSES_ROOT


    What's the registry tweak you tried?

     
  2. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210
    Using the C# the coding is less for cleaning the DVD folder, Will think of reverting back to old method since many people use ToolKitHelper directly outside the Toolkit.

     
  3. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    #20743 inTerActionVRI, Oct 10, 2021
    Last edited: Oct 11, 2021
    Code:
        if "!T_GeneralTweaks!" equ "+" (
           for %%l in (
               pt-BR
               pt-PT
           ) do (
               if /i "%ImageDefaultLanguage%" equ "%%l" set "TweakLanguage=1"
           )
       )
    
       for %%i in (!ImageIndexNo!) 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]============================
               call :GetImageEdition "%InstallWim%", %%i
    
               if exist "%InstallMount%\%%i\Windows\System32\wsl.exe" (
                   echo.Microsoft-Windows-Subsystem-Linux is enabled.
                   set "TweakWSL=1"
               )
    
               echo.
               echo.-------------------------------------------------------------------------------
               echo.##### Applying Registry Tweaks ################################################
               echo.-------------------------------------------------------------------------------
               echo.
               echo.Mounting Image Registry...
               call :MountImageRegistry "%InstallMount%\%%i"
               echo.Importing Registry Settings to Image Registry...
    
               reg.exe add "HKLM\TK_SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v "DeleteAllUserPinnedIcons" /t REG_SZ /d "DEL /F /S /Q /A "%%AppData%%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\*"" /f >nul 2>&1
               reg.exe delete "HKLM\TK_NTUSER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /f >nul 2>&1
               reg.exe delete "HKLM\TK_DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /f >nul 2>&1
    
               if "%SelectedSourceOS%" equ "w11" reg.exe add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows" /v "HideRecentlyAddedApps" /t REG_DWORD /d "1" /f >nul 2>&1
    
    
               if "!T_GeneralTweaks!" equ "+" (
                   echo.
                   echo.##### General Tweaks #####
    
                   reg.exe delete "HKLM\TK_SOFTWARE\Classes\Directory\shell\PromptMenu" /f >nul 2>&1
                   reg.exe delete "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\PromptMenu" /f >nul 2>&1
                   reg.exe delete "HKLM\TK_SOFTWARE\Classes\Drive\shell\PromptMenu" /f >nul 2>&1
                   reg.exe delete "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu" /f >nul 2>&1
                   reg.exe delete "HKLM\TK_SOFTWARE\Classes\Directory\shell\WindowsSubsystem4Linux" /f >nul 2>&1
                   reg.exe delete "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\WindowsSubsystem4Linux" /f >nul 2>&1
                   reg.exe delete "HKLM\TK_SOFTWARE\Classes\Drive\shell\WindowsSubsystem4Linux" /f >nul 2>&1
                   reg.exe delete "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux" /f >nul 2>&1
    
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\PromptMenu" /v "Icon" /t reg_SZ /d "cmd.exe" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\PromptMenu" /v "ExtendedSubCommandsKey" /t reg_SZ /d "Directory\ContextMenus\PromptMenu" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\PromptMenu" /v "NoWorkingDirectory" /t reg_SZ /d "" /f >nul 2>&1
    
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\PromptMenu" /v "Icon" /t reg_SZ /d "cmd.exe" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\PromptMenu" /v "ExtendedSubCommandsKey" /t reg_SZ /d "Directory\ContextMenus\PromptMenu" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\PromptMenu" /v "NoWorkingDirectory" /t reg_SZ /d "" /f >nul 2>&1
    
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\PromptMenu" /v "Icon" /t reg_SZ /d "cmd.exe" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\PromptMenu" /v "ExtendedSubCommandsKey" /t reg_SZ /d "Directory\ContextMenus\PromptMenu" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\PromptMenu" /v "NoWorkingDirectory" /t reg_SZ /d "" /f >nul 2>&1
    
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\open" /v "Icon" /t reg_SZ /d "cmd.exe" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\open\command" /ve /t reg_SZ /d "cmd.exe /s /k pushd \"%%V\"" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\runas" /v "Icon" /t reg_SZ /d "cmd.exe" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\runas" /v "HasLUAShield" /t reg_SZ /d "" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\runas\command" /ve /t reg_SZ /d "cmd.exe /s /k pushd \"%%V\"" /f >nul 2>&1
    
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\WindowsSubsystem4Linux" /v "Icon" /t reg_SZ /d "wsl.exe" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\WindowsSubsystem4Linux" /v "ExtendedSubCommandsKey" /t reg_SZ /d "Directory\ContextMenus\WindowsSubsystem4Linux" /f >nul 2>&1
                   reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\WindowsSubsystem4Linux" /v "NoWorkingDirectory" /t reg_SZ /d "" /f >nul 2>&1
    
                   if "!TweakWSL!" equ "1" (
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\WindowsSubsystem4Linux" /v "Icon" /t reg_SZ /d "wsl.exe" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\WindowsSubsystem4Linux" /v "ExtendedSubCommandsKey" /t reg_SZ /d "Directory\ContextMenus\WindowsSubsystem4Linux" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\WindowsSubsystem4Linux" /v "NoWorkingDirectory" /t reg_SZ /d "" /f >nul 2>&1
    
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\WindowsSubsystem4Linux" /v "Icon" /t reg_SZ /d "wsl.exe" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\WindowsSubsystem4Linux" /v "ExtendedSubCommandsKey" /t reg_SZ /d "Directory\ContextMenus\WindowsSubsystem4Linux" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\WindowsSubsystem4Linux" /v "NoWorkingDirectory" /t reg_SZ /d "" /f >nul 2>&1
    
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\open" /v "Icon" /t reg_SZ /d "wsl.exe" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\open\command" /ve /t reg_SZ /d "wsl.exe --cd \"%%V\"" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\runas" /v "Icon" /t reg_SZ /d "wsl.exe" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\runas" /v "HasLUAShield" /t reg_SZ /d "" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\runas\command" /ve /t reg_SZ /d "wsl.exe --cd \"%%V\"" /f >nul 2>&1
                   )
    
                   if "!TweakLanguage!" equ "" (
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\PromptMenu" /v "MUIVerb" /t reg_SZ /d "&Command Prompt" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\PromptMenu" /v "MUIVerb" /t reg_SZ /d "&Command Prompt" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\PromptMenu" /v "MUIVerb" /t reg_SZ /d "&Command Prompt" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\open" /v "MUIVerb" /t reg_SZ /d "Open &here" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\runas" /v "MUIVerb" /t reg_SZ /d "Open here as &Administrator" /f >nul 2>&1
    
                       if "!TweakWSL!" equ "1" (
                           reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\WindowsSubsystem4Linux" /v "MUIVerb" /t reg_SZ /d "&Windows Subsystem for Linux" /f >nul 2>&1
                           reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\WindowsSubsystem4Linux" /v "MUIVerb" /t reg_SZ /d "&Windows Subsystem for Linux" /f >nul 2>&1
                           reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\WindowsSubsystem4Linux" /v "MUIVerb" /t reg_SZ /d "&Windows Subsystem for Linux" /f >nul 2>&1
                           reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\open" /v "MUIVerb" /t reg_SZ /d "Open &here" /f >nul 2>&1
                           reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\runas" /v "MUIVerb" /t reg_SZ /d "Open here as &Administrator" /f >nul 2>&1
                       )
                   ) else (
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\PromptMenu" /v "MUIVerb" /t reg_SZ /d "&Prompt de Comando" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\PromptMenu" /v "MUIVerb" /t reg_SZ /d "&Prompt de Comando" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\PromptMenu" /v "MUIVerb" /t reg_SZ /d "&Prompt de Comando" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\open" /v "MUIVerb" /t reg_SZ /d "Abrir &aqui" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PromptMenu\shell\runas" /v "MUIVerb" /t reg_SZ /d "Abrir aqui como &Administrador" /f >nul 2>&1
    
                       if "!TweakWSL!" equ "1" (
                           reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\Background\shell\WindowsSubsystem4Linux" /v "MUIVerb" /t reg_SZ /d "&Subsistema do Windows para Linux" /f >nul 2>&1
                           reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\shell\WindowsSubsystem4Linux" /v "MUIVerb" /t reg_SZ /d "&Subsistema do Windows para Linux" /f >nul 2>&1
                           reg.exe add "HKLM\TK_SOFTWARE\Classes\Drive\shell\WindowsSubsystem4Linux" /v "MUIVerb" /t reg_SZ /d "&Subsistema do Windows para Linux" /f >nul 2>&1
                           reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\open" /v "MUIVerb" /t reg_SZ /d "Abrir &aqui" /f >nul 2>&1
                           reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\WindowsSubsystem4Linux\shell\runas" /v "MUIVerb" /t reg_SZ /d "Abrir aqui como &Administrador" /f >nul 2>&1
                       )
    
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PowerShell7x64\shell\openpwsh" /v "MUIVerb" /t reg_SZ /d "Abrir &aqui" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PowerShell7x64\shell\runas" /v "MUIVerb" /t reg_SZ /d "Abrir aqui como &Administrador" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PowerShell7x86\shell\openpwsh" /v "MUIVerb" /t reg_SZ /d "Abrir &aqui" /f >nul 2>&1
                       reg.exe add "HKLM\TK_SOFTWARE\Classes\Directory\ContextMenus\PowerShell7x86\shell\runas" /v "MUIVerb" /t reg_SZ /d "Abrir aqui como &Administrador" /f >nul 2>&1
                   )
               )
    
               echo.
               echo.Un-Mounting Image Registry...
               call :UnMountImageRegistry
    
               set TweakWSL=
           )
       )
    
    Part of the PowerShell I just added to PT-BR and PT-PT because it is not translated here.
    PromptMenu and WSL are additions to improve the experience of use.

    It would be very interesting to get the multilingual "MUIVerb"="@shell32.dll,-xxxxx" code to "open here" and the code to "open here as an administrator," but I do not know where to find. The code made available by Abbodi is to open Command Prompt here. There it does not suit for PowerShell and WSL.

    Note: I maintain the .exe for security issue. Once I created a dism.cmd inside the toolkit folder that gave me a headache... kkkkk where I had a variable pointing to the path of the dism defined at the beginning of the toolkit "%dism%", everything was right, but where it was Only "dism" you gave everything wrong.

    Edit: now it is working.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. evaw

    evaw MDL Novice

    Jan 7, 2021
    14
    4
    0
    Hi guys.
    Help me to disable online account setup during installation. (in win 10 just add in register "Hide Online Account Screens"=dword:00000001, but seems it doesn't work in windows 11)
     
  5. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,770
    3,601
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. How will you apply OOBE Pre Process required via registry Key | value | data /force if someone shared them with you . is it via specialize runsynchronous commands or some other method ie offline image servicing using reg load key | do reg tweaks | reg unload key
     
  7. evaw

    evaw MDL Novice

    Jan 7, 2021
    14
    4
    0
    ? - use regkeys before install.
     
  8. Hint : Do you know about M$ Azure AD or InTune Configuration Manager
     
  9. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    8,326
    11,613
    270
    :clap3:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. evaw

    evaw MDL Novice

    Jan 7, 2021
    14
    4
    0
    mdl052020
    Rly don't understand you...
    I skipped online account with regkey in Win10 & asked how to do the same in Win11. I don't use online ms-account, only local account.
     
  11. If you have done it previously on win10 earlier builds then it will work upon w10 22000.xxx too . have you cross checked before posting a question for resolution to your query.
     
  12. evaw

    evaw MDL Novice

    Jan 7, 2021
    14
    4
    0
    #20755 evaw, Oct 11, 2021
    Last edited: Oct 11, 2021
    Thanks for the clarify, now it works.
    Seems like the first time I made some mistake and got a screen with error oobelocal.
     
  13. Good to know that you yourself resolved your own query. theres nothing best then resolving our own questions by our own :)
     
  14. kovadimka

    kovadimka MDL Novice

    Mar 19, 2020
    40
    12
    0
    While integrating Microsoft Default Inbox Apps in win11 getting message:
    "Microsoft Default Inbox Apps .Appxbundle files are missing..."
    "Please copy the missing files to <Packs\Apps\w11> folder..."
    Files are downloaded and copied in that folder.
     
  15. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210
    What's apps are you integrating, I have uploaded all apps in the download link, only the redesigned Windows 11 apps, store and Xbox apps, apps dependency and apps license files.

    You need to download the rest of the app files, for getting the apps read GettingApps.txt inside Packs\Apps folder at download link.

    Still the MS has not released the official Apps ISO, need to wait to know what all license files are included in the ISO.

     
  16. kovadimka

    kovadimka MDL Novice

    Mar 19, 2020
    40
    12
    0
    #20759 kovadimka, Oct 12, 2021
    Last edited: Oct 12, 2021
    For example:
    Microsoft.AV1VideoExtension_1.1.41601.0_x64__8wekyb3d8bbwe.appx
    Microsoft.AV1VideoExtension_8wekyb3d8bbwe.x64.xml
    There are .appx and .blockmap files, even without .xml files
     
  17. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,627
    210