Improve Windows installer reliability and user experience#12
Merged
Conversation
This PR significantly improves the Windows installation experience by: **Major Improvements:** - Replace problematic nrfjprog with Nordic nrfutil (no vcredist140 issues) - Add reboot detection and graceful handling (exit code 3010) - Implement smart uv path detection with multiple fallback methods - Add comprehensive network error handling with helpful troubleshooting - Add automated SEGGER J-Link installation with silent mode **Windows-Specific Changes:** - Added CheckPendingReboot() to detect pending system reboots - Added RebootRequiredError for proper error handling - Implemented findUVPath() with 4 different search methods - Added downloadFile() utility for downloading installers - Switched from nrfjprog to nrfutil (avoids vcredist140 corruption) - Improved error messages with actionable troubleshooting steps **Cross-Platform Changes:** - Added CheckPendingReboot() stub methods to Darwin/Linux (interface compliance) - Updated Installer interface to include CheckPendingReboot() - Added reboot check on installer startup - Improved dependency installation error handling **Build System:** - Added build-windows, build-linux, build-darwin, build-darwin-arm targets - Added build-all target for multi-platform builds - Added release-windows target for optimized builds - Updated help documentation **Bug Fixes:** - Fixed exit code 3010 being treated as failure (it means "reboot required") - Fixed PATH not updating after Chocolatey installations - Fixed PowerShell corruption issues from vcredist140 - Fixed network error handling for GitHub downloads **Documentation:** - Updated README with automated installation details - Added clear guidance for Windows users - Improved installation instructions Fixes HUB-2882
Pass deviceName into PrintUniflashCompletionBanner and fix a ui.PrintInfo typo so the repo builds cleanly.
solidspark
approved these changes
Dec 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR significantly improves the Windows installation experience by replacing problematic dependencies and adding robust error handling.
Major Improvements
Windows-Specific Changes
CheckPendingReboot()to detect pending system rebootsRebootRequiredErrorfor proper error handlingfindUVPath()with 4 different search methodsdownloadFile()utility for downloading installersCross-Platform Changes
CheckPendingReboot()stub methods to Darwin/Linux (interface compliance)Installerinterface to includeCheckPendingReboot()Build System Improvements
build-windows,build-linux,build-darwin,build-darwin-armtargetsbuild-alltarget for multi-platform buildsrelease-windowstarget for optimized buildsBug Fixes
Testing
Fixes HUB-2882