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
- Open PowerShell as Administrator.
- Run the command:
- 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
- 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
- Updated WSL:
- Re-registered MSI installer:
- Ran system file and image repairs:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
- Verified Windows version compatibility.
Logs and Debugging Information
The logs from the diagnostic script have been attached to this issue for review.
- 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
- 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
Title
[WSL Error: "Class not registered" (Error Code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG)]
Description
While attempting to install WSL using the
wsl.exe --installcommand, the following error message is displayed:This prevents WSL from being installed or used on the system, effectively blocking the ability to run Linux distributions via WSL.
Steps to Reproduce
Example:
PS> wsl.exe --install Class not registered Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREGExpected 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:
System Details
Troubleshooting Steps Attempted
regsvr32 MSI.DLLLogs and Debugging Information
The logs from the diagnostic script have been attached to this issue for review.
collect-wsl-logs.ps1script in an administrative PowerShell prompt: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