Skip to content

Instantly share code, notes, and snippets.

@swaters86
Last active October 22, 2024 21:50
Show Gist options
  • Save swaters86/b7c988c10830c6b4f5084262267732a3 to your computer and use it in GitHub Desktop.
Save swaters86/b7c988c10830c6b4f5084262267732a3 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Product
Name="Analyze Backfill Manager"
Id="*"
UpgradeCode="66fc43df-90cf-4913-bb94-e5211a057984"
Version="1.0.0.0"
Manufacturer="ABB Analyze"
Language="1033">
<Package
InstallerVersion="500"
Compressed="yes"
InstallScope="perMachine" />
<MajorUpgrade
DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<Feature Id="MainFeature" Title="Analyze Backfill Manager" Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
<!-- Directory Structure -->
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="AnalyzeBackfillManager">
<Component Id="BackfillManagerComponent" Guid="PUT-GUID-HERE">
<!-- Install the service executable -->
<File
Source="..\BackfillManager\bin\Release\BackfillManager.exe"
KeyPath="yes" />
<!-- Service Installation -->
<ServiceInstall
Id="BackfillManagerInstaller"
Type="ownProcess"
Name="BackfillManager"
DisplayName="Analyze Backfill Manager Service"
Description="Service for analyzing and managing backfill operations."
Start="auto"
DelayStart="yes"
Account="LocalSystem"
ErrorControl="normal" />
<!-- Service Control -->
<ServiceControl
Id="StartBackfillManager"
Name="BackfillManager"
Start="install"
Stop="both"
Remove="uninstall"
Wait="yes" />
</Component>
</Directory>
</Directory>
<!-- Component Group -->
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<ComponentRef Id="BackfillManagerComponent" />
</ComponentGroup>
</Product>
</Wix>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment