farmcontrol-server/packaging/windows/farmcontrol-server.wxs
Tom Butcher f3ae50c788
Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit
Add Windows MSI packaging and finalize desktop artifacts script
- Introduced a new Windows Installer XML (WXS) file for packaging the Farm Control Server as an MSI.
- Added a PowerShell script to build the MSI from the WXS file.
- Implemented a new script to finalize desktop artifacts, handling the publication of macOS and Windows packages.
- Updated the Linux build script to improve artifact naming and organization.
- Enhanced the Electrobun configuration to include a post-package script for finalizing desktop artifacts.
2026-07-28 22:37:38 +01:00

49 lines
1.4 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="SetupComponent" Guid="*">
<File Id="SetupExe" Source="$(var.SetupExe)" KeyPath="yes" />
</Component>
</DirectoryRef>
<Feature Id="MainFeature" Title="Farm Control Server" Level="1">
<ComponentRef Id="SetupComponent" />
</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>