Skip to content

Conversation

@D3-LucaPiombino
Copy link

@D3-LucaPiombino D3-LucaPiombino commented Mar 30, 2025

Summary of the Pull Request

The installer will fail on windows boxes where WSL has been installed via the app store/OOB and not as a windows features.
This is because the Linux kernel is placed in a different location for ap store installations and the wsl_update_x64.msi installer will not recognize that WSL is installed.

This update the configuration manifest to use the "new" way to install/update WSL (Windows 10 version 2004 Build >= 19041 or Windows 11) instead of installing it manually via windows features + the msi (wsl_update_x64.msi)

Source: https://learn.microsoft.com/en-us/windows/wsl/install#install-wsl-command

Detailed Description of the Pull Request / Additional comments

Unfortunately we need to make this optional as it's not trivial to handle all possible use cases correctly.

Note that this will only work if the user either

  • Did not install WSL yet
  • Already installed WSL from the app store
  • Already installed WSL using wsl.exe --install ...

It will fail if the user already installed WSL using the "inbox" way (enabled through windows features).
In this case the wsl.exe CLI will not have the --no-distribution and --web-download parameters.

If the user experience issues, it can uncheck the WSL update steps and then can update/install WSL himself without being blocked.

Update the configuration manifest to use the "new" way to install/update WSL (Windows 10 version 2004 Build >= 19041 or Windows 11) instead of installing it manually via windows features + the msi (`wsl_update_x64.msi`)
> Source: https://learn.microsoft.com/en-us/windows/wsl/install#install-wsl-command

Unfortunately we need to make this optional as it's not trivial to handle all possible
use cases correctly.

Note that this will only work if the user either
- Did not install WSL yet
- Already installed WSL from the app store
- Already installed WSL using `wsl.exe --install ...`

It will fail if the user already installed WSL using the "inbox" way (enabled through
windows features).
In this case the wsl.exe CLI will not have the --no-distribution and --web-download parameters.

If the user experience issues, it can uncheck the WSL update steps and then can update/install WSL himself without being blocked.
@D3-LucaPiombino D3-LucaPiombino added the bug Something isn't working label Mar 30, 2025
@D3-LucaPiombino D3-LucaPiombino self-assigned this Mar 30, 2025
@D3-LucaPiombino D3-LucaPiombino merged commit 0e43d07 into main Mar 30, 2025
3 checks passed
@D3-LucaPiombino D3-LucaPiombino deleted the fix/wsl_install_app_store branch March 30, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants