mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win-linux] update manager: debug
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user