-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
installer: Add UI + Replace
ADD_FIREWALL_EXCEPTION
with `ADDLOCAL=F…
…irewallException` (#1611)
- Loading branch information
Showing
7 changed files
with
275 additions
and
131 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ root = true | |
[*.wxs] | ||
|
||
indent_style = space | ||
indent_size = 2 | ||
indent_size = 4 |
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
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,38 @@ | ||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:netfx="http://wixtoolset.org/schemas/v4/wxs/netfx" | ||
xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> | ||
<Fragment> | ||
<DirectoryRef Id="APPLICATIONFOLDER"> | ||
<Component Transitive="yes"> | ||
<File Id="windows_exporter.exe" Name="windows_exporter.exe" Source="Work\windows_exporter.exe" KeyPath="yes" Vital="yes" Checksum="yes"/> | ||
<ServiceInstall | ||
Id="InstallExporterService" | ||
Name="windows_exporter" | ||
DisplayName="windows_exporter" | ||
Description="Exports Prometheus metrics about the system" | ||
ErrorControl="normal" | ||
Start="auto" | ||
Type="ownProcess" | ||
Vital="yes" | ||
Arguments="--log.file eventlog --config.file="[APPLICATIONFOLDER]config.yaml" [CollectorsFlag] [ListenFlag] [MetricsPathFlag] [TextfileDirsFlag] [ExtraFlags]"> | ||
<util:ServiceConfig | ||
ResetPeriodInDays="1" | ||
FirstFailureActionType="restart" | ||
SecondFailureActionType="restart" | ||
ThirdFailureActionType="restart" | ||
RestartServiceDelayInSeconds="60" | ||
/> | ||
<ServiceDependency Id="wmiApSrv" /> | ||
</ServiceInstall> | ||
<ServiceControl Id="ServiceStateControl" Name="windows_exporter" Remove="uninstall" Start="install" Stop="both"/> | ||
</Component> | ||
<Component Id="CreateTextfileDirectory" Directory="textfile_inputs" Guid="d03ef58a-9cbf-4165-ad39-d143e9b27e14"> | ||
<CreateFolder /> | ||
</Component> | ||
</DirectoryRef> | ||
|
||
<ComponentGroup Id="CG_Files"> | ||
<ComponentRef Id="windows_exporter.exe" /> | ||
<ComponentRef Id="CreateTextfileDirectory" /> | ||
</ComponentGroup> | ||
</Fragment> | ||
</Wix> |
Oops, something went wrong.