feat(agent): auto launch desktop app on install#1677
Conversation
Let maintainers know that an action is required on their side
|
There was a problem hiding this comment.
Pull request overview
This PR updates the Windows Agent MSI (WixSharp) to automatically launch the Desktop companion app for the currently installing user immediately after a non-silent first-time install, avoiding the need to log out/in to get the tray app running.
Changes:
- Introduces a shared constant for the Desktop subfolder name (
desktop) in installer resources. - Schedules a new custom action to launch
DevolutionsDesktopAgent.exeafterInstallFinalizefor interactive installs only. - Updates the installer directory layout definition to use the new
desktopdirectory constant.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| package/AgentWindowsManaged/Resources/Includes.cs | Adds a constant for the Desktop subdirectory name. |
| package/AgentWindowsManaged/Program.cs | Uses the new Desktop directory constant in the install tree definition. |
| package/AgentWindowsManaged/Actions/CustomActions.cs | Adds LaunchDesktopApp custom action to start the Desktop app post-install. |
| package/AgentWindowsManaged/Actions/AgentActions.cs | Schedules LaunchDesktopApp after InstallFinalize for interactive first installs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ca37337 to
ca45b1b
Compare
The installer registers the Agent desktop companion app to launch at login for all users.
This PR automatically launches the app in the current user session at install time, so they don't need to log out and back in to see it.
Other logged in users will need to log out. This feels like a good compromise versus launching the application in all user sessions (much more complex).
No action is taken on silent installs. This is only for full or basic UI.