[win-linux] update manager: debug

This commit is contained in:
SimplestStudio
2023-09-07 19:33:53 +03:00
parent 3f14fdf14a
commit 01e4663db0
2 changed files with 3 additions and 6 deletions

View File

@ -496,7 +496,7 @@ void CSvcManager::startReplacingFiles(const tstring &packageType, const bool res
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"), 0, KEY_ALL_ACCESS, &hKey) == ERROR_SUCCESS) {
wstring app_name(TEXT(WINDOW_NAME));
wstring app_key(app_name);
app_key += (packageType == TEXT("iss")) ? L"_is1" : L"_is2";
app_key += (packageType == TEXT("iss")) ? L"_is1" : L"";
if (RegOpenKeyEx(hKey, app_key.c_str(), 0, KEY_ALL_ACCESS, &hAppKey) == ERROR_SUCCESS) {
wstring disp_name = app_name + L" " + ver + L" (" + currentArch().substr(1) + L")";
if (RegSetValueEx(hAppKey, TEXT("DisplayName"), 0, REG_SZ, (const BYTE*)disp_name.c_str(), (DWORD)(disp_name.length() + 1) * sizeof(WCHAR)) != ERROR_SUCCESS)