provide additional user feedback with consistent style

This commit is contained in:
Baipyrus 2024-11-25 12:00:30 +01:00
parent 0da955a90d
commit 7aa94ca8e2
2 changed files with 5 additions and 4 deletions

View File

@ -15,7 +15,7 @@ function InstallWinget
Invoke-WebRequest $url -OutFile $setup
}
Write-Host "Installing WinGet app package ..."
Write-Host "Installing WinGet app package..."
Add-AppxPackage -Path $setup
}

View File

@ -1,8 +1,9 @@
function InstallWSL
{
# Reference: https://learn.microsoft.com/en-us/windows/wsl/install-manual
Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -All -NoRestart
Write-Host "Enabling and downloading required Windows Features..."
Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All -NoRestart | Out-Null
Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -All -NoRestart | Out-Null
Write-Host "Installing WSL2..."
wsl.exe --install --no-distribution
wsl.exe --set-default-version 2
}