fix: enable EmbedCab for wix

This commit is contained in:
2025-06-23 04:49:43 -05:00
parent 5778d3ece9
commit 80d031e8c0

View File

@@ -2,9 +2,12 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"
xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
<Package Language="1033" Manufacturer="Xevion" Name="HATray" Scope="perMachine" UpgradeCode="87d36d2a-cb20-4d4b-87a2-a88c3f60ea44" Version="$(var.VERSION)"> <Package Language="1033" Manufacturer="Xevion" Name="HATray" Scope="perMachine"
<MajorUpgrade Schedule="afterInstallInitialize" DowngradeErrorMessage="A later version of [ProductName] is already installed" AllowSameVersionUpgrades="yes" /> UpgradeCode="87d36d2a-cb20-4d4b-87a2-a88c3f60ea44" Version="$(var.VERSION)">
<!-- <MediaTemplate EmbedCab="yes" /> --> <MajorUpgrade Schedule="afterInstallInitialize"
DowngradeErrorMessage="A later version of [ProductName] is already installed"
AllowSameVersionUpgrades="yes" />
<MediaTemplate EmbedCab="yes" />
<!-- <Icon Id="icon.ico" SourceFile="ui\images\icon.ico"/> --> <!-- <Icon Id="icon.ico" SourceFile="ui\images\icon.ico"/> -->
<!-- <Property Id="ARPPRODUCTICON" Value="icon.ico" /> --> <!-- <Property Id="ARPPRODUCTICON" Value="icon.ico" /> -->
<UI Id="UI"> <UI Id="UI">
@@ -16,10 +19,15 @@
<Directory Id="INSTALLDIR" Name="HATray"> <Directory Id="INSTALLDIR" Name="HATray">
<Component Id="serviceComponent"> <Component Id="serviceComponent">
<File Id="serviceBinary" Source="$(var.SOURCE)" KeyPath="yes" /> <File Id="serviceBinary" Source="$(var.SOURCE)" KeyPath="yes" />
<ServiceInstall Id="serviceInstall" Name="HATray" DisplayName="HATray" Description="..." Start="auto" Type="ownProcess" Vital="yes" ErrorControl="normal" Account="LocalSystem"> <ServiceInstall Id="serviceInstall" Name="HATray" DisplayName="HATray"
<util:ServiceConfig FirstFailureActionType="restart" SecondFailureActionType="restart" ThirdFailureActionType="restart" RestartServiceDelayInSeconds="60" /> Description="..." Start="auto" Type="ownProcess" Vital="yes"
ErrorControl="normal" Account="LocalSystem">
<util:ServiceConfig FirstFailureActionType="restart"
SecondFailureActionType="restart" ThirdFailureActionType="restart"
RestartServiceDelayInSeconds="60" />
</ServiceInstall> </ServiceInstall>
<ServiceControl Id="serviceControl" Name="HATray" Remove="both" Stop="both" Start="install" Wait="yes" /> <ServiceControl Id="serviceControl" Name="HATray" Remove="both" Stop="both"
Start="install" Wait="yes" />
</Component> </Component>
</Directory> </Directory>
</StandardDirectory> </StandardDirectory>