mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-09 02:07:50 +08:00
installer: auto-terminate QuickLook.exe before install/upgrade/uninstall (#1918)
* Initial plan * fix: auto-close QuickLook.exe before MSI install/upgrade/uninstall to prevent locked-file warnings Agent-Logs-Url: https://github.com/QL-Win/QuickLook/sessions/107141f9-3b6f-4409-8cd2-2d3663c692c9 Co-authored-by: emako <24737061+emako@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: emako <24737061+emako@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
||||
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
|
||||
<Product Id="*" Name="QuickLook" Language="1033"
|
||||
Version="!(bind.FileVersion.fil22F7B7F07E63622AD2451459086A3CF2)" Manufacturer="QL-Win"
|
||||
UpgradeCode="c83b9c02-87d6-494e-9f5f-cf4c3900a54d">
|
||||
@@ -60,6 +61,14 @@
|
||||
</Directory>
|
||||
</Directory>
|
||||
|
||||
<!-- Close QuickLook before install/upgrade/uninstall to prevent locked-file warnings -->
|
||||
<util:CloseApplication Id="CloseQuickLookExe"
|
||||
Target="QuickLook.exe"
|
||||
CloseMessage="yes"
|
||||
RebootPrompt="no"
|
||||
TerminateProcess="1"
|
||||
Sequence="800" />
|
||||
|
||||
<CustomAction Id="LaunchApplication"
|
||||
FileKey="fil22F7B7F07E63622AD2451459086A3CF2"
|
||||
ExeCommand="/first"
|
||||
|
||||
@@ -28,6 +28,10 @@
|
||||
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
|
||||
<Name>WixUIExtension</Name>
|
||||
</WixExtension>
|
||||
<WixExtension Include="WixUtilExtension">
|
||||
<HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
|
||||
<Name>WixUtilExtension</Name>
|
||||
</WixExtension>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="gpl.rtf" />
|
||||
|
||||
Reference in New Issue
Block a user