Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
imalwinkunjumon opened this issue Jan 13, 2025 · 5 comments

Comments

@imalwinkunjumon
Copy link

imalwinkunjumon commented Jan 13, 2025

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

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 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

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@imalwinkunjumon imalwinkunjumon changed the title Class not registered-Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG [WSL] Error: "Class not registered" (Error Code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG) Jan 20, 2025
Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 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

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@imalwinkunjumon imalwinkunjumon changed the title [WSL] Error: "Class not registered" (Error Code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG) [WSL Error: "Class not registered" (Error Code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG)] Jan 20, 2025
Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 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

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Copy link

Diagnostic information
Issue was edited and new log file was found: https://github.com/user-attachments/files/18479062/WslLogs-2025-01-21_09-31-20.zip
Detected appx version: 2.3.26.0
Detected user visible error: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG

Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant