When an update is available, the notification displays the version of the update; The updater correctly detects when the current version is a pre-release but the user has switched the update channel to stable and does not suggest the older stable version as an update anymore (multiple reports, #540, #710)

This commit is contained in:
Valentin Radu
2022-01-22 21:12:18 +02:00
parent 8d74ffbedb
commit ca8fbe010f
6 changed files with 183 additions and 19 deletions
+3 -1
View File
@@ -14,10 +14,12 @@ int WINAPI wWinMain(
GetModuleFileNameW(GetModuleHandle(NULL), wszPath, MAX_PATH);
PathRemoveFileSpecW(wszPath);
wcscat_s(wszPath, MAX_PATH, L"\\" _T(PRODUCT_NAME) L".amd64.dll");
HMODULE hModule = LoadLibraryExW(wszPath, NULL, LOAD_LIBRARY_AS_DATAFILE);
CHAR hash[100];
ZeroMemory(hash, 100);
ComputeFileHash(wszPath, hash, 100);
ComputeFileHash2(hModule, wszPath, hash, 100);
FreeLibrary(hModule);
PathRemoveFileSpecW(wszPath);
wcscat_s(wszPath, MAX_PATH, L"\\" _T(SETUP_UTILITY_NAME));