Skip to content

WinForge v2.0.1 — Reliability, Console Encoding & Safety Hotfix

Choose a tag to compare

@rodvay rodvay released this 23 Nov 16:07
· 4 commits to main since this release

WinForge v2.0.1 — Reliability, Encoding & Safety Hotfix

A comprehensive multi-pass audit & stability update ensuring rock-solid behavior across English, Turkish (tr-TR), and Simplified Chinese (zh-CN) Windows 10/11 installations.

What's Fixed

  • Zero Console Mojibake & sfc /scannow UTF-16LE Fix: Automatically selects the exact console encoding per tool — UTF-16LE for sfc.exe (eliminating NUL-truncated output), UTF-8 for winget / PowerShell, and native Windows OEM codepage (CP936 GBK on zh-CN, CP857 on tr-TR, CP437 on en-US) for DISM, net, netsh, ipconfig, powercfg, bcdedit, and w32tm.
  • Clean PowerShell Execution & Zero CLIXML Noise: Switched Appx debloat, DNS, Restore Point, WinGet repair, and Defender/Store queries to Base64 UTF-16LE -EncodedCommand with -OutputFormat Text and $ProgressPreference = 'SilentlyContinue', eliminating quoting issues, Chinese/Turkish adapter name errors, and #< CLIXML stderr noise.
  • Idempotent 1-Click DNS Switching: Replaced brittle netsh DHCP/static calls with Set-DnsClientServerAddress (with netsh ... validate=no fallback) so switching to DHCP when already on DHCP or switching adapters with non-ASCII names (e.g. 以太网) succeeds cleanly and reports accurate status.
  • Zero-Deadlock Async PowerShell Status Probe: Fixed potential stdout/stderr pipe deadlock and enforced real process timeout/kill inside AdvancedEngine.RunQuickPowerShell.
  • Safe Windows Update Reset Cancellation: Wrapped Reset Windows Update (wu_reset) in try/finally so clicking Stop mid-operation always restarts cryptsvc, bits, and wuauserv.
  • Smarter Tweaks Presets, Mutual Exclusion & Win11 Detection:
    • Revert All Defaults now preserves stock Windows Game Mode (DefaultWindowsState = true).
    • Switching from Desktop Preset to Laptop Preset clears Desktop-only pending changes (Disable Hibernation).
    • High Performance and Ultimate Performance power plans are now mutually exclusive.
    • NumLock on Startup recognizes both classic "2" and Windows 11 "2147483650"; Sticky Keys accurately checks bit 4 ((flags & 4) == 0).
    • Clicking + Restore Point without admin rights now displays a clear elevation hint instead of staying silent.
  • Zero GDI Leaks & Clean Concurrency: Tracked/disposed _fSearch font cleanly, made _cancelFlag volatile, and verified 0 GDI handle delta across 12 full tab renders and 30 rapid EN/TR/ZH switches.

Verification

  • 60 / 60 WinGet Package IDs verified live against Microsoft's WinGet repository.
  • 41 / 41 automated engine, sandbox HKCU .reg backup, encoding, timeout, state-machine & GDI tests passed (0 failures).
  • 7 / 7 live GUI launches across all 6 tabs (EN/TR/ZH + non-demo) verified.

SHA-256 Checksum

3478AF320405D37B80BDC090B7A352C4EAE091CCF80758F7E89E9172605B6F22  WinForge.exe