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

Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG #11497

Closed
1 of 2 tasks
malezjaa opened this issue Apr 22, 2024 · 10 comments
Closed
1 of 2 tasks

Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG #11497

malezjaa opened this issue Apr 22, 2024 · 10 comments
Labels
msix Installer issue.

Comments

@malezjaa
Copy link

Windows Version

Microsoft Windows [Version 10.0.22631.3447]

WSL Version

Doesn't work

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

When I try to install wsl command with wsl --install I get this error: Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG

Same with any other command

Expected Behavior

To install wsl

Actual Behavior

Error

Diagnostic Logs

No response

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 scipt will output the path of the log file once done.

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 wsl-gh-logs@microsoft.com 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.

@malezjaa
Copy link
Author

Logs
WslLogs-2024-04-22_21-42-43.zip

Copy link

The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.

Diagnostic information
Appx package is not installed
Found no WSL traces in the logs

@malezjaa
Copy link
Author

Get-WindowsOptionalFeature: C:\dev\collect-wsl-logs.ps1:56
Line |
  56 |  Get-WindowsOptionalFeature -Online > $folder/optional-components.txt
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Klasa niezarejestrowana.
Log collection is running. Please reproduce the problem and once done press any key to save the logs.
Saving logs...
100%  [>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>]
Logs saved in: C:\dev\WslLogs-2024-04-22_21-47-38.zip. Please attach that file to the GitHub issue.

@OneBlue
Copy link
Collaborator

OneBlue commented Apr 22, 2024

@malezjaa: Did you reproduce the issue while log collection was running ? There's no WSL traces in the logs.

/logs

@malezjaa
Copy link
Author

malezjaa commented Apr 23, 2024

I reproduced this error, I ran collection log again.
WslLogs-2024-04-23_08-39-50.zip

Copy link

Diagnostic information
Appx package is not installed
Detected user visible error: Wsl/CallMsi/REGDB_E_CLASSNOTREG
Detected user visible error: Wsl/CallMsi/REGDB_E_CLASSNOTREG
Detected user visible error: Wsl/CallMsi/REGDB_E_CLASSNOTREG
Detected user visible error: Wsl/CallMsi/REGDB_E_CLASSNOTREG
Detected user visible error: Wsl/CallMsi/REGDB_E_CLASSNOTREG
Detected user visible error: Wsl/CallMsi/REGDB_E_CLASSNOTREG

@OneBlue
Copy link
Collaborator

OneBlue commented Apr 23, 2024

Your WSL installation appears to be in a bad state. Can you try running the following command to reinstall WSL (elevated powershell) and see if that solves the issue?

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/triage/install-latest-wsl.ps1" -OutFile install-latest-wsl.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\install-latest-wsl.ps1
Diagnostic information
Appx package is not installed
Detected user visible error: Wsl/CallMsi/REGDB_E_CLASSNOTREG
Detected user visible error: Wsl/CallMsi/REGDB_E_CLASSNOTREG
Detected user visible error: Wsl/CallMsi/REGDB_E_CLASSNOTREG
Detected user visible error: Wsl/CallMsi/REGDB_E_CLASSNOTREG
Detected user visible error: Wsl/CallMsi/REGDB_E_CLASSNOTREG
Detected user visible error: Wsl/CallMsi/REGDB_E_CLASSNOTREG

@malezjaa
Copy link
Author

Thank you! It works

@icarobteles
Copy link

I have the same problem, I tried running the command and got the following error:

.\install-latest-wsl.ps1
You cannot call a method on a null expression.
No C:\Users\icaro\install-latest-wsl.ps1:10 caractere:5
+ if ($systeminfo.contains('x64'))
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : InvokeMethodOnNull

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

No branches or pull requests

3 participants