mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 11:21:46 +00:00
provide additional user feedback with consistent style
This commit is contained in:
parent
0da955a90d
commit
7aa94ca8e2
@ -15,7 +15,7 @@ function InstallWinget
|
|||||||
Invoke-WebRequest $url -OutFile $setup
|
Invoke-WebRequest $url -OutFile $setup
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Installing WinGet app package ..."
|
Write-Host "Installing WinGet app package..."
|
||||||
Add-AppxPackage -Path $setup
|
Add-AppxPackage -Path $setup
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
function InstallWSL
|
function InstallWSL
|
||||||
{
|
{
|
||||||
# Reference: https://learn.microsoft.com/en-us/windows/wsl/install-manual
|
Write-Host "Enabling and downloading required Windows Features..."
|
||||||
Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All -NoRestart
|
Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All -NoRestart | Out-Null
|
||||||
Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -All -NoRestart
|
Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -All -NoRestart | Out-Null
|
||||||
|
Write-Host "Installing WSL2..."
|
||||||
wsl.exe --install --no-distribution
|
wsl.exe --install --no-distribution
|
||||||
wsl.exe --set-default-version 2
|
wsl.exe --set-default-version 2
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user