Skip to content

Commit

Permalink
Record installer info in the windows registry (#635)
Browse files Browse the repository at this point in the history
Record `installer-info` in the windows register
  • Loading branch information
directionless committed Aug 6, 2020
1 parent 0461fd4 commit 9612888
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
27 changes: 26 additions & 1 deletion pkg/packagekit/internal/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 26 additions & 1 deletion pkg/packagekit/internal/assets/main.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,39 @@
</Directory>
</Directory>


<DirectoryRef Id="TARGETDIR">
<Component Id="InstallerInfoRegistryEntries" Guid="*">
<RegistryKey Root="HKLM"
Key="Software\Kolide\Launcher\{{.Opts.Identifier}}"
Action="createAndRemoveOnUninstall">
<RegistryValue Key="DownloadPath" Value="[OriginalDatabase]" Type="string" />
<RegistryValue Key="Identifier" Value="{{.Opts.Identifier}}" Type="string" />
<RegistryValue Key="User" Value="[LogonUser]" Type="string" />
<RegistryValue Key="Version" Value="{{.Opts.Version}}" Type="string" />
</RegistryKey>
</Component>
</DirectoryRef>



<!-- Install the files -->
<Feature
Id="LauncherFiles"
Title="Launcher"
Level="1">
Level="1"
Display="hidden">
<ComponentGroupRef Id="AppFiles" />
</Feature>

<Feature
Id="InstallerInfo"
Title="InstallerInfo"
Level="1"
Display="hidden">
<ComponentRef Id="InstallerInfoRegistryEntries" />
</Feature>


<!-- The icon is used in the add/remove program dialog -->
<Icon Id="icon.ico" SourceFile="kolide.ico"/>
Expand Down

0 comments on commit 9612888

Please sign in to comment.