mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +00:00
Updated Windows installer scripts
This commit is contained in:
parent
78aa2bdc35
commit
36e4271a5f
@ -278,7 +278,7 @@ void updateRegistry() {
|
|||||||
writeLog(L"Updating registry..");
|
writeLog(L"Updating registry..");
|
||||||
versionStr[versionLen / 2] = 0;
|
versionStr[versionLen / 2] = 0;
|
||||||
HKEY rkey;
|
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) {
|
if (status == ERROR_SUCCESS) {
|
||||||
writeLog(L"Checking registry install location..");
|
writeLog(L"Checking registry install location..");
|
||||||
static const int bufSize = 4096;
|
static const int bufSize = 4096;
|
||||||
|
@ -13,7 +13,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
constexpr str_const AppNameOld = "Telegram Win (Unofficial)";
|
constexpr str_const AppNameOld = "Telegram Win (Unofficial)";
|
||||||
constexpr str_const AppName = "Kotatogram Desktop";
|
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";
|
constexpr str_const AppFile = "Kotatogram";
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#define MyAppShortName "Telegram"
|
#define MyAppShortName "Kotatogram"
|
||||||
#define MyAppName "Telegram Desktop"
|
#define MyAppName "Kotatogram Desktop"
|
||||||
#define MyAppPublisher "Telegram FZ-LLC"
|
#define MyAppPublisher "Kotatogram"
|
||||||
#define MyAppURL "https://tdesktop.com"
|
#define MyAppURL "https://kotatogram.github.io"
|
||||||
#define MyAppExeName "Telegram.exe"
|
#define MyAppExeName "Kotatogram.exe"
|
||||||
#define MyAppId "53F49750-6209-4FBF-9CA8-7A333C87D1ED"
|
#define MyAppId "C4A4AE8F-B9F7-4CC7-8A6C-BF7EEE87ACA5"
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
; NOTE: The value of AppId uniquely identifies this application.
|
; NOTE: The value of AppId uniquely identifies this application.
|
||||||
@ -22,7 +22,7 @@ AllowNoIcons=yes
|
|||||||
OutputDir={#ReleasePath}
|
OutputDir={#ReleasePath}
|
||||||
OutputBaseFilename=tsetup.{#MyAppVersionFull}
|
OutputBaseFilename=tsetup.{#MyAppVersionFull}
|
||||||
SetupIconFile={#SourcePath}..\Resources\art\icon256.ico
|
SetupIconFile={#SourcePath}..\Resources\art\icon256.ico
|
||||||
UninstallDisplayIcon={app}\Telegram.exe
|
UninstallDisplayIcon={app}\Kotatogram.exe
|
||||||
Compression=lzma
|
Compression=lzma
|
||||||
SolidCompression=yes
|
SolidCompression=yes
|
||||||
DisableStartupPrompt=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
|
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; OnlyBelowVersion: 0,6.1
|
||||||
|
|
||||||
[Files]
|
[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
|
Source: "{#ReleasePath}\Updater.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user