mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
44aa4d3a32
Introduces helper functions to create and remove SUBST drive mappings for driver folders, addressing potential issues with long file paths during driver injection. The new implementation: - Adds `Get-AvailableDriveLetter` to find an unused drive letter - Adds `New-DriverSubstMapping` to create a virtual drive mapping to the source folder - Adds `Remove-DriverSubstMapping` to clean up the mapping after use - Updates the driver injection workflow to use the mapped drive path instead of the original path - Wraps the operation in try-catch-finally to ensure cleanup occurs even on errors This approach mitigates issues with excessively long driver folder paths that could exceed command-line limits or cause path-related failures during DISM operations.