Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
fix(msi): remove appx dependency check
Browse files Browse the repository at this point in the history
this prevents some machines from installing

(cherry picked from commit d2d297a)
  • Loading branch information
mriedmann committed Apr 20, 2023
1 parent e69439e commit 06c247b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions msi/install/check.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ Set-StrictMode -Version 3

Add-Type -AssemblyName Microsoft.VisualBasic

if(((Get-ChildItem "HKCU:\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData") -match "MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe").count -eq 0) {
[Microsoft.VisualBasic.Interaction]::MsgBox("WSL2 not installed!`n`nCheck your windows-updates and run 'wsl --install --no-distribution' in an elevated shell, reboot and start this install again.", 'OKOnly,SystemModal,Critical', "DockerInWSL Installation Error") | Out-Null
throw "WSL2 not installed"
}

# Hotfix for https://github.com/microsoft/WSL/issues/7767
$wslHelpText = (((& wsl --help) -join ' ').ToCharArray() | % {$result = ""} { $result += ($_ | Where-Object { $_ -imatch "[ -a-z_]" }) } { $result })
if($wslHelpText.IndexOf("--import") -lt 0) {
Expand Down

0 comments on commit 06c247b

Please sign in to comment.