Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record installer info in the windows registry #635

Merged
merged 4 commits into from Aug 6, 2020

Conversation

directionless
Copy link
Contributor

This records installer information in the windows registry. It is equivalent to the installer-info.json info files left by the macOS and linux installers.

Why the windows registry?

I spend a long while trying to do this in a similar looking json file. First, I experimented with wix's XMLFile and XMLConfig elements. I was unable to get those to work reliably.

I then spent awhile setting up a launcher postinstall subcommand that would create the installer-info.json. This worked, but calling it from wix felt a bit flakey. I had to use ExeCommand and go through some weird quoting hassle. It did not feel stable.

Then, I remembered that this is the sort of thing the windows registry is designed for. Both wix and osquery have straightforward support.

Copy link
Contributor

@blaedj blaedj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, this feels like the sort of thing we'll want to test with full packages

@directionless
Copy link
Contributor Author

we'll want to test with full packages

For sure. I tested in this PR, but once merged we'll need to give it a solid going over.

@directionless directionless merged commit 9612888 into kolide:master Aug 6, 2020
@directionless directionless deleted the seph/windows-registry branch August 6, 2020 17:29
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.

None yet

3 participants