Files
mediahive/scripts/installer/MediaHive.wxs
T
LeoVasanko 734b7993a2
release / gui-build (linux, bash) (push) Successful in 1m12s
release / gui-build (macos, bash) (push) Successful in 1m14s
release / gui-build (windows, cmd) (push) Failing after 1m31s
Add per-user MSI installer for Windows; strip Mark-of-the-Web in frozen ZIP builds
Files extracted from a downloaded ZIP carry a Zone.Identifier stream and the
.NET Framework CLR refuses to load such assemblies, so pythonnet failed with
'Failed to resolve Python.Runtime.Loader.Initialize'. MSI-installed files have
no MOTW; the winmain strip fixes the ZIP distribution.
2026-09-22 22:28:16 +00:00

63 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- MediaHive per-user MSI installer.
Build defines (passed via candle -d):
MediaHiveVersion e.g. 1.2.3 (must be numeric x.y.z[.w] for MSI)
MediaHiveSourceDir path to the PyInstaller output folder (build/MediaHive)
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*"
Name="MediaHive"
Language="1033"
Version="$(var.MediaHiveVersion)"
Manufacturer="MediaHive"
UpgradeCode="8f3a2c1e-9b6d-4a7e-b5c4-2d1f0e9a8b7c">
<Package InstallerVersion="500"
Compressed="yes"
InstallScope="perUser"
InstallPrivileges="limited"
Description="MediaHive media library"
Comments="MediaHive desktop application" />
<MajorUpgrade DowngradeErrorMessage="A newer version of MediaHive is already installed."
AllowSameVersionUpgrades="yes" />
<MediaTemplate EmbedCab="yes" />
<Icon Id="MediaHiveIcon" SourceFile="$(var.MediaHiveSourceDir)\_internal\mediahive\assets\mediahive.ico" />
<Property Id="ARPPRODUCTICON" Value="MediaHiveIcon" />
<Feature Id="MainApplication" Title="MediaHive" Level="1">
<ComponentGroupRef Id="MediaHiveFiles" />
<ComponentRef Id="StartMenuShortcut" />
</Feature>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="LocalAppDataFolder">
<Directory Id="ProgramsFolder" Name="Programs">
<Directory Id="INSTALLFOLDER" Name="MediaHive" />
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder" />
</Directory>
<!-- Start Menu shortcut (needs its own component; per-user keypath is a
registry entry under HKCU). -->
<DirectoryRef Id="ProgramMenuFolder">
<Component Id="StartMenuShortcut" Guid="5c1e9a2b-4d7f-4e6b-8a3c-1d0f2e9b7a65">
<Shortcut Id="MediaHiveStartMenuShortcut"
Name="MediaHive"
Target="[INSTALLFOLDER]MediaHive.exe"
WorkingDirectory="INSTALLFOLDER"
Icon="MediaHiveIcon" />
<RegistryValue Root="HKCU"
Key="Software\MediaHive"
Name="StartMenuShortcut"
Type="integer"
Value="1"
KeyPath="yes" />
</Component>
</DirectoryRef>
</Product>
</Wix>