Refactor Win32 app installation to process sources separately

Updates the Win32 app installation script to handle WinGet-sourced apps and user-defined apps in two separate batches instead of merging them. This ensures all WinGet apps are installed before any user-defined apps.

The core installation logic is extracted into a reusable function, improving script structure and readability.

Additionally, removes a pause command and a redundant console message from other scripts to improve automation flow.
This commit is contained in:
rbalsleyMSFT
2025-07-25 18:35:19 -07:00
parent b4f1985c99
commit 30c7f6f705
3 changed files with 87 additions and 66 deletions
@@ -682,7 +682,6 @@ if ($null -eq $DriverSourcePath) {
}
else {
WriteLog "Drivers folder not found at $DriversPath. Skipping driver installation."
Write-Host "Drivers folder not found at $DriversPath. Skipping driver installation."
}
}
#Partition drive