Add clarifying comments to Install-ADK function

This commit is contained in:
Zehadi Alam
2024-03-18 19:45:08 -04:00
parent ab86c5e1ac
commit 662572e5e5
+2
View File
@@ -502,11 +502,13 @@ function Install-ADK {
throw "Failed to retrieve URL for $ADKOption. Please manually install it." throw "Failed to retrieve URL for $ADKOption. Please manually install it."
} }
# Select the installer based on the ADK option specified
$installer = @{ $installer = @{
"Windows ADK" = "adksetup.exe" "Windows ADK" = "adksetup.exe"
"WinPE add-on" = "adkwinpesetup.exe" "WinPE add-on" = "adkwinpesetup.exe"
}[$ADKOption] }[$ADKOption]
# Select the feature based on the ADK option specified
$feature = @{ $feature = @{
"Windows ADK" = "OptionId.DeploymentTools" "Windows ADK" = "OptionId.DeploymentTools"
"WinPE add-on" = "OptionId.WindowsPreinstallationEnvironment" "WinPE add-on" = "OptionId.WindowsPreinstallationEnvironment"