From 36e4271a5fccef47b81c5ff2dd362fb31cfd766c Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Sun, 10 Nov 2019 17:53:12 +0300 Subject: [PATCH] Updated Windows installer scripts --- Telegram/SourceFiles/_other/updater.cpp | 2 +- Telegram/SourceFiles/config.h | 2 +- Telegram/build/setup.iss | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Telegram/SourceFiles/_other/updater.cpp b/Telegram/SourceFiles/_other/updater.cpp index 40f8ee248..15e0b81ff 100644 --- a/Telegram/SourceFiles/_other/updater.cpp +++ b/Telegram/SourceFiles/_other/updater.cpp @@ -278,7 +278,7 @@ void updateRegistry() { writeLog(L"Updating registry.."); versionStr[versionLen / 2] = 0; HKEY rkey; - LSTATUS status = RegOpenKeyEx(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{53F49750-6209-4FBF-9CA8-7A333C87D1ED}_is1", 0, KEY_QUERY_VALUE | KEY_SET_VALUE, &rkey); + LSTATUS status = RegOpenKeyEx(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{C4A4AE8F-B9F7-4CC7-8A6C-BF7EEE87ACA5}_is1", 0, KEY_QUERY_VALUE | KEY_SET_VALUE, &rkey); if (status == ERROR_SUCCESS) { writeLog(L"Checking registry install location.."); static const int bufSize = 4096; diff --git a/Telegram/SourceFiles/config.h b/Telegram/SourceFiles/config.h index e7efbd9f9..020f87e4d 100644 --- a/Telegram/SourceFiles/config.h +++ b/Telegram/SourceFiles/config.h @@ -13,7 +13,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL constexpr str_const AppNameOld = "Telegram Win (Unofficial)"; constexpr str_const AppName = "Kotatogram Desktop"; -constexpr str_const AppId = "{53F49750-6209-4FBF-9CA8-7A333C87D1ED}"; // used in updater.cpp and Setup.iss for Windows +constexpr str_const AppId = "{C4A4AE8F-B9F7-4CC7-8A6C-BF7EEE87ACA5}"; // used in updater.cpp and Setup.iss for Windows constexpr str_const AppFile = "Kotatogram"; enum { diff --git a/Telegram/build/setup.iss b/Telegram/build/setup.iss index a599e247e..71e5e7d70 100644 --- a/Telegram/build/setup.iss +++ b/Telegram/build/setup.iss @@ -1,9 +1,9 @@ -#define MyAppShortName "Telegram" -#define MyAppName "Telegram Desktop" -#define MyAppPublisher "Telegram FZ-LLC" -#define MyAppURL "https://tdesktop.com" -#define MyAppExeName "Telegram.exe" -#define MyAppId "53F49750-6209-4FBF-9CA8-7A333C87D1ED" +#define MyAppShortName "Kotatogram" +#define MyAppName "Kotatogram Desktop" +#define MyAppPublisher "Kotatogram" +#define MyAppURL "https://kotatogram.github.io" +#define MyAppExeName "Kotatogram.exe" +#define MyAppId "C4A4AE8F-B9F7-4CC7-8A6C-BF7EEE87ACA5" [Setup] ; NOTE: The value of AppId uniquely identifies this application. @@ -22,7 +22,7 @@ AllowNoIcons=yes OutputDir={#ReleasePath} OutputBaseFilename=tsetup.{#MyAppVersionFull} SetupIconFile={#SourcePath}..\Resources\art\icon256.ico -UninstallDisplayIcon={app}\Telegram.exe +UninstallDisplayIcon={app}\Kotatogram.exe Compression=lzma SolidCompression=yes DisableStartupPrompt=yes @@ -48,7 +48,7 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{ Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; OnlyBelowVersion: 0,6.1 [Files] -Source: "{#ReleasePath}\Telegram.exe"; DestDir: "{app}"; Flags: ignoreversion +Source: "{#ReleasePath}\Kotatogram.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "{#ReleasePath}\Updater.exe"; DestDir: "{app}"; Flags: ignoreversion ; NOTE: Don't use "Flags: ignoreversion" on any shared system files