Skip to content

[WSL Error: "Class not registered" (Error Code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG)] #12459

Description

Title

[WSL Error: "Class not registered" (Error Code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG)]


Description

While attempting to install WSL using the wsl.exe --install command, the following error message is displayed:

Class not registered  
Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG

This prevents WSL from being installed or used on the system, effectively blocking the ability to run Linux distributions via WSL.


Steps to Reproduce

  1. Open PowerShell as Administrator.
  2. Run the command:
    wsl.exe --install
  3. Observe the error message.

Example:

PS> wsl.exe --install
Class not registered
Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG

Expected Behavior

WSL should install without any errors, enabling the use of Linux distributions on Windows.


Actual Behavior

The installation process fails with the following error:

Class not registered  
Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG

System Details

  • Operating System: Windows 11 Home 24H2
  • Version/Build: Version 24H2 (OS Build 26100.2605)
  • Software Version: WSL (not installed)
  • PowerShell Version: 5.1.26100.2161
  • Other Relevant Details: Virtualization is enabled.

Troubleshooting Steps Attempted

  1. Enabled required Windows features using DISM:
    dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart  
    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart  
  2. Updated WSL:
    wsl --update  
  3. Re-registered MSI installer:
    regsvr32 MSI.DLL  
  4. Ran system file and image repairs:
    sfc /scannow  
    DISM /Online /Cleanup-Image /RestoreHealth  
  5. Verified Windows version compatibility.

Logs and Debugging Information

The logs from the diagnostic script have been attached to this issue for review.

  1. Download and execute the collect-wsl-logs.ps1 script in an administrative PowerShell prompt:
    Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1  
    Set-ExecutionPolicy Bypass -Scope Process -Force  
    .\collect-wsl-logs.ps1  
  2. Attach the generated log file to this issue.

Attached Log File:
WslLogs-2025-01-21_09-31-20.zip


Additional Context

This issue prevents the installation and usage of WSL, effectively blocking access to Linux environments on this system. Any guidance or fixes would be appreciated.


Similar Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions