blob: 2d7733c0beccf471ec59435dc1590008888dcfc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Turning on developer mode.
#
# In order to run auto tests for UWP, we have to enable developer mode on Windows 10 machines.
# https://docs.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development
if ([environment]::Is64BitOperatingSystem) {
$bitness = "/reg:64"
} else {
$bitness = "/reg:32"
}
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /V AllowDevelopmentWithoutDevLicense /T REG_DWORD /D 1 /F $bitness
if ($LastExitCode -ne 0) {
Write-Host "Could not enable Developer Mode."
exit 1
}
|