mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Wix installer: kill explorer if shellext is detected (#790)
This commit is contained in:
@@ -62,6 +62,10 @@
|
|||||||
<Property Id="WixShellExecTarget" Value="[#PowerToys.exe]" />
|
<Property Id="WixShellExecTarget" Value="[#PowerToys.exe]" />
|
||||||
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
|
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
|
||||||
|
|
||||||
|
<Property Id ="EXISTINGPOWERRENAMEEXTPATH">
|
||||||
|
<RegistrySearch Id="ExistingExtPath" Root="HKCR" Key="CLSID\{0440049F-D1DC-4E46-B27B-98393D79486B}\InprocServer32" Type="raw"/>
|
||||||
|
</Property>
|
||||||
|
|
||||||
<InstallExecuteSequence>
|
<InstallExecuteSequence>
|
||||||
<Custom Action="SetRegisterPowerToysSchTaskParam" Before="RegisterPowerToysSchTask" />
|
<Custom Action="SetRegisterPowerToysSchTaskParam" Before="RegisterPowerToysSchTask" />
|
||||||
<Custom Action="RegisterPowerToysSchTask" After="InstallFiles">
|
<Custom Action="RegisterPowerToysSchTask" After="InstallFiles">
|
||||||
@@ -156,6 +160,10 @@
|
|||||||
|
|
||||||
<!-- Close 'PowerToys.exe' before uninstall-->
|
<!-- Close 'PowerToys.exe' before uninstall-->
|
||||||
<Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable" />
|
<Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable" />
|
||||||
|
<!-- Restart explorer.exe if we detect existing powerrenameext.dll installation -->
|
||||||
|
<util:CloseApplication Target="explorer.exe" RebootPrompt="no" TerminateProcess="0">
|
||||||
|
EXISTINGPOWERRENAMEEXTPATH
|
||||||
|
</util:CloseApplication>
|
||||||
<util:CloseApplication CloseMessage="yes" Target="PowerToys.exe" ElevatedCloseMessage="yes" RebootPrompt="no" TerminateProcess="0" />
|
<util:CloseApplication CloseMessage="yes" Target="PowerToys.exe" ElevatedCloseMessage="yes" RebootPrompt="no" TerminateProcess="0" />
|
||||||
</Product>
|
</Product>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user