mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-02-10 18:05:16 +08:00
Add package type registry keys
This commit is contained in:
committed by
Alexey Golubev
parent
080b4b0708
commit
6ef5ab9f05
@ -24,7 +24,7 @@
|
||||
<ROW Property="CompanyPath" Value="ONLYOFFICE" ValueLocId="-"/>
|
||||
<ROW Property="DesktopPath" Value="DesktopEditors" ValueLocId="-"/>
|
||||
<ROW Property="EMPTY_LANG_DIR" Value="en-US"/>
|
||||
<ROW Property="Edition" Value="Open Source" ValueLocId="-"/>
|
||||
<ROW Property="Edition" Value="Community" ValueLocId="-"/>
|
||||
<ROW Property="ExtPfx" Value="ASC" ValueLocId="-"/>
|
||||
<ROW Property="FORMS" Value="1" ValueLocId="-"/>
|
||||
<ROW Property="IncompatibleVersion_ErrorText" Value="Another version of the application is already installed that is incompatible with this installation. Please uninstall the current version first or download the correct version to install."/>
|
||||
@ -1561,6 +1561,9 @@
|
||||
<ROW Registry="ModifyPath" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName] [ProductVersion]" Name="ModifyPath" Value="[AI_UNINSTALLER] /i [ProductCode] AI_UNINSTALLER_CTP=1" Component_="AI_CustomARPName"/>
|
||||
<ROW Registry="NoModify" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName] [ProductVersion]" Name="NoModify" Value="#1" Component_="AI_DisableModify" VirtualValue="#"/>
|
||||
<ROW Registry="NoRepair" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName] [ProductVersion]" Name="NoRepair" Value="#1" Component_="AI_CustomARPName" VirtualValue="#"/>
|
||||
<ROW Registry="PackageArch" Root="-1" Key="Software\[CompanyPath]\[DesktopPath]" Name="PackageArch" Value="[Arch]" Component_="c_reg_sw_app"/>
|
||||
<ROW Registry="PackageEdition" Root="-1" Key="Software\[CompanyPath]\[DesktopPath]" Name="PackageEdition" Value="[Edition]" Component_="c_reg_sw_app"/>
|
||||
<ROW Registry="PackageType" Root="-1" Key="Software\[CompanyPath]\[DesktopPath]" Name="PackageType" Value="advinst" Component_="c_reg_sw_app"/>
|
||||
<ROW Registry="ProductNameProductVersion" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName] [ProductVersion]" Name="\"/>
|
||||
<ROW Registry="Publisher" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName] [ProductVersion]" Name="Publisher" Value="[Manufacturer]" Component_="AI_CustomARPName"/>
|
||||
<ROW Registry="Readme" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName] [ProductVersion]" Name="Readme" Value="[ARPREADME]" Component_="AI_CustomARPName"/>
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user