Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
Depedency
Browse files Browse the repository at this point in the history
  • Loading branch information
MC874 authored Jan 13, 2022
1 parent dddbc81 commit 723647f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Create AppModelUnlock if it doesn't exist, required for enabling Developer Mode
$RegistryKeyPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock"
if (-not(Test-Path -Path $RegistryKeyPath)) {
New-Item -Path $RegistryKeyPath -ItemType Directory -Force
}

# Add registry value to enable Developer Mode
New-ItemProperty -Path $RegistryKeyPath -Name AllowDevelopmentWithoutDevLicense -PropertyType DWORD -Value 1 -Force
Enable-WindowsOptionalFeature -FeatureName Microsoft-Windows-Subsystem-Linux -Online -All -LimitAccess -NoRestart

0 comments on commit 723647f

Please sign in to comment.