Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit
- Updated farmcontrol-server.nsi to include desktop and Start Menu shortcut creation. - Added new macros in installer.nsh for managing shortcuts during installation and uninstallation. - Introduced build-windows-msi.ps1 script for generating MSI installers, integrating with existing build processes. - Modified finalize-desktop-artifacts.mjs to call the new MSI build script, ensuring proper artifact generation.
36 lines
1.4 KiB
XML
36 lines
1.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
|
<Product Id="__PRODUCT_ID__" Name="Farm Control Server" UpgradeCode="__UPGRADE_CODE__" Version="__VERSION__" Language="1033" Codepage="65001" Manufacturer="Tom Butcher">
|
|
<Package Compressed="yes" InstallerVersion="500"/>
|
|
|
|
<Condition Message="Windows 7 and above is required"><![CDATA[Installed OR VersionNT >= 601]]></Condition>
|
|
|
|
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of [ProductName] is already installed."/>
|
|
<MediaTemplate CompressionLevel="high" EmbedCab="yes"/>
|
|
|
|
<Property Id="DISABLEADVTSHORTCUTS" Value="1"/>
|
|
<Property Id="MSIINSTALLPERUSER" Secure="yes" Value="1"/>
|
|
|
|
<Binary Id="WrappedExe" SourceFile="__SETUP_EXE__"/>
|
|
|
|
<CustomAction Id="RunInstaller" Return="check" Execute="deferred"
|
|
HideTarget="no" Impersonate="no" BinaryKey="WrappedExe" ExeCommand="/S"/>
|
|
|
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
|
<Directory Id="TempFolder">
|
|
<Component Id="EmptyComponent" Guid="7145262D-7149-4F1A-9A69-F377E38F04DA" KeyPath="yes">
|
|
<CreateFolder />
|
|
</Component>
|
|
</Directory>
|
|
</Directory>
|
|
|
|
<Feature Id="EmptyFeature" Level="0">
|
|
<ComponentRef Id="EmptyComponent" />
|
|
</Feature>
|
|
|
|
<InstallExecuteSequence>
|
|
<Custom Action="RunInstaller" After="ProcessComponents" />
|
|
</InstallExecuteSequence>
|
|
</Product>
|
|
</Wix>
|