mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-12 18:07:24 +10:00
Update: Support for automatic updates
Use Github REST API to get info about latest release (version, changelog, installer url).
This commit is contained in:
@@ -7323,8 +7323,9 @@ static void NewVersionCallback( VersionData &data )
|
||||
wchar_t cmdLine[1024];
|
||||
Sprintf(cmdLine,_countof(cmdLine),L"\"%s\" -popup",path);
|
||||
STARTUPINFO startupInfo={sizeof(startupInfo)};
|
||||
PROCESS_INFORMATION processInfo;
|
||||
memset(&processInfo,0,sizeof(processInfo));
|
||||
// don't display busy cursor as we are doing this on background
|
||||
startupInfo.dwFlags=STARTF_FORCEOFFFEEDBACK;
|
||||
PROCESS_INFORMATION processInfo{};
|
||||
if (CreateProcess(path,cmdLine,NULL,NULL,TRUE,0,NULL,NULL,&startupInfo,&processInfo))
|
||||
{
|
||||
CloseHandle(processInfo.hThread);
|
||||
|
||||
Reference in New Issue
Block a user