Test-WingetHealth verifies winget --version and source list exit 0.
If KO, Invoke-WingetReinstall removes the existing App Installer AppX
and reinstalls from the provisioned package, then re-checks health.
Reinstall requires admin rights; non-admin sessions exit with a clear
error message.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
winget exit code -1978335189 (no applicable update) is now handled
as a non-error for both Firefox and other packages. Summary shows
"Deja a jour" in green instead of failing.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add --source winget to winget install call so the package is resolved
only from the winget source, avoiding the msstore TLS failure.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Each script is now self-contained and no longer dot-sources
Initialize-Winget.ps1. The helper file is kept as reference.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The script no longer spawns Install-Firefox.ps1 as a subprocess.
Firefox functions are copied directly and called in-process, which
removes the Start-Process indirection and the duplicate
Initialize-Winget call. Admin check added for the Firefox path.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Force .NET garbage collection before reg.exe unload to release
open RegistryKey handles left by PowerShell registry cmdlets.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Initialize-Winget.ps1 refreshes PATH, re-registers App Installer and
falls back to the provisioned package before exiting with a Store link.
All scripts that call winget now dot-source this helper instead of
failing on a missing winget.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add FirefoxHome policy to hide top sites, sponsored shortcuts, and
Pocket articles on the new tab page for all profiles.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>