Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
rm -r /opt/hostedtoolcache/node
df -h

- name: Install osslsigncode
run: apt update && apt install osslsigncode

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
with:
Expand Down
3 changes: 3 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ nfpms:
vendor: "Dynatrace LLC"
description: Dynatrace distribution of the OpenTelemetry Collector
license: Apache 2.0
msi:
- wxs: internal/release/windows-installer.wxs
name: '{{.ProjectName}}_{{.MsiArch}}'
dockers:
- goos: linux
goarch: amd64
Expand Down
80 changes: 80 additions & 0 deletions internal/release/windows-installer.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product
Name="Dynatrace Distribution of the OpenTelemetry Collector ({{ .Version }})"
Id="B54F893B-A7D4-49D3-AB3B-CA2ECCA22FD0"
UpgradeCode="6D1FB773-63F0-45F1-9FCB-8E0FCC4AF375"
Version="{{ .Version }}"
Manufacturer="Dynatrace LLC"
Language="1033">

<Package
InstallerVersion="200"
Compressed="yes"
Comments="Copyright Dynatrace LLC"
InstallScope="perMachine"/>
<Media Id="1" Cabinet="product.cab" EmbedCab="yes"/>
<!-- <Icon Id="ProductIcon" SourceFile="opentelemetry.ico"/> -->
<Property Id="ARPPRODUCTICON" Value="ProductIcon"/>
<Property Id="ARPHELPLINK" Value="https://opentelemetry.io/"/>
<Property Id="ARPURLINFOABOUT" Value="https://opentelemetry.io/"/>
<Property Id="ARPNOREPAIR" Value="1"/>
<Property Id="ARPNOMODIFY" Value="1"/>

<MajorUpgrade
DowngradeErrorMessage="A later version of the Dynatrace Distribution of the OpenTelemetry Collector already installed. Setup will now exit."/>

<Feature Id="Feature" Level="1">
<ComponentRef Id="ApplicationComponent"/>
</Feature>

<Property Id="COLLECTOR_SVC_ARGS"/>

<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder">
<Directory Id="INSTALLDIR" Name="DT OTel Collector">
<Component Id="ApplicationComponent" Guid="1207C3C4-1830-4DC8-8A7B-2BD7DBE45BC3">
<!-- Files to include -->
<File
Id="{{ replace .Binary "-" "_"}}.exe"
Name="{{ .Binary }}.exe"
Source="{{ .Binary }}.exe"
KeyPath="yes"/>
<!-- <File -->
<!-- Id="config.yaml" -->
<!-- Name="config.yaml" -->
<!-- Source="config.yaml"/> -->

<ServiceInstall
Id="Service"
Name="{{ .Binary }}"
DisplayName="Dynatrace Distribution of the OpenTelemetry Collector"
Description="Collects, processes, and exports telemetry from various configurable sources."
Type="ownProcess"
Vital="yes"
Start="auto"
Account="LocalSystem"
ErrorControl="normal"
Arguments="[COLLECTOR_SVC_ARGS]"
Interactive="no"/>
<ServiceControl
Id="StartStopRemoveService"
Name="{{ .Binary }}"
Start="install"
Stop="both"
Remove="uninstall"
Wait="yes"/>

<RegistryKey
Root="HKLM"
Key="SYSTEM\CurrentControlSet\Services\EventLog\Application\{{ .Binary }}">
<RegistryValue
Type="expandable"
Name="EventMessageFile"
Value="%SystemRoot%\System32\EventCreate.exe"/>
</RegistryKey>
</Component>
</Directory>
</Directory>
</Directory>
</Product>
</Wix>
Loading