mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
feat: Add progress reporting to FFU build process
Introduces a progress reporting system to provide real-time feedback during the FFU build. This includes adding a progress bar and status messages to the UI, which are updated at key stages of the build process. - Adds a new `Set-Progress` function to log progress updates. - Integrates `Set-Progress` calls throughout the main build script. - Updates the UI to parse progress logs and update the progress bar and status text. - Improves error reporting in the UI to display more detailed failure reasons. - Corrects a typo in the `LogicalSectorSizeBytes` parameter name in documentation and log messages.
This commit is contained in:
@@ -716,13 +716,13 @@ if ($dismExitCode -ne 0) {
|
||||
$errorMessage = "Failed to apply FFU. LastExitCode = $dismExitCode."
|
||||
if ($dismExitCode -eq 1393) {
|
||||
WriteLog "Failed to apply FFU - LastExitCode = $dismExitCode"
|
||||
WriteLog "This is likely due to a mismatched LogicalSectorByteSize"
|
||||
WriteLog "This is likely due to a mismatched LogicalSectorSizeBytes"
|
||||
WriteLog "BytesPerSector value from Win32_Diskdrive is $BytesPerSector"
|
||||
if ($BytesPerSector -eq 4096) {
|
||||
WriteLog "The FFU build process by default uses a 512 LogicalSectorByteSize. Rebuild the FFU by adding -LogicalSectorByteSize 4096 to the command line"
|
||||
WriteLog "The FFU build process by default uses a 512 LogicalSectorSizeBytes. Rebuild the FFU by adding -LogicalSectorSizeBytes 4096 to the command line"
|
||||
}
|
||||
elseif ($BytesPerSector -eq 512) {
|
||||
WriteLog "This FFU was likely built with a LogicalSectorByteSize of 4096. Rebuild the FFU by adding -LogicalSectorByteSize 512 to the command line"
|
||||
WriteLog "This FFU was likely built with a LogicalSectorSizeBytes of 4096. Rebuild the FFU by adding -LogicalSectorSizeBytes 512 to the command line"
|
||||
}
|
||||
$errorMessage += " This is likely due to a mismatched logical sector size. Check logs for details."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user