Files
2026-04-02 18:32:43 +08:00

67 lines
3.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product Id="*" Name="Chromebox Fan Control" Language="1033" Version="1.0.0" Manufacturer="ChromeboxFanControl"
UpgradeCode="A1B2C3D4-E5F6-7890-ABCD-EF1234567890">
<Package InstallerVersion="500" Compressed="yes" InstallScope="perMachine" Platform="x64" />
<MajorUpgrade DowngradeErrorMessage="A newer version is already installed." />
<MediaTemplate EmbedCab="yes" />
<Feature Id="MainFeature" Title="Chromebox Fan Control" Level="1" ConfigurableDirectory="INSTALLFOLDER">
<ComponentGroupRef Id="AppFiles" />
<ComponentRef Id="ConfigFolderComponent" />
<ComponentRef Id="ShortcutComponent" />
</Feature>
<Feature Id="ServiceFeature" Title="Windows Service (runs in background, auto-start)" Level="2">
<ComponentRef Id="ServiceComponent" />
</Feature>
<UIRef Id="WixUI_FeatureTree" />
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder">
<Directory Id="INSTALLFOLDER" Name="Chromebox Fan Control" />
</Directory>
<Directory Id="CommonAppDataFolder">
<Directory Id="ConfigFolder" Name="ChromeboxFanControl" />
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="AppProgramMenuFolder" Name="Chromebox Fan Control" />
</Directory>
</Directory>
<DirectoryRef Id="INSTALLFOLDER">
<Component Id="ServiceComponent" Guid="B2C3D4E5-F6A7-8901-BCDE-F12345678902">
<File Id="ServiceExe" Source="ChromeboxFanControlService.exe" KeyPath="yes" />
<ServiceInstall Id="ChromeboxFanControlSvc" Name="ChromeboxFanControl"
DisplayName="Chromebox Fan Control Service" Description="Fan control for Chromebox with Coreboot"
Type="ownProcess" Start="auto" Account="LocalSystem" ErrorControl="normal" />
<ServiceControl Id="StartService" Name="ChromeboxFanControl" Start="install" />
<ServiceControl Id="StopService" Name="ChromeboxFanControl" Stop="both" Remove="uninstall" />
</Component>
</DirectoryRef>
<DirectoryRef Id="ConfigFolder">
<Component Id="ConfigFolderComponent" Guid="C3D4E5F6-A7B8-9012-CDEF-123456789003">
<CreateFolder>
<util:PermissionEx User="Users" GenericAll="yes" />
</CreateFolder>
</Component>
</DirectoryRef>
<DirectoryRef Id="AppProgramMenuFolder">
<Component Id="ShortcutComponent" Guid="D4E5F6A7-B8C9-0123-DEF0-234567890104">
<Shortcut Id="AppShortcut" Name="Chromebox Fan Control" Description="Fan control for Chromebox"
Target="[INSTALLFOLDER]ChromeboxFanControl.exe" WorkingDirectory="INSTALLFOLDER" />
<Shortcut Id="UninstallShortcut" Name="Uninstall Chromebox Fan Control"
Target="[System64Folder]msiexec.exe" Arguments="/x [ProductCode]" />
<RemoveFolder Id="RemoveAppProgramMenuFolder" Directory="AppProgramMenuFolder" On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\ChromeboxFanControl" Name="installed" Type="integer" Value="1" KeyPath="yes" />
</Component>
</DirectoryRef>
</Product>
</Wix>