Adds a "Verbose" checkbox to the UI, allowing users to enable write-verbose output from the underlying build script.

This helps in troubleshooting the FFU build process by providing more detailed output to the console. The verbose setting is saved to and loaded from the configuration file.
This commit is contained in:
rbalsleyMSFT
2025-07-09 09:50:26 -07:00
parent 4ef7c2fb0b
commit f9a8e3149f
5 changed files with 18 additions and 1 deletions
+11 -1
View File
@@ -121,7 +121,17 @@ $btnRun.Add_Click({
$txtStatus.Text = "Office Configuration XML file copied successfully."
}
$txtStatus.Text = "Executing BuildFFUVM script with config file..."
& "$PSScriptRoot\BuildFFUVM.ps1" -ConfigFile $configFilePath
# Prepare parameters for splatting
$buildParams = @{
ConfigFile = $configFilePath
}
if ($config.Verbose) {
$buildParams['Verbose'] = $true
}
& "$PSScriptRoot\BuildFFUVM.ps1" @buildParams
$txtStatus.Text = "FFU build completed successfully."
}
catch {