Fixed "DisplayVersion" not created in program uninstallation registry entry (microsoft/winget-pkgs/pull/37596)

This commit is contained in:
Valentin Radu
2021-12-13 19:10:01 +02:00
parent 4ec8cc10f7
commit dfd703004c
+3 -3
View File
@@ -94,9 +94,9 @@ BOOL SetupUninstallEntry(BOOL bInstall, WCHAR* wszPath)
}
if (!dwLastError)
{
PathRemoveFileSpecW(wszPath);
wcscat_s(wszPath, MAX_PATH, L"\\" _T(PRODUCT_NAME) L".amd64.dll");
HMODULE hEP = LoadLibraryExW(wszPath, NULL, LOAD_LIBRARY_AS_DATAFILE);
PathRemoveFileSpecW(wszPath + 1);
wcscat_s(wszPath + 1, MAX_PATH - 2, L"\\" _T(PRODUCT_NAME) L".amd64.dll");
HMODULE hEP = LoadLibraryExW(wszPath + 1, NULL, LOAD_LIBRARY_AS_DATAFILE);
if (hEP)
{
DWORD dwLeftMost = 0;