mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix terminating KeePassXC processes with MSI installer (#9822)
This commit is contained in:
parent
6f5f600559
commit
029b4c25ac
@ -92,6 +92,9 @@
|
||||
<RegistryValue Root="HKCU" Key="Software\KeePassXC" Name="DesktopShortcut" Type="integer" Value="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
</Directory>
|
||||
|
||||
<!-- Windows system folder -->
|
||||
<Directory Id="SystemFolder" Name="SystemFolder" />
|
||||
</DirectoryRef>
|
||||
|
||||
<!-- Custom properties to control installation options -->
|
||||
@ -116,12 +119,17 @@
|
||||
<Property Id="WixShellExecTarget" Value="[#CM_FP_KeePassXC.exe]" />
|
||||
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
|
||||
|
||||
<!-- Action to kill running KeePassXC processes -->
|
||||
<Property Id="WixSilentExecCmdLine" Value='taskkill /IM KeePassXC.exe; taskkill /IM keepassxc-proxy.exe /F' />
|
||||
<CustomAction Id="KillKeePassXC" BinaryKey="WixCA" DllEntry="WixSilentExec" Execute="immediate" Return="ignore" />
|
||||
<!-- Action to kill running KeePassXC process -->
|
||||
<Property Id="WixQuietExecCmdLine" Value='"[SystemFolder]taskkill.exe" /IM KeePassXC.exe' />
|
||||
<CustomAction Id="KillKeePassXC" BinaryKey="WixCA" DllEntry="WixQuietExec" Execute="immediate" Return="ignore" />
|
||||
|
||||
<!-- Action to kill running keepassxc-proxy processes -->
|
||||
<Property Id="WixSilentExecCmdLine" Value='"[SystemFolder]taskkill.exe" /IM keepassxc-proxy.exe /F' />
|
||||
<CustomAction Id="KillKeePassXCProxy" BinaryKey="WixCA" DllEntry="WixSilentExec" Execute="immediate" Return="ignore" />
|
||||
|
||||
<InstallExecuteSequence>
|
||||
<Custom Action="KillKeePassXC" Before="InstallValidate" />
|
||||
<Custom Action="KillKeePassXCProxy" Before="InstallValidate" />
|
||||
<!-- Prevent pinned taskbar shortcut from being removed -->
|
||||
<RemoveShortcuts Suppress="yes" />
|
||||
</InstallExecuteSequence>
|
||||
|
Loading…
Reference in New Issue
Block a user