Skip to content

Register graylog-sidecar as Windows service via MSI installer#537

Open
hunterbeach wants to merge 2 commits intoGraylog2:masterfrom
hunterbeach:msi-service-registration
Open

Register graylog-sidecar as Windows service via MSI installer#537
hunterbeach wants to merge 2 commits intoGraylog2:masterfrom
hunterbeach:msi-service-registration

Conversation

@hunterbeach
Copy link
Copy Markdown

Summary

Adds ServiceInstall to the WiX package so the graylog-sidecar Windows service is registered automatically during MSI installation, removing the need to manually run graylog-sidecar.exe -service install post-install.

The service is configured as auto-start under LocalSystem but is not started during install, allowing the user to populate sidecar.yml before the service runs for the first time.

On uninstall, the service is stopped and removed automatically.

These changes were built and tested locally with no issues.

A future feature should be to input the server URL and API key as a installer parameter, similar to how the EXE installer does.

Notes for Reviewers

  • The commit history must be preserved - please use the rebase-merge or standard merge option instead of squash-merge
  • Sync up with the author before merging

Hunter Beach and others added 2 commits April 8, 2026 12:16
Add ServiceInstall and ServiceControl elements to the WiX package so
the service is registered automatically on install, removing the need
to manually run `graylog-sidecar.exe -service install` post-install.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Hunter Beach seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@hunterbeach
Copy link
Copy Markdown
Author

@bernd Can you review this please?

I've signed the CLA but the workflow hasn't updated to reflect it.

@bernd
Copy link
Copy Markdown
Member

bernd commented Apr 15, 2026

@hunterbeach I will review it. It will have to wait a bit, though. Thanks for the contribution!

@bernd bernd self-requested a review April 15, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants