What ever present in the VC++ Pack by abbodi1406 has been ported to Toolkit pack format, will check what's causing the error.
Why not keep the "Manual Setup" as it was before? Since only removes files and folders directly from the DVD folder and nothing inside the Mount folder of the install.wim. It could even be a direct option in the ":RemoveWindowsComponentsMenu" with: Code: if errorlevel x call :RemoveWindowsManualSetup Knowing it does not require dism or toolkithelper, removal is super fast.
I never used nsudo to execute toolkit cmd rather i use powerrun by sordum & i havent faced any error since i started using msmg toolkit . powerrun is already integerated to context menu as "Run as TI" . i directly right click on toolkit.cmd & run as ti from context menu . It always worked like a charm for me in every use.
So... Writing to "HKLM\TK_SOFTWARE\Classes" will write into HKEY_LOCAL_MACHINE\Software\Classes. Registy entries via manual file application, already tested and knowing that they work correctly. I decided to put some "HKCR\" entries directly in the Custom Toolkit code as "HKLM\TK_SOFTWARE\Classes" for testing. These serve to translate the context menus from PowerShell7 to pt-BR, but it did not work. Tested in an image build 22000.194. Soon after installation, I tested again with the reg file and it worked right. Any other suggestion?
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?
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.
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.
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)
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
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.
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.
Thanks for the clarify, now it works. Seems like the first time I made some mistake and got a screen with error oobelocal.
Good to know that you yourself resolved your own query. theres nothing best then resolving our own questions by our own