microsoft / WSL-DistroLauncher

Sample/reference launcher app for WSL distro Microsoft Store packages.
MIT License
1.67k stars 517 forks source link

WslRegisterDistribution failed with error: 0x80070057 #119

Closed D3vil0p3r closed 1 year ago

D3vil0p3r commented 1 year ago

Hello, I followed the guide and I was able to get the final appx also with trusted certificate.

When I double click on DistroLauncher-Appx_1.0.0.0_x64.appx a window is opened with Install button. I click there and it installs. After that, I launch the Distro and the terminal opened with the following message:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070057
Error: 0x80070057 The parameter is incorrect.

Press any key to continue...

Is this error related to a bug of launcher.exe? How can I solve it?

I attach the logs. WslLogs-2023-03-11_04-10-30.zip

D3vil0p3r commented 1 year ago

Solved: the issue is related to the DistributionInfo.h in Name. It must not contain a string with space.