mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-02-05 23:40:10 +00:00
Rework ADK detection
This commit is contained in:
11
functions/microwin/Microwin-TestKitsRootPaths.ps1
Normal file
11
functions/microwin/Microwin-TestKitsRootPaths.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
function Microwin-TestKitsRootPaths {
|
||||
param (
|
||||
[Parameter(Mandatory = $true, Position = 0)] [string]$adkKitsRootPath,
|
||||
[Parameter(Mandatory = $true, Position = 1)] [string]$adkKitsRootPath_WOW64Environ
|
||||
)
|
||||
|
||||
if (Test-Path "$adkKitsRootPath") { return $true }
|
||||
if (Test-Path "$adkKitsRootPath_WOW64Environ") { return $true }
|
||||
|
||||
return $false
|
||||
}
|
||||
Reference in New Issue
Block a user