mirror of
https://github.com/actions/runner-images.git
synced 2025-12-27 20:25:26 +08:00
[Windows] Improve Visual Studio installation scripts to support Preview versions (#3850)
* Support Preview versions of Visual Studio * resolve comments * Fix test * fix tests
This commit is contained in:
@@ -2,7 +2,9 @@ Describe "WinAppDriver" {
|
||||
It "WinAppDriver directory exists" {
|
||||
Test-Path -Path "${env:ProgramFiles(x86)}\Windows Application Driver" | Should -BeTrue
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Developer Mode" {
|
||||
It "Developer Mode is enabled" {
|
||||
$path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock";
|
||||
Get-ItemProperty -Path $path | Select-Object -ExpandProperty "AllowDevelopmentWithoutDevLicense" | Should -Be 1
|
||||
|
||||
Reference in New Issue
Block a user