You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(agent): improve MSI installation handling and Hub Service updates
This commit addresses several issues with the updater's MSI installation and Hub Service update process:
1. Strip UTF-8 BOM from update.json parsing
- Some editors add UTF-8 BOM (0xEF 0xBB 0xBF) which caused parse failures
- Now strips BOM before JSON deserialization if present
2. Validate MSI exit codes properly
- Previously only checked if msiexec launched, not if it succeeded
- Now validates exit codes: 0 = success, 3010/1641 = success with reboot
(logged as warning since our installers shouldn't require reboot)
- Other codes properly treated as failures
- Applied to both install and uninstall operations
3. Hub Service installer parameter improvements
- Removed P.SERVICESTART parameter for Hub Service (not supported)
- Added ADDLOCAL parameter generation based on installed services
- Maps service names to MSI features: PAM, Encryption, Reporting
- Preserves user's feature selection during updates
4. Enhanced service restart logic for Hub Service
- Gateway: only restarts services with manual startup that were running
- Hub Service: restarts all services that were running (since we can't
control startup mode via installer parameters)
These changes ensure Hub Service updates preserve the installed features and properly handle installation success/failure cases.
0 commit comments