I have a Qt based updater application that needs to replace a running process with the new file. On Windows, the updater is failing when the process is running.
Is there a way that I can find a process by name e.g, Firefox.exe and kill it using Qt?
I have a Qt based updater application that needs to replace a running process with the new file. On Windows, the updater is failing when the process is running.
Is there a way that I can find a process by name e.g, Firefox.exe and kill it using Qt?
You can call system like this: taskkill /f /im firefox.exe
There's no API to do this in Qt, which means the only way to do it is using platform specific code.