2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-29 05:37:45 +00:00

Updated Windows installer scripts

This commit is contained in:
RadRussianRus 2019-11-10 17:53:12 +03:00
parent 78aa2bdc35
commit 36e4271a5f
3 changed files with 10 additions and 10 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -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