mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Runs builds in pwsh process for reliable cancel
Improves UI responsiveness and interactive behavior by running build/cleanup in a separate PowerShell process instead of background jobs. Fixes cancellation reliability by terminating the full process tree (including child tools) and using process exit codes for success/failure reporting. Reduces noisy output by suppressing type-add return values and standardizes cleanup argument passing to avoid switch/boolean binding issues.
This commit is contained in:
@@ -584,7 +584,7 @@ public static extern uint GetPrivateProfileSection(
|
||||
uint nSize,
|
||||
string lpFileName);
|
||||
'@
|
||||
Add-Type -MemberDefinition $definition -Namespace Win32 -Name Kernel32 -PassThru
|
||||
Add-Type -MemberDefinition $definition -Namespace Win32 -Name Kernel32 -PassThru | Out-Null
|
||||
|
||||
#Check if Hyper-V feature is installed (requires only checks the module)
|
||||
$osInfo = Get-CimInstance -ClassName win32_OperatingSystem
|
||||
|
||||
Reference in New Issue
Block a user