|
16 | 16 | // It unpacks the right installer into the temp directory and executes it.
|
17 | 17 |
|
18 | 18 | typedef BOOL (WINAPI *FIsWow64Process)( HANDLE hProcess, PBOOL Wow64Process );
|
19 |
| -typedef BOOL (WINAPI *FQueryFullProcessImageName)( HANDLE hProcess, DWORD dwFlags, LPTSTR lpExeName, PDWORD lpdwSize ); |
20 | 19 |
|
21 | 20 |
|
22 | 21 |
|
@@ -326,49 +325,6 @@ int APIENTRY wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCm
|
326 | 325 | BOOL b64=FALSE;
|
327 | 326 | isWow64Process(GetCurrentProcess(),&b64);
|
328 | 327 |
|
329 |
| - // look for an old version of the classic start menu (2.0.0 or older) and show a warning if it is still running. the uninstaller for such old versions doesn't close the start menu |
330 |
| - HWND hwnd=FindWindow(L"ClassicStartMenu.CStartHookWindow",L"StartHookWindow"); |
331 |
| - if (hwnd) |
332 |
| - { |
333 |
| - bool bStartMenu=false; |
334 |
| - |
335 |
| - DWORD id; |
336 |
| - GetWindowThreadProcessId(hwnd,&id); |
337 |
| - HANDLE process=OpenProcess(PROCESS_QUERY_INFORMATION|PROCESS_VM_READ,FALSE,id); |
338 |
| - if (process) |
339 |
| - { |
340 |
| - bStartMenu=true; |
341 |
| - wchar_t path[_MAX_PATH]; |
342 |
| - DWORD size=_countof(path); |
343 |
| - |
344 |
| - FQueryFullProcessImageName queryFullProcessImageName=(FQueryFullProcessImageName)GetProcAddress(hKernel32,"QueryFullProcessImageNameW"); |
345 |
| - if (queryFullProcessImageName && queryFullProcessImageName(process,0,path,&size)) |
346 |
| - { |
347 |
| - DWORD q; |
348 |
| - DWORD size=GetFileVersionInfoSize(path,&q); |
349 |
| - if (size) |
350 |
| - { |
351 |
| - std::vector<char> buf(size); |
352 |
| - if (GetFileVersionInfo(path,0,size,&buf[0])) |
353 |
| - { |
354 |
| - VS_FIXEDFILEINFO *pVer; |
355 |
| - UINT len; |
356 |
| - if (VerQueryValue(&buf[0],L"\\",(void**)&pVer,&len) && pVer->dwProductVersionMS>0x20000) |
357 |
| - bStartMenu=false; |
358 |
| - } |
359 |
| - } |
360 |
| - } |
361 |
| - CloseHandle(process); |
362 |
| - } |
363 |
| - if (bStartMenu) |
364 |
| - { |
365 |
| - wchar_t strTitle[256]; |
366 |
| - if (!LoadString(hInstance,IDS_APP_TITLE,strTitle,_countof(strTitle))) strTitle[0]=0; |
367 |
| - wchar_t strText[1024]; |
368 |
| - if (!LoadString(hInstance,IDS_OLDSTARTMENU,strText,_countof(strText))) strText[0]=0; |
369 |
| - MessageBox(NULL,strText,strTitle,MB_OK|MB_ICONWARNING); |
370 |
| - } |
371 |
| - } |
372 | 328 | /*
|
373 | 329 | // warning about being beta
|
374 | 330 | if (!bQuiet)
|
|
0 commit comments