mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
7231f620c8
Enhances the driver installation process to be more resilient by allowing non-critical driver injection failures to not halt the entire deployment. Key improvements include: - Adds `IgnoreExitCode` and `PassThruExitCode` parameters to the process invocation function, enabling callers to handle non-zero exit codes without throwing exceptions. - Modifies driver injection logic (both WIM and folder-based) to capture exit codes and log warnings instead of failing the deployment when drivers fail to inject. - Automatically collects and preserves diagnostic logs (dism.log and setupapi.offline.log) to the USB drive when driver installation encounters issues, aiding post-deployment troubleshooting. - Wraps cleanup operations in try-catch blocks to ensure temporary resources are released even if unmounting or deletion fails. - Fixes code formatting inconsistencies and indentation throughout the script for improved readability. This approach prioritizes deployment completion while preserving critical diagnostic information when driver-related issues occur.