fix(windows): Avoid double start during setup

Fixes #4724.
This commit is contained in:
Marc Durdin 2021-03-19 14:24:55 +11:00
parent 6c0bf45350
commit b97fc4c82c

View file

@ -748,6 +748,18 @@ begin
Free;
end;
// Delete the Keyman autostart; it will be reinstated when setup finishes
// but this avoids conflict of Keyman starting while the setup is still
// running
with CreateHKCURegistry do
try
if OpenKey(SRegKey_WindowsRun_CU, False) and ValueExists(SRegValue_WindowsRun_Keyman) then
DeleteValue(SRegValue_WindowsRun_Keyman);
finally
Free;
end;
if res = ERROR_SUCCESS_REBOOT_REQUIRED then
begin
if GetRunTools.PromptForReboot and