From cf885e736373ef5311f640b2d054fe2a54fd7882 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 25 Nov 2024 11:54:14 +0100 Subject: [PATCH] using wsl install without distro for older versions --- util/wsl.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/wsl.psm1 b/util/wsl.psm1 index 5e7e59a..47fa620 100644 --- a/util/wsl.psm1 +++ b/util/wsl.psm1 @@ -3,7 +3,7 @@ function InstallWSL # Reference: https://learn.microsoft.com/en-us/windows/wsl/install-manual dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart - wsl.exe --update + wsl.exe --install --no-distribution wsl.exe --set-default-version 2 }