diff --git a/.gitlab-ci/windows/mesa_deps_test.ps1 b/.gitlab-ci/windows/mesa_deps_test.ps1 index 9badef06e10..5b23b90df4c 100644 --- a/.gitlab-ci/windows/mesa_deps_test.ps1 +++ b/.gitlab-ci/windows/mesa_deps_test.ps1 @@ -169,5 +169,16 @@ Expand-Archive -Path 'DXC.zip' -DestinationPath 'C:\DXC' # No more need to get dxil.dll from the VS install Copy-Item 'C:\DXC\bin\x64\*.dll' -Destination 'C:\Windows\System32' +Get-Date +Write-Host "Enabling developer mode" +# 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 + Get-Date Write-Host "Complete"