From 6ef5ab9f058adfc290b732639447be75a1393c1e Mon Sep 17 00:00:00 2001 From: Semyon Bezrukov Date: Thu, 27 Nov 2025 18:07:24 +0300 Subject: [PATCH] Add package type registry keys --- win-linux/package/windows/DesktopEditors.aip | 5 ++++- win-linux/package/windows/common.iss | 23 ++++++++++---------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/win-linux/package/windows/DesktopEditors.aip b/win-linux/package/windows/DesktopEditors.aip index faa44ad74..714452e25 100644 --- a/win-linux/package/windows/DesktopEditors.aip +++ b/win-linux/package/windows/DesktopEditors.aip @@ -24,7 +24,7 @@ - + @@ -1561,6 +1561,9 @@ + + + diff --git a/win-linux/package/windows/common.iss b/win-linux/package/windows/common.iss index 90f5f1695..168794527 100644 --- a/win-linux/package/windows/common.iss +++ b/win-linux/package/windows/common.iss @@ -5,6 +5,9 @@ #endif #include BRANDING_DIR + '\defines.iss' +#ifndef PACKAGE_EDITION +#define PACKAGE_EDITION 'Community' +#endif #ifndef VERSION #define VERSION '0.0.0.0' #endif @@ -15,14 +18,15 @@ #ifndef BUILD_DIR #define BUILD_DIR '.\build.' + ARCH #endif -#ifdef PACKAGE_EDITION -#define sPackageName sPackageName + '-' + PACKAGE_EDITION -#endif #ifndef OUTPUT_DIR #define OUTPUT_DIR '.' #endif #ifndef OUTPUT_FILE +#if PACKAGE_EDITION == 'Community' #define OUTPUT_FILE sPackageName + '-' + VERSION + '-' + ARCH +#else +#define OUTPUT_FILE sPackageName + '-' + PACKAGE_EDITION + '-' + VERSION + '-' + ARCH +#endif #endif #if FileExists(BRANDING_DIR + '\branding.iss') @@ -68,7 +72,7 @@ DisableDirPage = auto AllowNoIcons = yes AlwaysShowDirOnReadyPage = yes UninstallDisplayIcon = {app}\app.ico -#ifndef PACKAGE_EDITION +#if PACKAGE_EDITION == "Community" | PACKAGE_EDITION == "XP" UninstallDisplayName = {#sAppName} {#sAppVerShort} ({#ARCH}) #else UninstallDisplayName = {#sAppName} ({#PACKAGE_EDITION}) {#sAppVerShort} ({#ARCH}) @@ -103,15 +107,11 @@ SignTool =byparam $p SetupIconFile={#BRANDING_DIR}\..\..\extras\projicons\res\icons\desktopeditors.ico WizardImageFile={#BRANDING_DIR}\data\dialogpicture*.bmp WizardSmallImageFile={#BRANDING_DIR}\data\dialogicon*.bmp -#ifdef PACKAGE_EDITION #if PACKAGE_EDITION == "Enterprise" LicenseFile={#BRANDING_DIR}\..\..\..\common\package\license\commercial\LICENSE.rtf #else LicenseFile={#BRANDING_DIR}\..\..\..\common\package\license\opensource\LICENSE.rtf #endif -#else -LicenseFile={#BRANDING_DIR}\..\..\..\common\package\license\opensource\LICENSE.rtf -#endif SolidCompression=yes Compression=lzma2/ultra64 @@ -1188,15 +1188,11 @@ Source: "{#BUILD_DIR}\help\*"; DestDir: {app}; Flags: ignoreversion recursesubdi Source: "{#BUILD_DIR}\desktop\*.exe"; DestDir: {app}; Flags: recursesubdirs signonce; Source: "{#BUILD_DIR}\desktop\*.dll"; DestDir: {app}; Flags: recursesubdirs signonce; Source: "..\..\..\common\converter\package.config"; DestDir: {app}\converter; -#ifdef PACKAGE_EDITION #if PACKAGE_EDITION == "Enterprise" Source: "{#BRANDING_DIR}\..\..\..\common\package\license\commercial\LICENSE.txt"; DestDir: {app}; DestName: "EULA.txt"; #else Source: "{#BRANDING_DIR}\..\..\..\common\package\license\opensource\LICENSE.txt"; DestDir: {app}; #endif -#else -Source: "{#BRANDING_DIR}\..\..\..\common\package\license\opensource\LICENSE.txt"; DestDir: {app}; -#endif Source: "{#BRANDING_DIR}\..\..\..\common\package\license\3dparty\3DPARTYLICENSE"; DestDir: {app}; [InstallDelete] @@ -1237,6 +1233,9 @@ Root: HKLM; Subkey: {#APP_REG_PATH}; ValueType: string; ValueName: AppPath; Root: HKLM; Subkey: {#APP_REG_PATH}; ValueType: string; ValueName: locale; ValueData: {code:getAppPrevLang}; Flags: uninsdeletevalue; Root: HKCU; Subkey: {#APP_REG_PATH}; ValueType: string; ValueName: locale; ValueData: {code:getAppPrevLang}; Flags: uninsdeletevalue; Root: HKLM; Subkey: {#APP_REG_PATH}; ValueType: qword; ValueName: timestamp; ValueData: {code:getPosixTime}; Flags: uninsdeletevalue; +Root: HKLM; Subkey: "{#APP_REG_PATH}"; ValueType: "string"; ValueName: "PackageArch"; ValueData: "{#ARCH}"; Flags: uninsdeletevalue; +Root: HKLM; Subkey: "{#APP_REG_PATH}"; ValueType: "string"; ValueName: "PackageEdition"; ValueData: "{#PACKAGE_EDITION}"; Flags: uninsdeletevalue; +Root: HKLM; Subkey: "{#APP_REG_PATH}"; ValueType: "string"; ValueName: "PackageType"; ValueData: "inno"; Flags: uninsdeletevalue; #ifdef _ONLYOFFICE Root: HKLM; Subkey: "SOFTWARE\Classes\{#sAppProtocol}"; ValueType: "string"; ValueData: "URL:{#sAppName} Protocol"; Flags: uninsdeletekey;