mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
UI/updater: Delete visual studio runtimes after execution
This commit is contained in:
parent
a6c65cdbf3
commit
ceadde0838
|
@ -1071,13 +1071,14 @@ static bool UpdateVS2017Redists(json_t *root)
|
||||||
WaitForSingleObject(pi.hProcess, INFINITE);
|
WaitForSingleObject(pi.hProcess, INFINITE);
|
||||||
CloseHandle(pi.hProcess);
|
CloseHandle(pi.hProcess);
|
||||||
} else {
|
} else {
|
||||||
DeleteFile(destPath.c_str());
|
|
||||||
Status(L"Update failed: Could not execute "
|
Status(L"Update failed: Could not execute "
|
||||||
L"%s (error code %d)",
|
L"%s (error code %d)",
|
||||||
L"Visual C++ 2017 Redistributable",
|
L"Visual C++ 2017 Redistributable",
|
||||||
(int)GetLastError());
|
(int)GetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DeleteFile(destPath.c_str());
|
||||||
|
|
||||||
waitResult = WaitForSingleObject(cancelRequested, 0);
|
waitResult = WaitForSingleObject(cancelRequested, 0);
|
||||||
if (waitResult == WAIT_OBJECT_0) {
|
if (waitResult == WAIT_OBJECT_0) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue