mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-20 17:42:20 +01:00
Rework installer by using fileConverter command line to register/unregister shell extension.
This commit is contained in:
1 parent
e2790b8143
commit
2282f3cfed
1 file changed
+49
-29
+49
-29
@@ -31,21 +31,28 @@
|
||||
<ComponentGroupRef Id="ProductComponents" />
|
||||
<ComponentGroupRef Id="Languages" />
|
||||
</Feature>
|
||||
|
||||
<CustomAction Id="InstallShell" FileKey="srm.exe" ExeCommand='install "[INSTALLFOLDER]\FileConverterExtension.dll" -codebase' Execute="deferred" Return="check" Impersonate="no" />
|
||||
<CustomAction Id="UninstallShell" FileKey="srm.exe" ExeCommand='uninstall "[INSTALLFOLDER]\FileConverterExtension.dll"' Execute="deferred" Return="check" Impersonate="no" />
|
||||
<CustomAction Id='PostInstallInit' FileKey='FileConverter.exe' ExeCommand='--post-install-init' Return='asyncWait' />
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
<InstallExecuteSequence>
|
||||
<Custom Action="InstallShell" After="InstallFiles">NOT Installed</Custom>
|
||||
<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 utilisation of the extension dll in explorer and then, ask to the user to restart these applications. The restart fails. -->
|
||||
<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" />
|
||||
@@ -70,7 +77,7 @@
|
||||
<Fragment>
|
||||
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
|
||||
<!-- Application -->
|
||||
<Component Guid="{142FBD60-90A7-4753-95CE-7B2A2E20B785}" Win64="$(var.Win64)">
|
||||
<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">
|
||||
@@ -83,63 +90,76 @@
|
||||
</File>
|
||||
<RemoveFolder Id='RemoveStartMenuDir' Directory='ApplicationStartMenuShortcut' On='uninstall' />
|
||||
</Component>
|
||||
<Component Guid="{1B14FF2D-C82D-4425-A447-DED14CCBEA5C}" Win64="$(var.Win64)">
|
||||
<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="{AA5EA6F7-C443-488B-8E48-7CF000B9AD2A}" Win64="$(var.Win64)">
|
||||
<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="{9BF0AC45-A586-41C9-BA93-6048B46DA65F}" Win64="$(var.Win64)">
|
||||
<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>
|
||||
<Component Guid="{EC580BEF-F962-42BD-B46D-4E4C126F2641}" Win64="$(var.Win64)">
|
||||
<File Id="srm.exe" Source="..\packages\SharpShellTools.2.2.0.0\lib\srm.exe" KeyPath="yes" Checksum="yes"/>
|
||||
</Component>
|
||||
|
||||
<!-- Third parties -->
|
||||
<Component Guid="{1790B82E-86BC-4B95-AA1D-9859FF3B6CA4}" Win64="$(var.Win64)">
|
||||
<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="{C59B7F72-D8D6-47A3-B1D9-515CBC9FCE6F}" Win64="$(var.Win64)">
|
||||
<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="{C28EDCA8-AE86-4672-8B14-6686AC35F5E6}" Win64="$(var.Win64)">
|
||||
<File Id="gsdll64.dll" Source="$(var.FileConverter.TargetDir)gsdll32.dll" KeyPath="yes" Checksum="yes"/>
|
||||
<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="{6AC1B233-477A-42CF-8F6F-87CA22295BE0}" Win64="$(var.Win64)">
|
||||
<File Id="gswin64c.exe" Source="$(var.FileConverter.TargetDir)gswin32c.exe" KeyPath="yes" Checksum="yes"/>
|
||||
<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="{E1B1C09C-B089-40D8-859B-0E55F640CAE1}" Win64="$(var.Win64)">
|
||||
<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="{55CD0B47-D5B0-4F0C-A54E-3E11DF345B48}" Win64="$(var.Win64)">
|
||||
<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="{3CE6CF1B-431C-41FD-8381-3F73EDAF7B8A}" Win64="$(var.Win64)">
|
||||
<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="{0FC2EE41-35DB-49B1-8FD6-77E57254A6A5}" Win64="$(var.Win64)">
|
||||
<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="{86AEF5B3-C25B-4662-BAEF-20969D1821A5}" Win64="$(var.Win64)">
|
||||
<Component Guid="{AD58807A-2AE2-48BE-AB55-9BDE9BBE37F3}" Win64="$(var.Win64)">
|
||||
<File Source="$(var.FileConverter.ProjectDir)\Settings.default.xml" KeyPath="yes" />
|
||||
</Component>
|
||||
<Component Guid="{A5158756-A107-4010-9E2F-3C0333F5A5F6}" Win64="$(var.Win64)">
|
||||
<Component Guid="{FF6ADF7B-20A1-4222-8949-DD39D315CBEC}" Win64="$(var.Win64)">
|
||||
<File Source="..\README.md" KeyPath="yes" />
|
||||
</Component>
|
||||
<Component Guid="{B57DCB2B-3520-4430-98CB-41B58F530D75}" Win64="$(var.Win64)">
|
||||
<Component Guid="{FF0ACDA8-DCAB-44C9-8004-CBD58EF418F6}" Win64="$(var.Win64)">
|
||||
<File Source="..\CHANGELOG.md" KeyPath="yes" />
|
||||
</Component>
|
||||
<Component Guid="{6378238B-E44F-414B-A7AE-7E72CFA8616D}" Win64="$(var.Win64)">
|
||||
<Component Guid="{F082B788-F2C8-4D86-A43E-AB09CBE04D6A}" Win64="$(var.Win64)">
|
||||
<File Source="..\LICENSE.md" KeyPath="yes" />
|
||||
</Component>
|
||||
|
||||
<!-- Registry entries -->
|
||||
<Component Id="RegistryEntries" Guid="{C3EF3D67-0206-4DBD-B2EA-78FF2E290093}">
|
||||
<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;avi;bik;bmp;cda;doc;docx;exr;flac;flv;gif;ico;jpg;jpeg;m4a;m4v;mkv;mov;mp3;mp4;mpeg;odp;ods;odt;oga;ogg;ogv;pdf;png;ppt;pptx;psd;svg;tga;tif;tiff;vob;wav;webm;webp;wma;wmv;xls;xlsx"/>
|
||||
|
||||
Reference in new issue
Block a user