[Setup] Better prevent FileInUse errors during install (#12512)

This commit is contained in:
Andrey Nekrasov
2021-07-27 01:23:34 +03:00
committed by GitHub
parent b2a86db6de
commit 5e4f50fa45
3 changed files with 8 additions and 2 deletions

View File

@@ -774,10 +774,14 @@ UINT __stdcall TerminateProcessesCA(MSIHANDLE hInstall)
}
processes.resize(bytes / sizeof(processes[0]));
std::array<std::wstring_view, 4> processesToTerminate = {
std::array<std::wstring_view, 8> processesToTerminate = {
L"PowerLauncher.exe",
L"PowerToys.Settings.exe",
L"PowerToys.Awake.exe",
L"PowerToys.FancyZones.exe",
L"Microsoft.PowerToys.Settings.UI.exe",
L"FancyZonesEditor.exe",
L"ColorPickerUI.exe",
L"PowerToys.exe"
};