1. DennyAmaro

    DennyAmaro MDL Junior Member

    Apr 25, 2018
    63
    21
    0
  2. Titanos

    Titanos MDL Novice

    Dec 11, 2019
    31
    28
    0
    Check if those reg files contains references to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet" .
    Replace "CurrentControlSet" with "ControlSet001".


    @MSMG
    It should be a Warning on 1st page about this.
     
  3. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,487
    210
    When the Toolkit imports the registry from registry file, it will convert all the registry hives to Toolkit compatible format including HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet

     
  4. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,487
    210
    Have uploaded updated Toolkit.cmd + new Apps and Appx licenses.
     
  5. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,651
    3,398
    60
    This is only a problem if registry tweaks are inserted through another method. Through the toolkit an automatic conversion occurs.

    I suppose it can be the type of boot system. MBR Media USB used on GPT UEFI PC or vice versa.
     
  6. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,651
    3,398
    60
    I am facing a problem with VP9VideoExtensions, informs that it needs to be repaired, but is returning this code 0x80073D02.

    I've tried the store reset, but it did not work.

    I do not know how to force uninstallation and forced reinstallation.

    How can I do this?
    Thank you guys!
     
  7. Titanos

    Titanos MDL Novice

    Dec 11, 2019
    31
    28
    0
    #20848 Titanos, Oct 15, 2021
    Last edited: Oct 15, 2021
    I learned that I shouldn't use CurrentControlSet on hardway - 2 days of tests. Importing registry using the option present in Toolkit I got computer rebooting after install. Same problem like DennyAmaro

    So, if is any code that replaces CurrentControlSet with ControlSet001 it might have some bugs.
    Anyway, I did'n found any reference to a replace in Toolkit.cmd code.

    ControlSet001.jpg


    Edit:
    https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-1000#post-1678750

    PS:
    Try DISM++ to remove that app and reinstall it through Store
     
  8. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,487
    210
    The Toolkit uses PowerShell script to convert the registry hive names before importing the registry file, the PowerShell script ConvertReg.ps1 resides in Bin folder.

    Code:
    echo.-------------------------------------------------------------------------------
    echo.####Processing Custom Registry Settings Files##################################
    echo.-------------------------------------------------------------------------------
    echo.
    echo.Making Custom Registry compatible with ToolKit's Image Registry...
    call :RemoveFolder "%Temp%\CustomRegistry"
    call :CreateFolder "%Temp%\CustomRegistry"
    PowerShell -Executionpolicy Bypass -File "%Bin%\ConvertReg.ps1" "%CustomRegistry%" "%Temp%\CustomRegistry"
    echo.
    echo.-------------------------------------------------------------------------------
    echo.####Importing Custom Registry Settings from Registry File######################
    echo.-------------------------------------------------------------------------------
    
    Make sure importing the registry works without using the Toolkit, since some reg keys won't work offline image.

     
  9. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,487
    210
    Use DISM to remove the VP9 from all users and then try integrating the new version.

     
  10. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,651
    3,398
    60
    #20851 inTerActionVRI, Oct 15, 2021
    Last edited: Oct 15, 2021
    Take a look at the "Bin\ConvertReg.ps1" conversion Toolkit PowerShell Script, I have never encountered problems in *.ps1 file.

    I even helped @Bira to customize for his script.

    For you to test whether the conversion is correct, you can take a test, starting the import of a reg file with CurrentControlSet .
    Go to the "Toolkit\Temp", which will be your converted files there.
    Note: The files will be deleted during the closing of the toolkit. In the final cleaning.

    To make a facilitated, I will make available the script that is already ready, this was in pt-BR.
    I was translating now to en-US.

    EDIT: During the time we are preparing a message, when posting, MSMG had already answered. :rolleyes::eek::D
     

    Attached Files:

  11. graver.x

    graver.x MDL Senior Member

    Jan 18, 2020
    342
    476
    10
    #20852 graver.x, Oct 15, 2021
    Last edited: Oct 15, 2021
    MSMG,
    In my work, I have also repeatedly encountered a problem when installing the OS - BSOD "CONFIG INITIALIZATION FAILED" after integrating Service settings into the Toolkit using registry files containing CurrentControlSet. It's true. At the time, I did not immediately understand this, having spent a lot of time on additional testing, installation, looking for the reason in the components I removed. (You know that I am additionally experimenting with the Dism list).
    But during testing, I realized that it wasn't about the components, and I tried to replace all the CurrentControlSet with ControlSet001 in all the Service settings. It helped immediately.
    The last time I encountered this was quite recently, working in Tollkit one of the penultimate versions with build 22000.160. (You haven't added ToolkitHelper support yet. I worked with the Dism list, and did not delete the Windows Defender component packages, but decided to disable it in a cardinal way, first disabling its services using registry tweaks, and then adding commands to remove these and some other unwanted Services in SetupComplete.cmd.
    At the same time, I already knew about the possible consequences, I just forgot to replace CurrentControlSet with ControlSet001 in tweaks.
    As a result, the BSOD "CONFIG INITIALIZATION FAILED" was also received at the installation stage, after a reboot.
    Immediately guessing the reason and replacing all CurrentControlSet with ControlSet001, I got a workable image.
    I will combine all the Service settings integrated by me into one file so that it is more convenient for you to view:
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\WMI\Autologger\AutoLogger-Diagtrack-Listener]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\WMI\Autologger\Circular Kernel Context Logger]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Diagnostics\Performance]
    "DisableDiagnosticTracing"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\diagnosticshub.standardcollector.service]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\diagsvc]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\DiagTrack]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\fhsvc]
    "Start"=dword:00000004
    
    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\fhsvc\Parameters]
    
    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\fhsvc\Security]
    
    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\fhsvc\TriggerInfo]
    
    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\fhsvc\TriggerInfo\0]
    
    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\fhsvc\TriggerInfo\1]
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Sense]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\TroubleshootingSvc]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WaaSMedicSvc]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WacomPen]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WbioSrvc]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdFilter]
    "Start"=dword:00000004
    
    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdFilter\Instances]
    
    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdFilter\Instances\WdFilter Instance]
    
    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdFilter\Security]
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdiServiceHost]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdiSystemHost]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdNisDrv]
    "Start"=dword:00000004
    
    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdNisDrv\Security]
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdNisSvc]
    "Start"=dword:00000004
    
    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdNisSvc\Parameters]
    
    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WdNisSvc\Security]
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Wecsvc]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WinDefend]
    "Start"=dword:00000004
    
    [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WinDefend\Security]
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\wscsvc]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WSearch]
    "Start"=dword:00000004
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SecurityHealthService]
    "Start"=dword:00000004
    
    Although I know that Toolkit uses all the necessary tools to get elevated rights, I still run Start.cmd in my work with the help of current versions of NSudo.
     
  12. graver.x

    graver.x MDL Senior Member

    Jan 18, 2020
    342
    476
    10
  13. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,651
    3,398
    60
    #20854 inTerActionVRI, Oct 15, 2021
    Last edited: Oct 15, 2021
    if %HostBuild% lss 1903 (
    for /f "tokens=3 delims= " %%k in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ReleaseId" ^| find "REG_SZ"') do (set HostDisplayVersion=%%k)
    )
    if %HostBuild% geq 1903 (
    for /f "tokens=3 delims= " %%k in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "DisplayVersion" ^| find "REG_SZ"') do (set HostDisplayVersion=%%k)
    )
    What would be the correct Hostbuild for this condition?
    1903 = 18362?
    Or would it be 19043?
    It was missing the quotation marks.


    At that moment, is it like that?
    %ToolKitHelper% %DefaultIndexNo% "ManualSetup"

    Or should it be like this:
    %ToolKitHelper% "%InstallMount%\%DefaultIndexNo%" "ManualSetup"

    This works like this:
    if exist "%DVD%\sources\appraiserres.dll" move "%DVD%\sources\appraiserres.dll" "%DVD%\sources\appraiserres.dll.bak"
    and, like this:
    if exist "%DVD%\sources\appraiserres.dll" ren "%DVD%\sources\appraiserres.dll" "appraiserres.dll.bak"

    But... Using REN command and putting the full path to the original file name and full path for the new name does not work.
    if exist "%DVD%\sources\appraiserres.dll" ren "%DVD%\sources\appraiserres.dll" "%DVD%\sources\appraiserres.dll.bak"

    EDITED
     
  14. DennyAmaro

    DennyAmaro MDL Junior Member

    Apr 25, 2018
    63
    21
    0
    Yes, is for offline image. I test in my computer and it works.
    I will attach the reg file, so you can see if I'm doing something wrong
     

    Attached Files:

  15. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,651
    3,398
    60
    #20856 inTerActionVRI, Oct 15, 2021
    Last edited: Oct 25, 2021
    For all deprovisioned apps that you used *. I believe it will not work. You have to put the full name of each app.

    I think you want to remove them.
    Then there was a signal "-".
    from
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned]
    to
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned]

    So it will remove everything, no need to put the other lines for each app.

    It does not make sense to keep keys without values, in the reg file, only makes sense if it is to delete the keys. And in case you want to delete just add the signal "-" as the example above.

    EDIT: Except only in this case, for Apps lock, inserting them in the "Deprovisioned" key.
     
  16. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,651
    3,398
    60
    @DennyAmaro ,


    Sorry...

    I was doing an inplace upgrade here and I was thinking about it. I just finished, I came here to report.


    So...
    For deprovisioned, it makes sense to use the keys without values.

    I traveled in my thoughts here. That means I did not make sense, hehehe.



    But still, you will have to put each app with there respective versions (full names).
     
  17. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,651
    3,398
    60
    @MSMG,
    Added HideWidgetsIcon
    Code:
    if "%SelectedSourceOS%" equ "w11" (
       echo.  [A]   Disable Windows 11 Installer Hardware Check
       echo.  [B]   Disable Cortana App
       echo.  [C]   Hide Taskbar Chat Icon
       echo.  [D]   Hide Taskbar Task View Icon
       echo.  [E]   Hide Taskbar Meet Now Icon
       echo.  [F]   Hide Taskbar Widget Icon
       echo.  [G]   Hide Taskbar News and Interests
       echo.  [H]   Disable Automatic Driver Updates through Windows Update
       echo.  [I]   Disable Automatic Downloading and Installing 3rd Party Apps
       echo.  [J]   Disable Windows Defender
       echo.  [K]   Disable Windows Firewall
       echo.  [L]   Disable Windows SmartScreen
       echo.  [M]   Disable Automatic Windows Upgrade
       echo.  [N]   Disable Windows Update
       echo.  [O]   Disable Microsoft Reserved Storage Space for Windows Updates
       echo.  [P]   Force .NET Programs to Use Newest .NET Framework
       echo.  [Q]   Enable Windows Photo Viewer
       echo.  [R]   Enable Fraunhofer MP3 Professional Codec
       echo.  [S]   Enable DISM Image Cleanup with Full ResetBase
       echo.
       echo.  [1]   All Tweaks
       echo.  [X]   Go Back
       echo.===============================================================================
       choice /C:ABCDEFGHIJKLMNOPQRS1X /N /M "Enter Your Choice : "
       if errorlevel 21 goto :CustomizeMenu
       if errorlevel 20 set "Tweak=AllTweaks"
       if errorlevel 19 set "Tweak=EnableFullResetBase"
       if errorlevel 18 set "Tweak=EnableFMP3ProCodec"
       if errorlevel 17 set "Tweak=EnablePhotoViewer"
       if errorlevel 16 set "Tweak=ForceLatestNetFramework"
       if errorlevel 15 set "Tweak=DisableReservedStorage"
       if errorlevel 14 set "Tweak=DisableWindowsUpdate"
       if errorlevel 13 set "Tweak=DisableWindowsUpgrade"
       if errorlevel 12 set "Tweak=DisableWindowsSmartScreen"
       if errorlevel 11 set "Tweak=DisableWindowsFirewall"
       if errorlevel 10 set "Tweak=DisableWindowsDefender"
       if errorlevel 9  set "Tweak=Disable3RDPartyApps"
       if errorlevel 8  set "Tweak=DisableDriversUpdates"
       if errorlevel 7  set "Tweak=HideNewsAndInterests"
       if errorlevel 6  set "Tweak=HideWidgetIcon"
       if errorlevel 5  set "Tweak=HideMeetNowIcon"
       if errorlevel 4  set "Tweak=HideTaskViewIcon"
       if errorlevel 3  set "Tweak=HideChatIcon"
       if errorlevel 2  set "Tweak=DisableCortanaApp"
       if errorlevel 1  set "Tweak=DisableW11InstHardwareCheck"
    )
    
    added
    if "%Tweak%" equ "HideWidgetsIcon" echo.####Applying Hide Taskbar Widgets Icon Tweak###################################

    Change from:
    Code:
           if "%Tweak%" equ "HideChatIcon" Reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d "0" /f >nul
    
    to
    Code:
           if "%Tweak%" equ "HideChatIcon" (
               Reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d "0" /f >nul
               Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\Windows Chat" /v "ChatIcon" /t REG_DWORD /d "3" /f >nul
           )
    
    and from
    Code:
           if "%Tweak%" equ "HideWidgetsIcon" (
               Reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarDa" /t REG_DWORD /d "0" /f >nul
               Reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\Windows Chat" /v "ChatIcon" /t REG_DWORD /d "3" /f >nul
           )
    
    to
    Code:
           if "%Tweak%" equ "HideWidgetsIcon" (
               Reg add "HKLM\TK_NTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarDa" /t REG_DWORD /d "0" /f >nul
           )
    
     
  18. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,487
    210
    Will check out, it seems the ConvertReg.ps1 needs to run twice for reg files containing CurrentControlSet.

     
  19. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,411
    15,487
    210
    If the HostBuild is less than 1903 then it will use the ReleaseId value and if it is greater than and equal to 1903 it will use DisplayVersion.

    or you can change it like this

    Code:
    if "%HostBuild%" leq "1809" (
        for /f "tokens=3 delims= " %%k in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ReleaseId" ^| find "REG_SZ"') do (set HostDisplayVersion=%%k)
    )
    if "%HostBuild%" geq "1903" (
        for /f "tokens=3 delims= " %%k in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "DisplayVersion" ^| find "REG_SZ"') do (set HostDisplayVersion=%%k)
    )
    

    For Manual Setup removal both will work but have chosen the default index.

    For renaming you need the current directory to be the parent of the directory you are renaming otherwise it won't work that's why used the move which does the same function.