mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-21 10:01:58 +01:00
176 lines
12 KiB
XML
176 lines
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?if $(var.Platform) = x64 ?>
|
|
<?define ProductName = "File Converter (64 bit)" ?>
|
|
<?define Win64 = "yes" ?>
|
|
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
|
|
<?else ?>
|
|
<?define ProductName = "File Converter (32 bit)" ?>
|
|
<?define Win64 = "no" ?>
|
|
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
|
|
<?endif ?>
|
|
|
|
<!-- Upgrade documentation: http://wixtoolset.org/documentation/manual/v3/howtos/updates/major_upgrade.html -->
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
|
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
|
|
<Product Id="*" Name="$(var.ProductName)" Language="1033" Version="1.2.3" Manufacturer="Adrien Allard" UpgradeCode="e3ca717b-a897-418a-bbef-5c7e35c76e4b">
|
|
<?if $(var.Platform) = x64 ?>
|
|
<Package Id="*" InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />
|
|
<?else ?>
|
|
<Package Id="*" InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
|
|
<?endif ?>
|
|
|
|
<Icon Id="icon.ico" SourceFile="..\Resources\ApplicationIcon.ico"/>
|
|
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
|
|
<SetProperty Id="ARPINSTALLLOCATION" Value="[ApplicationFolder]" After="CostFinalize" />
|
|
|
|
<MajorUpgrade Schedule="afterInstallInitialize" DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
|
|
|
|
<Media Id="1" Cabinet="CabFile.cab" EmbedCab="yes" />
|
|
|
|
<Feature Id="Application" Title="Installer" Level="1">
|
|
<ComponentGroupRef Id="ProductComponents" />
|
|
<ComponentGroupRef Id="Languages" />
|
|
</Feature>
|
|
|
|
<CustomAction Id="InstallShell" FileKey="FileConverter.exe" ExeCommand='--register-shell-extension "[INSTALLFOLDER]FileConverterExtension.dll"' Execute="deferred" Impersonate="no" />
|
|
<CustomAction Id="UninstallShell" FileKey="FileConverter.exe" ExeCommand='--unregister-shell-extension "[INSTALLFOLDER]FileConverterExtension.dll"' Execute="deferred" Impersonate="no" />
|
|
<CustomAction Id="PostInstallInit" FileKey="FileConverter.exe" ExeCommand="--post-install-init" Execute="immediate"/>
|
|
|
|
<UI>
|
|
<ProgressText Action="InstallFiles" Template="File: [1], Directory: [9], Size: [6]">Copying new files</ProgressText>
|
|
<ProgressText Action="InstallShell">Register shell extension to Windows Explorer</ProgressText>
|
|
<ProgressText Action="UninstallShell">Unregister shell extension from Windows Explorer</ProgressText>
|
|
<ProgressText Action="PostInstallInit">Initialize conversion presets</ProgressText>
|
|
</UI>
|
|
|
|
<PropertyRef Id="WIX_IS_NETFRAMEWORK_461_OR_LATER_INSTALLED"/>
|
|
<Condition Message="This application requires .NET Framework 4.6.1. Please install the .NET Framework then run this installer again.">
|
|
<![CDATA[Installed OR WIX_IS_NETFRAMEWORK_461_OR_LATER_INSTALLED]]>
|
|
</Condition>
|
|
|
|
<InstallExecuteSequence>
|
|
<Custom Action="UninstallShell" Before="RemoveFiles">(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom>
|
|
<Custom Action="InstallShell" After="InstallFiles">NOT Installed</Custom>
|
|
<Custom Action="PostInstallInit" After="InstallFinalize">NOT Installed</Custom>
|
|
</InstallExecuteSequence>
|
|
|
|
<UIRef Id="WixUI_InstallDir" />
|
|
<Property Id="MSIUSEREALADMINDETECTION" Value="1" />
|
|
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
|
|
<Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable" /> <!-- This avoid an issue where the installer detect the utilization of the extension dll in explorer and then, ask to the user to restart these applications. The restart fails. -->
|
|
|
|
<WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
|
|
<WixVariable Id="WixUIBannerBmp" Value="..\Resources\Installer\Banner.bmp" />
|
|
<WixVariable Id="WixUIDialogBmp" Value="..\Resources\Installer\UI.bmp" />
|
|
<WixVariable Id="WixUIExclamationIco" Value="..\Resources\Installer\ErrorIcon.ico" />
|
|
<WixVariable Id="WixUIInfoIco" Value="..\Resources\Installer\WarningIcon.ico" />
|
|
<!--<WixVariable Id="WixUINewIco" Value="Icon16x16.ico" />
|
|
<WixVariable Id="WixUIUpIco" Value="Icon16x16.ico" />-->
|
|
</Product>
|
|
|
|
<Fragment>
|
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
|
<Directory Id="$(var.PlatformProgramFilesFolder)">
|
|
<Directory Id="INSTALLFOLDER" Name="File Converter" />
|
|
</Directory>
|
|
<Directory Id="ProgramMenuFolder">
|
|
<Directory Id="ApplicationStartMenuShortcut" Name="File Converter"/>
|
|
</Directory>
|
|
</Directory>
|
|
</Fragment>
|
|
|
|
<Fragment>
|
|
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
|
|
<!-- Application -->
|
|
<Component Guid="{EFA8CCE9-E501-4C80-AE33-710D11CC2525}" Win64="$(var.Win64)">
|
|
<File Id="FileConverter.exe" Source="$(var.FileConverter.TargetPath)" KeyPath="yes" Checksum="yes">
|
|
<Shortcut Id="ApplicationStartMenuShortcut" Directory="ApplicationStartMenuShortcut" Advertise="yes" WorkingDirectory="INSTALLDIR"
|
|
Name="File Converter" Description="Convert and compress everything in 2 clicks!" Icon="Icon.exe">
|
|
<Icon Id="Icon.exe" SourceFile="$(var.FileConverter.TargetPath)" />
|
|
</Shortcut>
|
|
<Shortcut Id="ApplicationSettingsStartMenuShortcut" Directory="ApplicationStartMenuShortcut" Advertise="yes" WorkingDirectory="INSTALLDIR"
|
|
Name="File Converter Settings" Description="Configure the conversion and compression presets" Arguments="--settings" Icon="SettingsIcon.exe">
|
|
<Icon Id="SettingsIcon.exe" SourceFile="$(var.FileConverter.TargetPath)" />
|
|
</Shortcut>
|
|
</File>
|
|
<RemoveFolder Id='RemoveStartMenuDir' Directory='ApplicationStartMenuShortcut' On='uninstall' />
|
|
</Component>
|
|
<Component Guid="{3E003FD3-46CA-4F4F-811E-663332828229}" Win64="$(var.Win64)">
|
|
<File Id="FileConverter.exe.config" Source="$(var.FileConverter.TargetDir)FileConverter.exe.config" KeyPath="yes" Checksum="yes" />
|
|
</Component>
|
|
|
|
<!-- Extension -->
|
|
<Component Guid="{35B28709-C56C-4F18-9A41-4B238402EE48}" Win64="$(var.Win64)">
|
|
<File Id="FileConverterExtension.dll" Source="$(var.FileConverterExtension.TargetDir)FileConverterExtension.dll" KeyPath="yes" Checksum="yes" />
|
|
</Component>
|
|
<Component Guid="{566A73FB-427D-43C4-9ABC-92F2528F6D0A}" Win64="$(var.Win64)">
|
|
<File Id="SharpShell.dll" Source="$(var.FileConverterExtension.TargetDir)SharpShell.dll" KeyPath="yes" Checksum="yes"/>
|
|
</Component>
|
|
|
|
<!-- Third parties -->
|
|
<Component Guid="{FF99FD36-9C73-472D-AA18-9384DB7708A6}" Win64="$(var.Win64)">
|
|
<File Id="CommonServiceLocator.dll" KeyPath="yes" Source="$(var.FileConverter.TargetDir)CommonServiceLocator.dll" Checksum="yes"/>
|
|
</Component>
|
|
<Component Guid="{2D5509A2-A752-4E4D-A706-E90F041D0B7D}" Win64="$(var.Win64)">
|
|
<File Id="GalaSoft.MvvmLight.dll" KeyPath="yes" Source="$(var.FileConverter.TargetDir)GalaSoft.MvvmLight.dll" Checksum="yes"/>
|
|
</Component>
|
|
<Component Guid="{D4F2C1DD-800D-407D-B863-1FE6C3069D3C}" Win64="$(var.Win64)">
|
|
<File Id="GalaSoft.MvvmLight.Extras.dll" KeyPath="yes" Source="$(var.FileConverter.TargetDir)GalaSoft.MvvmLight.Extras.dll" Checksum="yes"/>
|
|
</Component>
|
|
<Component Guid="{48D1EE43-F7D7-4611-B3AC-B2652ED68261}" Win64="$(var.Win64)">
|
|
<File Id="GalaSoft.MvvmLight.Platform.dll" KeyPath="yes" Source="$(var.FileConverter.TargetDir)GalaSoft.MvvmLight.Platform.dll" Checksum="yes"/>
|
|
</Component>
|
|
<Component Guid="{08FB2B2B-7686-4698-B864-0AD39CF3128D}" Win64="$(var.Win64)">
|
|
<File Id="System.Windows.Interactivity.dll" KeyPath="yes" Source="$(var.FileConverter.TargetDir)System.Windows.Interactivity.dll" Checksum="yes"/>
|
|
</Component>
|
|
|
|
<Component Guid="{BEEAAC73-C479-4080-83B1-2B1448C7378C}" Win64="$(var.Win64)">
|
|
<File Source="$(var.FileConverter.TargetDir)ffmpeg.exe" KeyPath="yes" Checksum="yes" />
|
|
</Component>
|
|
<Component Guid="{3B94F60C-29BF-4E51-AF85-C10DF19B0B2E}" Win64="$(var.Win64)">
|
|
<File Id="Magick.NET.dll" Source="$(var.FileConverter.TargetDir)Magick.NET-Q16-AnyCPU.dll" KeyPath="yes" Checksum="yes"/>
|
|
</Component>
|
|
<Component Guid="{6925974E-AFE0-4833-B797-36AE33DF9D4D}" Win64="$(var.Win64)">
|
|
<File Id="gsdll32.dll" Source="$(var.FileConverter.TargetDir)gsdll32.dll" KeyPath="yes" Checksum="yes"/>
|
|
</Component>
|
|
<Component Guid="{DC549AF7-6004-423E-BFE3-3508F4AC4682}" Win64="$(var.Win64)">
|
|
<File Id="gswin32c.exe" Source="$(var.FileConverter.TargetDir)gswin32c.exe" KeyPath="yes" Checksum="yes"/>
|
|
</Component>
|
|
<Component Guid="{12B808AB-C4E3-4B0D-B34B-0124C75B2279}" Win64="$(var.Win64)">
|
|
<File Id="Markdown.Xaml.dll" KeyPath="yes" Source="$(var.FileConverter.TargetDir)Markdown.Xaml.dll" Checksum="yes"/>
|
|
</Component>
|
|
<Component Guid="{516EDFA8-26F3-49A5-A007-02D927874999}" Win64="$(var.Win64)">
|
|
<File Id="Ripper.dll" KeyPath="yes" Source="$(var.FileConverter.TargetDir)Ripper.dll" Checksum="yes"/>
|
|
</Component>
|
|
<Component Guid="{92FE38C7-EE75-4F85-BA97-C221E132853F}" Win64="$(var.Win64)">
|
|
<File Id="yeti.mmedia.dll" KeyPath="yes" Source="$(var.FileConverter.TargetDir)yeti.mmedia.dll" Checksum="yes"/>
|
|
</Component>
|
|
<Component Guid="{6268D6C0-42D8-4487-AC4B-33C9874C9E2F}" Win64="$(var.Win64)">
|
|
<File Id="WpfAnimatedGif.dll" KeyPath="yes" Source="$(var.FileConverter.TargetDir)WpfAnimatedGif.dll" Checksum="yes"/>
|
|
</Component>
|
|
|
|
<!-- Configuration and documentation -->
|
|
<Component Guid="{AD58807A-2AE2-48BE-AB55-9BDE9BBE37F3}" Win64="$(var.Win64)">
|
|
<File Source="$(var.FileConverter.ProjectDir)\Settings.default.xml" KeyPath="yes" />
|
|
</Component>
|
|
<Component Guid="{FF6ADF7B-20A1-4222-8949-DD39D315CBEC}" Win64="$(var.Win64)">
|
|
<File Source="..\README.md" KeyPath="yes" />
|
|
</Component>
|
|
<Component Guid="{FF0ACDA8-DCAB-44C9-8004-CBD58EF418F6}" Win64="$(var.Win64)">
|
|
<File Source="..\CHANGELOG.md" KeyPath="yes" />
|
|
</Component>
|
|
<Component Guid="{F082B788-F2C8-4D86-A43E-AB09CBE04D6A}" Win64="$(var.Win64)">
|
|
<File Source="..\LICENSE.md" KeyPath="yes" />
|
|
</Component>
|
|
|
|
<!-- Registry entries -->
|
|
<Component Id="RegistryEntries" Guid="{1862E9DC-1B37-4AFD-85BF-2E9CFFAFA9F8}">
|
|
<RegistryKey Root="HKCU" Key="Software\FileConverter" ForceDeleteOnUninstall="yes">
|
|
<RegistryValue Name="Path" Type="string" Value="[INSTALLFOLDER]FileConverter.exe"/>
|
|
<RegistryValue Name="CompatibleInputExtensions" Type="string" Value="3gp;aac;aiff;ape;arw;avi;bik;bmp;cda;cr2;dng;doc;docx;exr;flac;flv;gif;ico;jpg;jpeg;m4a;m4v;mkv;mov;mp3;mp4;mpeg;nef;odp;ods;odt;oga;ogg;ogv;pdf;png;ppt;pptx;psd;raf;svg;tga;tif;tiff;vob;wav;webm;webp;wma;wmv;xls;xlsx"/>
|
|
</RegistryKey>
|
|
</Component>
|
|
</ComponentGroup>
|
|
</Fragment>
|
|
</Wix> |