Files
WinBGP/builder/files.wxs
2025-01-07 21:12:54 +01:00

61 lines
2.4 KiB
XML

<!--
~ Copyright 2024 The Prometheus Authors
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<Wix xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"
xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<DirectoryRef Id="APPLICATIONFOLDER">
<Component Transitive="yes">
<File Id="winbgp_service" Source="..\service\WinBGP-Service.exe" KeyPath="yes" Vital="yes" Checksum="yes" />
<ServiceInstall
Id="InstallWinBGPService"
Name="WinBGP"
DisplayName="WinBGP Engine"
Description="The BGP swiss army knife of networking on Windows"
ErrorControl="normal"
Start="auto"
Type="ownProcess"
Vital="yes"
>
<util:ServiceConfig
ResetPeriodInDays="1"
FirstFailureActionType="restart"
SecondFailureActionType="restart"
ThirdFailureActionType="restart"
RestartServiceDelayInSeconds="60"
/>
<ServiceDependency Id="RemoteAccess" />
</ServiceInstall>
<ServiceControl
Id="WinBGPServiceControl"
Name="WinBGP"
Stop="both"
Remove="both"
Wait="yes" />
</Component>
</DirectoryRef>
<ComponentGroup Id="ApplicationFiles">
<ComponentRef Id="winbgp_service" />
<ComponentRef Id="winbgp_engine" />
<ComponentRef Id="winbgp_healthcheck" />
<ComponentRef Id="winbgp_api" />
<ComponentRef Id="winbgp_config" />
<ComponentRef Id="winbgp_config_example" />
<ComponentRef Id="winbgp_cli" />
</ComponentGroup>
</Fragment>
</Wix>