farmcontrol-server/packaging/windows/farmcontrol-server.wxs
Tom Butcher f21224becc
Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit
Update Jenkinsfile and Windows installer configuration
- Changed the build discard policy in Jenkinsfile from 20 to 10 builds to optimize storage.
- Refactored the farmcontrol-server.wxs file to rename the main setup component and separate SetupArchive and SetupMetadata into distinct components for improved clarity and management in the MSI packaging process.
2026-08-01 20:13:49 +01:00

57 lines
1.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product
Id="*"
Name="Farm Control Server"
Language="1033"
Version="$(var.Version)"
Manufacturer="Tom Butcher"
UpgradeCode="A4E29F1C-8B3D-5E2A-9C71-1D6F8E4A2B90"
>
<Package
InstallerVersion="200"
Compressed="yes"
InstallScope="perMachine"
Description="Farm Control Server"
/>
<MajorUpgrade DowngradeErrorMessage="A newer version of Farm Control Server is already installed." />
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder">
<Directory Id="INSTALLFOLDER" Name="Farm Control Server" />
</Directory>
</Directory>
<DirectoryRef Id="INSTALLFOLDER">
<Component Id="SetupExeComponent" Guid="*">
<File Id="SetupExe" Source="$(var.SetupExe)" KeyPath="yes" />
</Component>
<Component Id="SetupArchiveComponent" Guid="*">
<File Id="SetupArchive" Source="$(var.SetupArchive)" KeyPath="yes" />
</Component>
<Component Id="SetupMetadataComponent" Guid="*">
<File Id="SetupMetadata" Source="$(var.SetupMetadata)" KeyPath="yes" />
</Component>
</DirectoryRef>
<Feature Id="MainFeature" Title="Farm Control Server" Level="1">
<ComponentRef Id="SetupExeComponent" />
<ComponentRef Id="SetupArchiveComponent" />
<ComponentRef Id="SetupMetadataComponent" />
</Feature>
<CustomAction
Id="RunSetup"
FileKey="SetupExe"
ExeCommand="/S"
Execute="deferred"
Impersonate="no"
Return="check"
/>
<InstallExecuteSequence>
<Custom Action="RunSetup" After="InstallFiles">NOT Installed</Custom>
</InstallExecuteSequence>
</Product>
</Wix>