-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added wix file and build step to create msi
- Loading branch information
1 parent
a8b8ba4
commit 5e78a80
Showing
5 changed files
with
105 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,8 @@ coverage.txt | |
coverage_all.txt | ||
coverage_old.txt | ||
coverage.html | ||
|
||
# Wix | ||
*.wixobj | ||
*.wixpdb | ||
*.msi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<!-- Use v0.0.1 if version is not supplied --> | ||
<?ifdef Version?><?if $(var.Version) = ""?><?undef Version ?><?endif?><?endif?> | ||
<?ifndef Version?><?define Version = "0.0.1" ?><?endif?> | ||
<!-- Use default local config file if config path is not supplied --> | ||
<?ifdef Config?><?if $(var.Config) = ""?><?undef Config ?><?endif?><?endif?> | ||
<?ifndef Config?><?define Config = "./examples/otel-local-config.yaml" ?><?endif?> | ||
|
||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | ||
<Product Id="*" UpgradeCode="B7C263DD-95A5-436A-A025-DCA5200C2BE3" Name="OpenTelemetry Collector" Version="$(var.Version)" Manufacturer="OpenTelemetry" Language="1033"> | ||
<Package InstallerVersion="200" Compressed="yes" Comments="Windows Installer Package"/> | ||
<Media Id="1" Cabinet="product.cab" EmbedCab="yes"/> | ||
<Icon Id="ProductIcon" SourceFile="scripts/msi/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"/> | ||
|
||
<Feature Id="Feature" Level="1"> | ||
<ComponentRef Id="ApplicationComponent"/> | ||
</Feature> | ||
|
||
<Directory Id="TARGETDIR" Name="SourceDir"> | ||
<Directory Id="ProgramFiles64Folder"> | ||
<Directory Id="INSTALLDIR" Name="OpenTelemetry Collector"> | ||
<Component Id="ApplicationComponent" Guid="1207C3C4-1830-4DC8-8A7B-2BD7DBE45BC3"> | ||
<!-- Files to include --> | ||
<File Id="ExecutableFile" Name="otelcol.exe" KeyPath="yes" Source="bin/otelcol_windows_amd64.exe"/> | ||
<File Id="DefaultConfigFile" Name="config.yaml" Source="$(var.Config)" /> | ||
<!-- Since we may have overridden the config file (see below), we need to explicitly remove it on uninstall --> | ||
<RemoveFile Id="RemoveConfigFile" Name="config.yaml" On="uninstall" /> | ||
|
||
<ServiceInstall | ||
Id="Sevice" | ||
Name="OpenTelemetry Collector" | ||
DisplayName="OpenTelemetry Collector" | ||
Description="Collects, processes, and exports telemetry from various configurable sources." | ||
Type="ownProcess" | ||
Vital="yes" | ||
Start="auto" | ||
Account="LocalSystem" | ||
ErrorControl="normal" | ||
Arguments=" --config="[INSTALLDIR]config.yaml"" | ||
Interactive="no" /> | ||
<ServiceControl Id="StartStopRemove" Name="OpenTelemetry Collector" Start="install" Stop="both" Remove="uninstall" Wait="yes" /> | ||
</Component> | ||
</Directory> | ||
</Directory> | ||
</Directory> | ||
|
||
<!-- If CONFIG is supplied as a custom argument when installing, replace config.yaml with the specified file --> | ||
<CustomAction Id="CopyConfig" ExeCommand="xcopy /y "[CONFIG]" "[INSTALLDIR]config.yaml*"" Directory="INSTALLDIR" Impersonate="no" Execute="deferred" Return="check" /> | ||
<InstallExecuteSequence> | ||
<Custom Action="CopyConfig" After="InstallFiles">CONFIG AND NOT Installed</Custom> | ||
</InstallExecuteSequence> | ||
</Product> | ||
</Wix> |
Binary file not shown.