2023-01-17 09:53:40 +01:00
|
|
|
;* Subtitle Edit - Installer script
|
2010-10-12 14:40:07 +02:00
|
|
|
;*
|
2016-01-24 11:48:32 +01:00
|
|
|
;* Copyright (C) 2010-2016 XhmikosR
|
2010-10-12 14:40:07 +02:00
|
|
|
;*
|
|
|
|
;* This file is part of Subtitle Edit.
|
|
|
|
;*
|
|
|
|
;* Subtitle Edit is free software; you can redistribute it and/or modify
|
|
|
|
;* it under the terms of the GNU General Public License as published by
|
|
|
|
;* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;* (at your option) any later version.
|
|
|
|
;*
|
|
|
|
;* Subtitle Edit is distributed in the hope that it will be useful,
|
|
|
|
;* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;* GNU General Public License for more details.
|
|
|
|
;*
|
|
|
|
;* You should have received a copy of the GNU General Public License
|
2021-05-24 08:19:56 +02:00
|
|
|
;* along with Subtitle Edit. If not, see <https://www.gnu.org/licenses/>.
|
2010-10-12 23:02:57 +02:00
|
|
|
|
2011-03-20 23:51:35 +01:00
|
|
|
; preprocessor checks
|
2023-02-09 19:53:32 +01:00
|
|
|
#if VER < EncodeVer(6,2,1)
|
|
|
|
#error Update your Inno Setup version (6.2.1 or newer)
|
2014-03-04 18:10:17 +01:00
|
|
|
#endif
|
|
|
|
|
2011-10-31 09:41:27 +01:00
|
|
|
#ifndef UNICODE
|
|
|
|
#error Use Inno Setup unicode
|
|
|
|
#endif
|
2011-03-20 23:51:35 +01:00
|
|
|
|
2023-01-17 09:53:40 +01:00
|
|
|
#define app_name "Subtitle Edit"
|
|
|
|
#define app_copyright "Nikse"
|
|
|
|
#define app_copyright_start "2001"
|
|
|
|
#define app_copyright_end GetDateTimeString('yyyy','','')
|
2011-10-31 09:41:27 +01:00
|
|
|
|
2011-11-05 10:46:37 +01:00
|
|
|
; If you don't define "localize", i.e. comment out the following line then no translations
|
|
|
|
; for SubtitleEdit or the installer itself will be included in the installer
|
|
|
|
#define localize
|
2013-01-31 17:33:01 +01:00
|
|
|
;#define TWO_DIGIT_VER
|
|
|
|
#define THREE_DIGIT_VER
|
2011-11-05 10:46:37 +01:00
|
|
|
|
2011-10-15 11:14:47 +02:00
|
|
|
|
2011-03-20 23:51:35 +01:00
|
|
|
#define VerMajor
|
|
|
|
#define VerMinor
|
|
|
|
#define VerBuild
|
|
|
|
#define VerRevision
|
|
|
|
|
2024-06-22 09:13:39 +02:00
|
|
|
#define bindir "..\src\ui\bin\Release\net48"
|
2013-02-23 04:48:09 +01:00
|
|
|
|
|
|
|
#ifnexist bindir + "\SubtitleEdit.exe"
|
2011-11-06 11:45:57 +01:00
|
|
|
#error Compile Subtitle Edit first
|
|
|
|
#endif
|
2011-06-05 00:16:49 +02:00
|
|
|
|
|
|
|
#expr ParseVersion(bindir + "\SubtitleEdit.exe", VerMajor, VerMinor, VerBuild, VerRevision)
|
2010-10-12 19:51:08 +02:00
|
|
|
|
2012-04-29 12:08:28 +02:00
|
|
|
#if defined(TWO_DIGIT_VER) && defined(THREE_DIGIT_VER)
|
|
|
|
#error You can't define TWO_DIGIT_VER and THREE_DIGIT_VER at the same time
|
|
|
|
#elif !defined(TWO_DIGIT_VER) && !defined(THREE_DIGIT_VER)
|
|
|
|
#error You must define TWO_DIGIT_VER or THREE_DIGIT_VER
|
|
|
|
#elif defined(TWO_DIGIT_VER)
|
|
|
|
#define app_ver str(VerMajor) + "." + str(VerMinor)
|
|
|
|
#define app_ver_full str(VerMajor) + "." + str(VerMinor) + ".0." + str(VerRevision)
|
|
|
|
#elif defined(THREE_DIGIT_VER)
|
|
|
|
#define app_ver str(VerMajor) + "." + str(VerMinor) + "." + str(VerBuild)
|
|
|
|
#define app_ver_full str(VerMajor) + "." + str(VerMinor) + "." + str(VerBuild) + "." + str(VerRevision)
|
|
|
|
#endif
|
2010-10-12 19:51:08 +02:00
|
|
|
|
2011-11-17 20:40:40 +01:00
|
|
|
#define quick_launch "{userappdata}\Microsoft\Internet Explorer\Quick Launch"
|
2015-10-27 13:39:09 +01:00
|
|
|
#define keySE "Software\Nikse\SubtitleEdit"
|
|
|
|
#define keyCl "Software\Classes"
|
|
|
|
#define keyApps "Software\Classes\Applications"
|
|
|
|
#define keyRegApps "Software\RegisteredApplications"
|
|
|
|
#define keyAppPaths "Software\Microsoft\Windows\CurrentVersion\App Paths"
|
2019-06-03 19:29:48 +02:00
|
|
|
#define keyMuiCache "Software\Classes\Local Settings\MuiCache"
|
2011-10-29 21:05:34 +02:00
|
|
|
|
2010-10-12 14:40:07 +02:00
|
|
|
[Setup]
|
2023-02-09 19:53:32 +01:00
|
|
|
AppID=SubtitleEdit
|
2023-01-17 09:53:40 +01:00
|
|
|
AppName={#app_name}
|
2012-04-29 12:08:28 +02:00
|
|
|
AppVersion={#app_ver_full}
|
2023-01-17 09:53:40 +01:00
|
|
|
AppVerName={#app_name} {#app_ver}
|
|
|
|
|
|
|
|
AppCopyright={#app_copyright} {#app_copyright_start} {#app_copyright_end}
|
|
|
|
AppPublisher={#app_copyright}
|
|
|
|
|
|
|
|
AppContact=https://www.nikse.dk/SubtitleEdit/Help
|
2019-03-04 17:24:50 +01:00
|
|
|
AppPublisherURL=https://www.nikse.dk/SubtitleEdit/
|
|
|
|
AppSupportURL=https://www.nikse.dk/SubtitleEdit/
|
|
|
|
AppUpdatesURL=https://www.nikse.dk/SubtitleEdit/
|
2023-01-17 09:53:40 +01:00
|
|
|
|
2012-04-29 12:08:28 +02:00
|
|
|
VersionInfoVersion={#app_ver_full}
|
2023-01-17 09:53:40 +01:00
|
|
|
VersionInfoDescription={#app_name} installer
|
|
|
|
VersionInfoProductName={#app_name}
|
|
|
|
|
|
|
|
UninstallDisplayName={#app_name}
|
|
|
|
UninstallDisplayIcon={app}\SubtitleEdit.exe
|
|
|
|
|
|
|
|
WizardStyle=modern
|
|
|
|
ShowLanguageDialog=yes
|
|
|
|
UsePreviousLanguage=no
|
|
|
|
|
|
|
|
DefaultDirName={pf}\{#app_name}
|
|
|
|
DefaultGroupName={#app_name}
|
2021-06-09 22:55:16 +02:00
|
|
|
MinVersion=6.0
|
2016-09-20 18:51:51 +02:00
|
|
|
LicenseFile=..\LICENSE.txt
|
2014-06-30 10:23:40 +02:00
|
|
|
InfoAfterFile=..\Changelog.txt
|
2020-11-19 20:53:49 +01:00
|
|
|
SetupIconFile=..\src\ui\Icons\SE.ico
|
2011-09-16 20:00:34 +02:00
|
|
|
WizardImageFile=Icons\WizardImageFile.bmp
|
2010-10-12 14:40:07 +02:00
|
|
|
WizardSmallImageFile=Icons\WizardSmallImageFile.bmp
|
|
|
|
OutputDir=.
|
2023-02-02 19:10:30 +01:00
|
|
|
OutputBaseFilename=SubtitleEdit-{#app_ver}-Setup
|
2010-10-12 23:02:57 +02:00
|
|
|
AllowNoIcons=yes
|
2011-02-28 11:27:20 +01:00
|
|
|
Compression=lzma2/ultra
|
2012-08-13 10:18:39 +02:00
|
|
|
InternalCompressLevel=ultra
|
2010-10-12 23:02:57 +02:00
|
|
|
SolidCompression=yes
|
|
|
|
ShowTasksTreeLines=yes
|
|
|
|
DisableReadyPage=yes
|
2010-10-12 14:40:07 +02:00
|
|
|
PrivilegesRequired=admin
|
2015-10-17 18:56:52 +02:00
|
|
|
ChangesAssociations=yes
|
2010-10-12 23:02:57 +02:00
|
|
|
DisableDirPage=auto
|
2010-10-12 14:40:07 +02:00
|
|
|
DisableProgramGroupPage=auto
|
2014-06-19 17:28:51 +02:00
|
|
|
CloseApplications=true
|
2015-07-22 20:55:41 +02:00
|
|
|
SetupMutex='subtitle_edit_setup_mutex'
|
2017-03-28 13:32:21 +02:00
|
|
|
ArchitecturesInstallIn64BitMode=x64
|
2010-10-12 23:02:57 +02:00
|
|
|
|
2023-01-22 20:25:09 +01:00
|
|
|
[Languages]
|
|
|
|
Name: "en"; MessagesFile: "compiler:Default.isl"
|
|
|
|
#ifdef localize
|
|
|
|
Name: "ar"; MessagesFile: "Languages\Arabic.isl"
|
|
|
|
Name: "bg"; MessagesFile: "Languages\Bulgarian.isl"
|
|
|
|
Name: "ca"; MessagesFile: "compiler:Languages\Catalan.isl"
|
|
|
|
Name: "cs"; MessagesFile: "compiler:Languages\Czech.isl"
|
|
|
|
Name: "da"; MessagesFile: "compiler:Languages\Danish.isl"
|
|
|
|
Name: "de"; MessagesFile: "compiler:Languages\German.isl"
|
|
|
|
Name: "el"; MessagesFile: "Languages\Greek.isl"
|
|
|
|
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"
|
|
|
|
Name: "eu"; MessagesFile: "Languages\Basque.isl"
|
|
|
|
Name: "fa"; MessagesFile: "Languages\Farsi.isl"
|
|
|
|
Name: "fi"; MessagesFile: "compiler:Languages\Finnish.isl"
|
|
|
|
Name: "fr"; MessagesFile: "compiler:Languages\French.isl"
|
|
|
|
Name: "hr"; MessagesFile: "Languages\Croatian.isl"
|
2023-01-22 20:35:21 +01:00
|
|
|
Name: "hu"; MessagesFile: "Languages\Hungarian.isl"
|
2023-01-22 20:25:09 +01:00
|
|
|
Name: "id"; MessagesFile: "Languages\Indonesian.isl"
|
|
|
|
Name: "it"; MessagesFile: "compiler:Languages\Italian.isl"
|
|
|
|
Name: "ja"; MessagesFile: "compiler:Languages\Japanese.isl"
|
|
|
|
Name: "ko"; MessagesFile: "Languages\Korean.isl"
|
|
|
|
Name: "mk"; MessagesFile: "Languages\Macedonian.isl"
|
|
|
|
Name: "nl"; MessagesFile: "compiler:Languages\Dutch.isl"
|
|
|
|
Name: "no"; MessagesFile: "compiler:Languages\Norwegian.isl"
|
|
|
|
Name: "pl"; MessagesFile: "compiler:Languages\Polish.isl"
|
|
|
|
Name: "pt"; MessagesFile: "compiler:Languages\Portuguese.isl"
|
|
|
|
Name: "ptBR"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
|
|
|
|
Name: "ro"; MessagesFile: "Languages\Romanian.isl"
|
|
|
|
Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl"
|
|
|
|
Name: "sl"; MessagesFile: "compiler:Languages\Slovenian.isl"
|
2023-01-22 20:35:21 +01:00
|
|
|
Name: "srC"; MessagesFile: "Languages\SerbianCyrillic.isl"
|
|
|
|
Name: "srL"; MessagesFile: "Languages\SerbianLatin.isl"
|
2023-01-22 20:25:09 +01:00
|
|
|
Name: "sv"; MessagesFile: "Languages\Swedish.isl"
|
|
|
|
Name: "th"; MessagesFile: "Languages\Thai.isl"
|
|
|
|
Name: "tr"; MessagesFile: "compiler:Languages\Turkish.isl"
|
|
|
|
Name: "uk"; MessagesFile: "compiler:Languages\Ukrainian.isl"
|
|
|
|
Name: "vi"; MessagesFile: "Languages\Vietnamese.isl"
|
|
|
|
Name: "zh"; MessagesFile: "Languages\ChineseSimplified.isl"
|
|
|
|
Name: "zhTW"; MessagesFile: "Languages\ChineseTraditional.isl"
|
|
|
|
#endif
|
|
|
|
|
2010-10-12 14:40:07 +02:00
|
|
|
|
2010-10-13 01:47:03 +02:00
|
|
|
; Include the installer's custom messages
|
2023-01-22 20:06:30 +01:00
|
|
|
#include "Subtitle_Edit_Localization.iss"
|
2023-01-01 12:54:46 +01:00
|
|
|
|
2011-06-02 12:56:32 +02:00
|
|
|
[Types]
|
|
|
|
Name: default; Description: {cm:types_default}
|
|
|
|
Name: custom; Description: {cm:types_custom}; Flags: iscustom
|
|
|
|
|
|
|
|
|
|
|
|
[Components]
|
2015-05-09 08:15:01 +02:00
|
|
|
Name: main; Description: Subtitle Edit {#app_ver}; Types: default custom; Flags: fixed
|
2011-06-02 12:56:32 +02:00
|
|
|
#ifdef localize
|
2015-05-09 08:15:01 +02:00
|
|
|
Name: translations; Description: {cm:comp_translations}; Types: default custom; Flags: disablenouninstallwarning
|
2011-06-02 12:56:32 +02:00
|
|
|
#endif
|
|
|
|
|
2010-10-12 23:02:57 +02:00
|
|
|
[Tasks]
|
2011-01-18 22:35:06 +01:00
|
|
|
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
|
|
|
|
Name: desktopicon\user; Description: {cm:tsk_CurrentUser}; GroupDescription: {cm:AdditionalIcons}; Flags: exclusive
|
|
|
|
Name: desktopicon\common; Description: {cm:tsk_AllUsers}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked exclusive
|
2012-05-30 13:14:23 +02:00
|
|
|
Name: quicklaunchicon; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked; OnlyBelowVersion: 6.01
|
2014-09-27 10:50:55 +02:00
|
|
|
Name: reset_dictionaries; Description: {cm:tsk_ResetDictionaries}; GroupDescription: {cm:tsk_Other}; Flags: checkedonce unchecked; Check: DictionariesExist()
|
|
|
|
Name: reset_settings; Description: {cm:tsk_ResetSettings}; GroupDescription: {cm:tsk_Other}; Flags: checkedonce unchecked; Check: SettingsExist()
|
2021-12-19 18:46:37 +01:00
|
|
|
Name: associate_common; Description: {cm:tsk_SetFileTypes}; GroupDescription: {cm:tsk_Other};
|
2010-10-12 23:02:57 +02:00
|
|
|
|
2010-10-12 14:40:07 +02:00
|
|
|
[Files]
|
2022-03-23 08:05:49 +01:00
|
|
|
Source: ..\Dictionaries\dan_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\deu_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\eng_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\fin_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\fra_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\hrb_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\hrv_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\hun_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\mkd_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\nld_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\nob_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\nor_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\pol_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\por_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\rus_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\spa_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\srp_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\swe_OCRFixReplaceList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\da_names.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\de_names.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\en_names.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\es_names.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\fi_names.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\fr_names.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\hr_names.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\nb_names.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\nl_names.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\pt_names.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\ru_names.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\names.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Dictionaries\ar_NoBreakAfterList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\bg_NoBreakAfterList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\da_NoBreakAfterList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\el_NoBreakAfterList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\en_NoBreakAfterList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\es_NoBreakAfterList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\hr_NoBreakAfterList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\mk_NoBreakAfterList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\pt_NoBreakAfterList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\ru_NoBreakAfterList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\sr_NoBreakAfterList.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2022-09-28 20:21:50 +02:00
|
|
|
Source: ..\Dictionaries\da_DK_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\de_DE_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\en_US_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2022-07-19 12:46:59 +02:00
|
|
|
Source: ..\Dictionaries\en_US_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion; Components: main
|
2022-09-28 20:21:50 +02:00
|
|
|
Source: ..\Dictionaries\es_MX_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\fi_FI_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\nl_NL_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\pt_PT_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\ru_RU_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2023-10-11 08:52:48 +02:00
|
|
|
Source: ..\Dictionaries\it_IT_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2022-03-23 08:05:49 +01:00
|
|
|
Source: ..\Dictionaries\en_US.aff; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\en_US.dic; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\dan_WordSplitList.txt; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\eng_WordSplitList.txt; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\fra_WordSplitList.txt; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\ita_WordSplitList.txt; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\pol_WordSplitList.txt; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\spa_WordSplitList.txt; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2022-06-29 05:20:18 +02:00
|
|
|
Source: ..\Dictionaries\deu_Nouns.txt; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2023-10-09 06:47:30 +02:00
|
|
|
Source: ..\Dictionaries\da_interjections_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\en_interjections_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Dictionaries\es_interjections_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2024-03-22 07:16:05 +01:00
|
|
|
Source: ..\Dictionaries\fr_interjections_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2021-12-23 16:36:24 +01:00
|
|
|
|
2020-01-11 18:56:48 +01:00
|
|
|
|
|
|
|
Source: ..\Ocr\Latin.db; DestDir: {userappdata}\Subtitle Edit\Ocr; Flags: ignoreversion uninsneveruninstall onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Ocr\Latin.nocr; DestDir: {userappdata}\Subtitle Edit\Ocr; Flags: ignoreversion uninsneveruninstall onlyifdoesntexist; Components: main
|
2011-09-14 09:06:37 +02:00
|
|
|
|
2022-03-23 08:05:49 +01:00
|
|
|
Source: ..\preview.mkv; DestDir: {userappdata}\Subtitle Edit; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
|
|
|
|
Source: ..\Icons\ass.ico; DestDir: {app}\Icons; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\dfxp.ico; DestDir: {app}\Icons; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2023-11-04 19:24:18 +01:00
|
|
|
Source: ..\Icons\lrc.ico; DestDir: {app}\Icons; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2022-03-23 08:05:49 +01:00
|
|
|
Source: ..\Icons\sbv.ico; DestDir: {app}\Icons; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\srt.ico; DestDir: {app}\Icons; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\ssa.ico; DestDir: {app}\Icons; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\stl.ico; DestDir: {app}\Icons; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\sub.ico; DestDir: {app}\Icons; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\sup.ico; DestDir: {app}\Icons; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\vtt.ico; DestDir: {app}\Icons; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\smi.ico; DestDir: {app}\Icons; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\itt.ico; DestDir: {app}\Icons; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2023-05-30 19:17:50 +02:00
|
|
|
|
2023-06-01 18:57:40 +02:00
|
|
|
Source: ..\Icons\DarkTheme\*.png; DestDir: {userappdata}\Subtitle Edit\Icons\DarkTheme; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\DefaultTheme\*.png; DestDir: {userappdata}\Subtitle Edit\Icons\DefaultTheme; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\Legacy\*.png; DestDir: {userappdata}\Subtitle Edit\Icons\Legacy; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\Black\*.png; DestDir: {userappdata}\Subtitle Edit\Icons\Black; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2023-05-30 19:17:50 +02:00
|
|
|
|
2023-09-05 05:23:46 +02:00
|
|
|
Source: ..\Icons\DarkTheme\VideoPlayer\*.png; DestDir: {userappdata}\Subtitle Edit\Icons\DarkTheme\VideoPlayer; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\DefaultTheme\VideoPlayer\*.png; DestDir: {userappdata}\Subtitle Edit\Icons\DefaultTheme\VideoPlayer; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\Legacy\VideoPlayer\*.png; DestDir: {userappdata}\Subtitle Edit\Icons\Legacy\VideoPlayer; Flags: ignoreversion onlyifdoesntexist; Components: main
|
|
|
|
Source: ..\Icons\Black\VideoPlayer\*.png; DestDir: {userappdata}\Subtitle Edit\Icons\Black\VideoPlayer; Flags: ignoreversion onlyifdoesntexist; Components: main
|
2023-09-05 05:10:50 +02:00
|
|
|
|
2011-06-02 12:56:32 +02:00
|
|
|
#ifdef localize
|
2015-05-09 08:15:01 +02:00
|
|
|
Source: {#bindir}\Languages\ar-EG.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\bg-BG.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
2016-06-11 12:11:30 +02:00
|
|
|
Source: {#bindir}\Languages\br-FR.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
2015-05-09 08:15:01 +02:00
|
|
|
Source: {#bindir}\Languages\ca-ES.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\cs-CZ.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\da-DK.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\de-DE.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\el-GR.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\es-AR.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\es-ES.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\es-MX.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\eu-ES.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\fa-IR.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\fi-FI.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\fr-FR.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\hr-HR.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\hu-HU.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
2019-05-10 02:45:32 +02:00
|
|
|
Source: {#bindir}\Languages\id-ID.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
2015-05-09 08:15:01 +02:00
|
|
|
Source: {#bindir}\Languages\it-IT.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\ja-JP.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\ko-KR.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
2019-11-05 06:20:33 +01:00
|
|
|
Source: {#bindir}\Languages\mk-MK.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
2016-02-11 21:57:19 +01:00
|
|
|
Source: {#bindir}\Languages\nb-NO.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
2015-05-09 08:15:01 +02:00
|
|
|
Source: {#bindir}\Languages\nl-NL.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\pl-PL.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\pt-BR.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\pt-PT.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\ro-RO.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\ru-RU.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\sl-SI.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\sr-Cyrl-RS.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\sr-Latn-RS.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\sv-SE.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\th-TH.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
|
|
|
Source: {#bindir}\Languages\tr-TR.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
2015-10-21 15:18:26 +02:00
|
|
|
Source: {#bindir}\Languages\uk-UA.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
2015-05-09 08:15:01 +02:00
|
|
|
Source: {#bindir}\Languages\vi-VN.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
2015-07-23 12:28:50 +02:00
|
|
|
Source: {#bindir}\Languages\zh-Hans.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
2016-03-22 12:02:25 +01:00
|
|
|
Source: {#bindir}\Languages\zh-TW.xml; DestDir: {app}\Languages; Flags: ignoreversion; Components: translations
|
2011-06-02 12:56:32 +02:00
|
|
|
#endif
|
2011-09-14 09:06:37 +02:00
|
|
|
|
2014-06-21 18:25:19 +02:00
|
|
|
Source: {#bindir}\SubtitleEdit.exe; DestDir: {app}; Flags: ignoreversion; Components: main
|
2020-01-11 18:56:48 +01:00
|
|
|
Source: {#bindir}\Hunspellx64.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
|
|
|
Source: {#bindir}\Hunspellx86.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
2021-09-17 16:59:05 +02:00
|
|
|
Source: {#bindir}\libse.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
|
|
|
Source: {#bindir}\zlib.net.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
|
|
|
Source: {#bindir}\NHunspell.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
|
|
|
Source: {#bindir}\UtfUnknown.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
2022-01-01 16:22:50 +01:00
|
|
|
Source: {#bindir}\Vosk.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
2022-01-05 15:55:14 +01:00
|
|
|
Source: {#bindir}\NCalc.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
2021-09-17 16:59:05 +02:00
|
|
|
Source: ..\src\ui\DLLs\Interop.QuartzTypeLib.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
|
|
|
Source: {#bindir}\Newtonsoft.Json.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
2023-08-26 08:37:06 +02:00
|
|
|
Source: {#bindir}\System.Net.Http.Extensions.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
|
|
|
Source: {#bindir}\System.Net.Http.Primitives.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
2022-09-20 07:39:46 +02:00
|
|
|
Source: {#bindir}\NAudio.Core.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
|
|
|
Source: {#bindir}\NAudio.WinMM.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
2022-11-04 22:19:13 +01:00
|
|
|
Source: {#bindir}\Microsoft.Win32.Registry.dll; DestDir: {app}; Flags: ignoreversion; Components: main
|
2014-06-30 10:23:40 +02:00
|
|
|
Source: ..\Changelog.txt; DestDir: {app}; Flags: ignoreversion; Components: main
|
2016-09-21 11:50:24 +02:00
|
|
|
Source: ..\LICENSE.txt; DestDir: {app}; Flags: ignoreversion; Components: main
|
2018-08-29 16:30:28 +02:00
|
|
|
Source: Icons\uninstall.ico; DestDir: {app}\Icons; Flags: ignoreversion; Components: main
|
|
|
|
|
2018-09-23 20:24:39 +02:00
|
|
|
Source: ..\Tesseract302\tessdata\configs\hocr; DestDir: {app}\Tesseract302\tessdata\configs; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Tesseract302\tessdata\eng.traineddata; DestDir: {app}\Tesseract302\tessdata; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Tesseract302\tessdata\music.traineddata; DestDir: {app}\Tesseract302\tessdata; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Tesseract302\tesseract.exe; DestDir: {app}\Tesseract302; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Tesseract302\msvcp90.dll; DestDir: {app}\Tesseract302; Flags: ignoreversion; Components: main
|
|
|
|
Source: ..\Tesseract302\msvcr90.dll; DestDir: {app}\Tesseract302; Flags: ignoreversion; Components: main
|
2010-10-12 14:40:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
[Icons]
|
2021-12-04 19:35:09 +01:00
|
|
|
Name: {group}\Subtitle Edit; Filename: {app}\SubtitleEdit.exe; WorkingDir: {app}; Comment: Subtitle Edit {#app_ver}; AppUserModelID: Nikse.SubtitleEdit; IconFilename: {app}\SubtitleEdit.exe; IconIndex: 0
|
|
|
|
Name: {group}\Help and Support\Changelog; Filename: {app}\Changelog.txt; WorkingDir: {app}; Comment: {cm:sm_com_Changelog}
|
|
|
|
Name: {group}\Help and Support\Online Help; Filename: https://www.nikse.dk/SubtitleEdit/Help
|
|
|
|
Name: {group}\Help and Support\{cm:ProgramOnTheWeb,Subtitle Edit}; Filename: https://www.nikse.dk/SubtitleEdit/; Comment: {cm:ProgramOnTheWeb,Subtitle Edit}
|
|
|
|
Name: {group}\{cm:UninstallProgram,Subtitle Edit}; Filename: {uninstallexe}; Comment: {cm:UninstallProgram,Subtitle Edit}; WorkingDir: {app}; IconFilename: {app}\Icons\uninstall.ico
|
2010-10-12 19:51:08 +02:00
|
|
|
|
2012-04-29 12:08:28 +02:00
|
|
|
Name: {commondesktop}\Subtitle Edit; Filename: {app}\SubtitleEdit.exe; WorkingDir: {app}; Comment: Subtitle Edit {#app_ver}; AppUserModelID: Nikse.SubtitleEdit; IconFilename: {app}\SubtitleEdit.exe; IconIndex: 0; Tasks: desktopicon\common
|
|
|
|
Name: {userdesktop}\Subtitle Edit; Filename: {app}\SubtitleEdit.exe; WorkingDir: {app}; Comment: Subtitle Edit {#app_ver}; AppUserModelID: Nikse.SubtitleEdit; IconFilename: {app}\SubtitleEdit.exe; IconIndex: 0; Tasks: desktopicon\user
|
|
|
|
Name: {#quick_launch}\Subtitle Edit; Filename: {app}\SubtitleEdit.exe; WorkingDir: {app}; Comment: Subtitle Edit {#app_ver}; IconFilename: {app}\SubtitleEdit.exe; IconIndex: 0; Tasks: quicklaunchicon
|
2010-10-12 14:40:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
[InstallDelete]
|
2011-10-29 21:05:34 +02:00
|
|
|
Type: files; Name: {userdesktop}\Subtitle Edit.lnk; Check: not IsTaskSelected('desktopicon\user') and IsUpgrade()
|
|
|
|
Type: files; Name: {commondesktop}\Subtitle Edit.lnk; Check: not IsTaskSelected('desktopicon\common') and IsUpgrade()
|
2012-05-30 13:14:23 +02:00
|
|
|
Type: files; Name: {#quick_launch}\Subtitle Edit.lnk; Check: not IsTaskSelected('quicklaunchicon') and IsUpgrade(); OnlyBelowVersion: 6.01
|
2011-01-18 22:35:06 +01:00
|
|
|
Type: files; Name: {userappdata}\Subtitle Edit\Settings.xml; Tasks: reset_settings
|
2021-09-17 16:59:05 +02:00
|
|
|
Type: files; Name: {app}\libse.dll; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\zlib.net.dll; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\NHunspell.dll; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\UtfUnknown.dll; Check: IsUpgrade()
|
2022-01-01 16:22:50 +01:00
|
|
|
Type: files; Name: {app}\Vosk.dll; Check: IsUpgrade()
|
2022-01-05 15:55:14 +01:00
|
|
|
Type: files; Name: {app}\NCalc.dll; Check: IsUpgrade()
|
2021-09-17 16:59:05 +02:00
|
|
|
Type: files; Name: {app}\Interop.QuartzTypeLib.dll; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Newtonsoft.Json.dll; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\System.Net.Http.Extensions.dll; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\System.Net.Http.Primitives.dll; Check: IsUpgrade()
|
2022-09-20 07:39:46 +02:00
|
|
|
Type: files; Name: {app}\NAudio.Core.dll; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\NAudio.WinMM.dll; Check: IsUpgrade()
|
2022-11-04 22:19:13 +01:00
|
|
|
Type: files; Name: {app}\Microsoft.Win32.Registry.dll; Check: IsUpgrade()
|
|
|
|
|
2014-09-21 09:48:46 +02:00
|
|
|
|
2011-09-14 09:06:37 +02:00
|
|
|
; Remove old files from the {app} dir
|
2019-06-03 12:57:18 +02:00
|
|
|
Type: files; Name: {app}\Dictionaries\da_names.xml; Check: IsUpgrade()
|
2022-09-28 20:21:50 +02:00
|
|
|
Type: files; Name: {app}\Dictionaries\da_DK_se.xml; Check: IsUpgrade()
|
2019-06-03 12:57:18 +02:00
|
|
|
Type: files; Name: {app}\Dictionaries\dan_OCRFixReplaceList.xml; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Dictionaries\en_US.aff; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Dictionaries\en_US.dic; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Dictionaries\en_names.xml; Check: IsUpgrade()
|
2022-09-28 20:21:50 +02:00
|
|
|
Type: files; Name: {app}\Dictionaries\en_US_se.xml; Check: IsUpgrade()
|
2022-07-19 12:46:59 +02:00
|
|
|
Type: files; Name: {app}\Dictionaries\en_US_se.xml; Check: IsUpgrade()
|
2019-06-03 12:57:18 +02:00
|
|
|
Type: files; Name: {app}\Dictionaries\eng_OCRFixReplaceList.xml; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Dictionaries\names.xml; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Dictionaries\no_names.xml; Check: IsUpgrade()
|
2021-12-23 16:36:24 +01:00
|
|
|
|
|
|
|
Type: files; Name: {app}\Dictionaries\dan_WordSplitList.txt; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Dictionaries\eng_WordSplitList.txt; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Dictionaries\fra_WordSplitList.txt; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Dictionaries\ita_WordSplitList.txt; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Dictionaries\pol_WordSplitList.txt; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Dictionaries\spa_WordSplitList.txt; Check: IsUpgrade()
|
2022-06-29 05:20:18 +02:00
|
|
|
Type: files; Name: {app}\Dictionaries\deu_Nouns.txt; Check: IsUpgrade()
|
2023-10-09 06:47:30 +02:00
|
|
|
Type: files; Name: {app}\Dictionaries\da_interjections_se.xml; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Dictionaries\en_interjections_se.xml; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Dictionaries\es_interjections_se.xml; Check: IsUpgrade()
|
2024-03-22 07:16:05 +01:00
|
|
|
Type: files; Name: {app}\Dictionaries\fr_interjections_se.xml; Check: IsUpgrade()
|
2021-12-23 16:36:24 +01:00
|
|
|
|
2019-06-03 12:57:18 +02:00
|
|
|
Type: dirifempty; Name: {app}\Dictionaries; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\TessData\eng.DangAmbigs; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\TessData\eng.freq-dawg; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\TessData\eng.inttemp; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\TessData\eng.normproto; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\TessData\eng.pffmtable; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\TessData\eng.unicharset; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\TessData\eng.user-words; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\TessData\eng.word-dawg; Check: IsUpgrade()
|
|
|
|
Type: dirifempty; Name: {app}\TessData; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Tesseract\leptonlib.dll; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\tessnet2_32.dll; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Tesseract302\tessdata\configs\hocr; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Tesseract302\tessdata\eng.traineddata; Check: IsUpgrade()
|
2018-09-23 20:24:39 +02:00
|
|
|
Type: files; Name: {app}\Tesseract302\tessdata\music.traineddata; Check: IsUpgrade()
|
2019-06-03 12:57:18 +02:00
|
|
|
Type: files; Name: {app}\Tesseract302\tesseract.exe; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Tesseract302\msvcp90.dll; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Tesseract302\msvcr90.dll; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Icons\SubtitleEdit.srt.ico; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\DocumentIcons.dll; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Settings.xml; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\gpl.txt; Check: IsUpgrade()
|
|
|
|
Type: files; Name: {app}\uninstall.ico; Check: IsUpgrade()
|
2011-01-19 10:40:07 +01:00
|
|
|
|
2011-09-15 22:17:10 +02:00
|
|
|
#ifdef localize
|
|
|
|
; Language files not included anymore
|
2011-09-14 09:06:37 +02:00
|
|
|
Type: files; Name: {app}\Languages\sr-Cyrl-CS.xml
|
|
|
|
Type: files; Name: {app}\Languages\sr-Latn-CS.xml
|
2015-07-30 18:44:22 +02:00
|
|
|
Type: files; Name: {app}\Languages\zh-CHS.xml
|
2011-09-14 09:06:37 +02:00
|
|
|
|
2012-02-11 12:29:17 +01:00
|
|
|
; Remove the language files if it's an upgrade and the translations are not selected
|
2015-05-09 08:15:01 +02:00
|
|
|
Type: files; Name: {app}\Languages\ar-EG.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\bg-BG.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2016-06-11 12:11:30 +02:00
|
|
|
Type: files; Name: {app}\Languages\br-FR.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2015-05-09 08:15:01 +02:00
|
|
|
Type: files; Name: {app}\Languages\ca-ES.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\cs-CZ.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\da-DK.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\de-DE.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\el-GR.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\es-AR.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\es-ES.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\es-MX.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\eu-ES.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\fa-IR.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\fi-FI.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\fr-FR.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\hr-HR.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\hu-HU.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2019-05-10 02:45:32 +02:00
|
|
|
Type: files; Name: {app}\Languages\id-ID.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2015-05-09 08:15:01 +02:00
|
|
|
Type: files; Name: {app}\Languages\it-IT.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\ja-JP.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\ko-KR.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2019-11-05 06:20:33 +01:00
|
|
|
Type: files; Name: {app}\Languages\mk-MK.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2016-02-17 19:16:22 +01:00
|
|
|
Type: files; Name: {app}\Languages\nb-NO.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2015-05-09 08:15:01 +02:00
|
|
|
Type: files; Name: {app}\Languages\nl-NL.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\pl-PL.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\pt-BR.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\pt-PT.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\ro-RO.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\ru-RU.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\sl-SI.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\sr-Cyrl-RS.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\sr-Latn-RS.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\sv-SE.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\th-TH.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
|
|
|
Type: files; Name: {app}\Languages\tr-TR.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2015-10-21 15:18:26 +02:00
|
|
|
Type: files; Name: {app}\Languages\uk-UA.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2015-05-09 08:15:01 +02:00
|
|
|
Type: files; Name: {app}\Languages\vi-VN.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2015-07-23 12:28:50 +02:00
|
|
|
Type: files; Name: {app}\Languages\zh-Hans.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2016-03-22 12:02:25 +01:00
|
|
|
Type: files; Name: {app}\Languages\zh-TW.xml; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2011-10-29 21:05:34 +02:00
|
|
|
Type: dirifempty; Name: {app}\Languages; Check: not IsComponentSelected('translations') and IsUpgrade()
|
2011-07-09 21:38:16 +02:00
|
|
|
#endif
|
2011-06-02 12:56:32 +02:00
|
|
|
|
2010-10-12 14:40:07 +02:00
|
|
|
|
|
|
|
[Run]
|
2021-05-24 08:19:56 +02:00
|
|
|
Filename: {win}\Microsoft.NET\Framework\v4.0.30319\ngen.exe; Parameters: "install ""{app}\SubtitleEdit.exe"""; StatusMsg: {cm:msg_OptimizingPerformance}; Flags: runhidden runascurrentuser skipifdoesntexist; Check: not IsWin64
|
|
|
|
Filename: {win}\Microsoft.NET\Framework64\v4.0.30319\ngen.exe; Parameters: "install ""{app}\SubtitleEdit.exe"""; StatusMsg: {cm:msg_OptimizingPerformance}; Flags: runhidden runascurrentuser skipifdoesntexist; Check: IsWin64
|
|
|
|
Filename: {app}\SubtitleEdit.exe; Description: {cm:LaunchProgram,Subtitle Edit}; WorkingDir: {app}; Flags: nowait postinstall skipifsilent unchecked
|
2019-03-04 17:24:50 +01:00
|
|
|
Filename: https://www.nikse.dk/SubtitleEdit/; Description: {cm:run_VisitWebsite}; Flags: nowait postinstall skipifsilent unchecked shellexec
|
2011-06-05 18:18:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
[UninstallRun]
|
2021-05-24 08:19:56 +02:00
|
|
|
Filename: {win}\Microsoft.NET\Framework\v4.0.30319\ngen.exe; Parameters: "uninstall ""{app}\SubtitleEdit.exe"""; Flags: runhidden runascurrentuser skipifdoesntexist; Check: not IsWin64
|
|
|
|
Filename: {win}\Microsoft.NET\Framework64\v4.0.30319\ngen.exe; Parameters: "uninstall ""{app}\SubtitleEdit.exe"""; Flags: runhidden runascurrentuser skipifdoesntexist; Check: IsWin64
|
2010-10-12 14:40:07 +02:00
|
|
|
|
|
|
|
|
2015-10-17 18:56:52 +02:00
|
|
|
[Registry]
|
2022-04-11 19:40:53 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.ass"; ValueData: "Advanced Sub Station Alpha subtitle file"; Flags: uninsdeletekey; ValueType: string; ValueName: ""; Check: DoSystemAssoc('ass')
|
2022-03-31 17:58:37 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.ass\shell\open\command"; ValueData: """{app}\SubtitleEdit.exe"" ""%1"""; ValueType: string; ValueName: ""; Check: DoSystemAssoc('ass')
|
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.ass\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Icons\ass.ico"; Check: DoSystemAssoc('ass')
|
2022-03-31 21:34:32 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\.ass"; ValueData: "SubtitleEdit.ass"; Flags: uninsdeletevalue; ValueType: string; Check: DoSystemAssoc('ass')
|
2022-03-31 17:58:37 +02:00
|
|
|
|
2022-03-31 21:46:18 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.dfxp"; ValueData: "Distribution Format Exchange Profile subtitle file"; Flags: uninsdeletekey; ValueType: string; ValueName: ""; Check: DoSystemAssoc('dfxp')
|
2022-03-31 17:58:37 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.dfxp\shell\open\command"; ValueData: """{app}\SubtitleEdit.exe"" ""%1"""; ValueType: string; ValueName: ""; Check: DoSystemAssoc('dfxp')
|
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.dfxp\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Icons\dfxp.ico"; Check: DoSystemAssoc('dfxp')
|
2022-03-31 21:34:32 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\.dfxp"; ValueData: "SubtitleEdit.dfxp"; Flags: uninsdeletevalue; ValueType: string; Check: DoSystemAssoc('dfxp')
|
2022-03-31 17:58:37 +02:00
|
|
|
|
2022-03-31 21:46:18 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.sbv"; ValueData: "SBV subtitle file"; Flags: uninsdeletekey; ValueType: string; ValueName: ""; Check: DoSystemAssoc('sbv')
|
2022-03-31 17:58:37 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.sbv\shell\open\command"; ValueData: """{app}\SubtitleEdit.exe"" ""%1"""; ValueType: string; ValueName: ""; Check: DoSystemAssoc('sbv')
|
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.sbv\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Icons\sbv.ico"; Check: DoSystemAssoc('sbv')
|
2022-03-31 21:34:32 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\.sbv"; ValueData: "SubtitleEdit.sbv"; Flags: uninsdeletevalue; ValueType: string; Check: DoSystemAssoc('sbv')
|
2022-03-31 17:58:37 +02:00
|
|
|
|
2022-03-31 21:46:18 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.srt"; ValueData: "SubRip subtitle file"; Flags: uninsdeletekey; ValueType: string; ValueName: ""; Check: DoSystemAssoc('srt')
|
2022-03-31 17:58:37 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.srt\shell\open\command"; ValueData: """{app}\SubtitleEdit.exe"" ""%1"""; ValueType: string; ValueName: ""; Check: DoSystemAssoc('srt')
|
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.srt\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Icons\srt.ico"; Check: DoSystemAssoc('srt')
|
2022-03-31 21:34:32 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\.srt"; ValueData: "SubtitleEdit.srt"; Flags: uninsdeletevalue; ValueType: string; Check: DoSystemAssoc('srt')
|
2022-03-31 17:58:37 +02:00
|
|
|
|
2022-03-31 21:46:18 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.ssa"; ValueData: "Sub Station Alpha subtitle file"; Flags: uninsdeletekey; ValueType: string; ValueName: ""; Check: DoSystemAssoc('ssa')
|
2022-03-31 17:58:37 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.ssa\shell\open\command"; ValueData: """{app}\SubtitleEdit.exe"" ""%1"""; ValueType: string; ValueName: ""; Check: DoSystemAssoc('ssa')
|
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.ssa\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Icons\ssa.ico"; Check: DoSystemAssoc('ssa')
|
2022-03-31 21:34:32 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\.ssa"; ValueData: "SubtitleEdit.ssa"; Flags: uninsdeletevalue; ValueType: string; Check: DoSystemAssoc('ssa')
|
2022-03-31 17:58:37 +02:00
|
|
|
|
2022-03-31 21:46:18 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.stl"; ValueData: "STL subtitle file"; Flags: uninsdeletekey; ValueType: string; ValueName: ""; Check: DoSystemAssoc('stl')
|
2022-03-31 17:58:37 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.stl\shell\open\command"; ValueData: """{app}\SubtitleEdit.exe"" ""%1"""; ValueType: string; ValueName: ""; Check: DoSystemAssoc('stl')
|
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.stl\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Icons\stl.ico"; Check: DoSystemAssoc('stl')
|
2022-03-31 21:34:32 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\.stl"; ValueData: "SubtitleEdit.stl"; Flags: uninsdeletevalue; ValueType: string; Check: DoSystemAssoc('stl')
|
2022-03-31 17:58:37 +02:00
|
|
|
|
2022-03-31 21:46:18 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.sub"; ValueData: "SUB subtitle file"; Flags: uninsdeletekey; ValueType: string; ValueName: ""; Check: DoSystemAssoc('sub')
|
2022-03-31 17:58:37 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.sub\shell\open\command"; ValueData: """{app}\SubtitleEdit.exe"" ""%1"""; ValueType: string; ValueName: ""; Check: DoSystemAssoc('sub')
|
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.sub\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Icons\sub.ico"; Check: DoSystemAssoc('sub')
|
2022-03-31 21:34:32 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\.sub"; ValueData: "SubtitleEdit.sub"; Flags: uninsdeletevalue; ValueType: string; Check: DoSystemAssoc('sub')
|
2022-03-31 17:58:37 +02:00
|
|
|
|
2022-03-31 21:46:18 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.sup"; ValueData: "Blu-ray PGS subtitle file"; Flags: uninsdeletekey; ValueType: string; ValueName: ""; Check: DoSystemAssoc('sup')
|
2022-03-31 17:58:37 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.sup\shell\open\command"; ValueData: """{app}\SubtitleEdit.exe"" ""%1"""; ValueType: string; ValueName: ""; Check: DoSystemAssoc('sup')
|
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.sup\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Icons\sup.ico"; Check: DoSystemAssoc('sup')
|
2022-03-31 21:34:32 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\.sup"; ValueData: "SubtitleEdit.sup"; Flags: uninsdeletevalue; ValueType: string; Check: DoSystemAssoc('sup')
|
2022-03-31 17:58:37 +02:00
|
|
|
|
2022-03-31 21:46:18 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.vtt"; ValueData: "Web Video Text Tracks (WebVTT) subtitle file"; Flags: uninsdeletekey; ValueType: string; ValueName: ""; Check: DoSystemAssoc('vtt')
|
2022-03-31 17:58:37 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.vtt\shell\open\command"; ValueData: """{app}\SubtitleEdit.exe"" ""%1"""; ValueType: string; ValueName: ""; Check: DoSystemAssoc('vtt')
|
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.vtt\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Icons\vtt.ico"; Check: DoSystemAssoc('vtt')
|
2022-03-31 21:34:32 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\.vtt"; ValueData: "SubtitleEdit.vtt"; Flags: uninsdeletevalue; ValueType: string; Check: DoSystemAssoc('vtt')
|
2022-03-31 17:58:37 +02:00
|
|
|
|
2022-03-31 21:46:18 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.smi"; ValueData: "SAMI subtitle file"; Flags: uninsdeletekey; ValueType: string; ValueName: ""; Check: DoSystemAssoc('smi')
|
2022-03-31 17:58:37 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.smi\shell\open\command"; ValueData: """{app}\SubtitleEdit.exe"" ""%1"""; ValueType: string; ValueName: ""; Check: DoSystemAssoc('smi')
|
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.smi\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Icons\smi.ico"; Check: DoSystemAssoc('smi')
|
2022-03-31 21:34:32 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\.smi"; ValueData: "SubtitleEdit.smi"; Flags: uninsdeletevalue; ValueType: string; Check: DoSystemAssoc('smi')
|
2022-03-31 17:58:37 +02:00
|
|
|
|
2022-03-31 21:46:18 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.itt"; ValueData: "iTunes Timed Text subtitle file"; Flags: uninsdeletekey; ValueType: string; ValueName: ""; Check: DoSystemAssoc('itt')
|
2022-03-31 17:58:37 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.itt\shell\open\command"; ValueData: """{app}\SubtitleEdit.exe"" ""%1"""; ValueType: string; ValueName: ""; Check: DoSystemAssoc('itt')
|
|
|
|
Root: HKCU ; Subkey: "Software\Classes\SubtitleEdit.itt\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\Icons\itt.ico"; Check: DoSystemAssoc('itt')
|
2022-03-31 21:34:32 +02:00
|
|
|
Root: HKCU ; Subkey: "Software\Classes\.itt"; ValueData: "SubtitleEdit.itt"; Flags: uninsdeletevalue; ValueType: string; Check: DoSystemAssoc('itt')
|
2021-12-22 18:08:01 +01:00
|
|
|
|
2021-12-19 18:46:37 +01:00
|
|
|
; Add .ass (Advanced SubStation Alpha) to the SE-supported file types
|
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".ass"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
|
|
|
|
|
|
|
; Add .dfxp to the SE-supported file types
|
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".dfxp"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
|
|
|
|
|
|
|
; Add .sbv to the SE-supported file types
|
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".sbv"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
|
|
|
|
|
|
|
; Add .srt (SubRip) to the SE-supported file types
|
2015-10-27 12:27:32 +01:00
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".srt"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
2021-12-19 18:46:37 +01:00
|
|
|
|
2019-11-03 19:35:22 +01:00
|
|
|
; Add .ssa (SubStation Alpha) to the SE-supported file types
|
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".ssa"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
2021-12-19 18:46:37 +01:00
|
|
|
|
|
|
|
; Add .sub to the SE-supported file types
|
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".sub"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
|
|
|
|
|
|
|
; Add .sup (Blu-ray sup) to the SE-supported file types
|
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".sup"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
|
|
|
|
|
|
|
; Add .vtt (Web VTT) to the SE-supported file types
|
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".vtt"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
|
|
|
|
|
|
|
|
2019-07-23 22:42:59 +02:00
|
|
|
; Add video files to the SE-supported file types
|
2020-01-21 01:34:51 +01:00
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".m2ts"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".mp4"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".mkv"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".mks"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".avi"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
|
|
|
Root: HKLM; Subkey: "{#keyApps}\SubtitleEdit.exe\SupportedTypes"; ValueType: string; ValueName: ".ts"; ValueData: ""; Check: HklmKeyExists('{#keyApps}')
|
2015-10-17 18:56:52 +02:00
|
|
|
|
|
|
|
|
2010-10-12 14:40:07 +02:00
|
|
|
[Code]
|
2015-10-17 18:56:52 +02:00
|
|
|
// Check if subkey exists in HKLM registry hive
|
|
|
|
function HklmKeyExists(const KeyName: String): Boolean;
|
|
|
|
begin
|
|
|
|
Result := RegKeyExists(HKEY_LOCAL_MACHINE, KeyName);
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
2010-10-12 14:40:07 +02:00
|
|
|
// Check if Subtitle Edit's settings exist
|
2014-09-27 10:50:55 +02:00
|
|
|
function SettingsExist(): Boolean;
|
2010-10-12 14:40:07 +02:00
|
|
|
begin
|
2015-10-17 18:56:52 +02:00
|
|
|
Result := FileExists(ExpandConstant('{userappdata}\Subtitle Edit\Settings.xml'));
|
2010-10-12 14:40:07 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
2010-10-27 14:58:11 +02:00
|
|
|
// Check if Dictionaries exist
|
2014-09-27 10:50:55 +02:00
|
|
|
function DictionariesExist(): Boolean;
|
2010-12-25 17:15:03 +01:00
|
|
|
var
|
|
|
|
FindRec: TFindRec;
|
2010-10-27 14:58:11 +02:00
|
|
|
begin
|
2011-10-29 21:05:34 +02:00
|
|
|
if FindFirst(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\*.aff'), FindRec) or
|
2020-01-11 18:56:48 +01:00
|
|
|
FindFirst(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\*.dic'), FindRec) or
|
|
|
|
FindFirst(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\*.xml'), FindRec) then
|
|
|
|
begin
|
2010-12-25 17:15:03 +01:00
|
|
|
Result := True;
|
|
|
|
FindClose(FindRec);
|
|
|
|
end else
|
|
|
|
Result := False;
|
2010-10-27 14:58:11 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
2016-03-15 01:08:31 +01:00
|
|
|
// Reset HKLM file type association if it is currently ours, and check if it should be renewed
|
|
|
|
function DoSystemAssoc(const FileType: String): Boolean;
|
|
|
|
var
|
|
|
|
CurrentProgId, MyProgId, KeyName: String;
|
|
|
|
begin
|
|
|
|
KeyName := '{#keyCl}\.' + FileType;
|
2021-12-21 21:07:59 +01:00
|
|
|
if RegQueryStringValue(HKEY_CURRENT_USER, KeyName, '', CurrentProgId) then
|
2019-06-03 19:29:48 +02:00
|
|
|
begin
|
2016-03-15 01:08:31 +01:00
|
|
|
MyProgId := 'SubtitleEdit.' + FileType;
|
|
|
|
if CompareText(CurrentProgId, MyProgId) = 0 then
|
2021-12-21 21:07:59 +01:00
|
|
|
RegWriteStringValue(HKEY_CURRENT_USER, KeyName, '', '');
|
2016-03-15 01:08:31 +01:00
|
|
|
end;
|
2021-12-19 18:46:37 +01:00
|
|
|
Result := IsTaskSelected('associate_common');
|
2016-03-15 01:08:31 +01:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
2019-06-03 12:57:18 +02:00
|
|
|
// Remove cached indirect strings from MUI cache
|
|
|
|
procedure ClearMUICacheKey(const KeyName: String);
|
|
|
|
var
|
|
|
|
Names: TArrayOfString;
|
|
|
|
Index: Integer;
|
|
|
|
begin
|
|
|
|
if RegGetSubkeyNames(HKEY_USERS, KeyName, Names) then
|
|
|
|
begin
|
|
|
|
for Index := Low(Names) to High(Names) do
|
|
|
|
ClearMUICacheKey(KeyName + '\' + Names[Index]);
|
|
|
|
end;
|
|
|
|
if RegGetValueNames(HKEY_USERS, KeyName, Names) then
|
|
|
|
begin
|
|
|
|
for Index := Low(Names) to High(Names) do
|
2019-06-03 19:29:48 +02:00
|
|
|
if Pos('\SubtitleEdit.resources.dll,', Names[Index]) <> 0 then
|
2019-06-03 12:57:18 +02:00
|
|
|
RegDeleteValue(HKEY_USERS, KeyName, Names[Index]);
|
|
|
|
end;
|
|
|
|
end;
|
2019-06-03 19:29:48 +02:00
|
|
|
|
2019-06-03 12:57:18 +02:00
|
|
|
procedure ClearMUICache();
|
|
|
|
var
|
|
|
|
Users: TArrayOfString;
|
|
|
|
Index: Integer;
|
2019-06-03 19:29:48 +02:00
|
|
|
Key: String;
|
2019-06-03 12:57:18 +02:00
|
|
|
begin
|
|
|
|
if RegGetSubkeyNames(HKEY_USERS, '', Users) then
|
|
|
|
begin
|
|
|
|
for Index := Low(Users) to High(Users) do
|
2019-06-03 19:29:48 +02:00
|
|
|
begin
|
|
|
|
Key := Users[Index] + '\{#keyMuiCache}';
|
|
|
|
if RegKeyExists(HKEY_USERS, Key) then
|
|
|
|
ClearMUICacheKey(Key);
|
|
|
|
end;
|
2019-06-03 12:57:18 +02:00
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
2010-10-27 14:58:11 +02:00
|
|
|
procedure CleanUpDictionaries();
|
2010-10-12 14:40:07 +02:00
|
|
|
begin
|
2010-10-27 12:17:52 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\dan_OCRFixReplaceList.xml'));
|
2011-11-06 12:22:02 +01:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\deu_OCRFixReplaceList.xml'));
|
2010-10-27 12:17:52 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\eng_OCRFixReplaceList.xml'));
|
2013-08-04 11:48:31 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\fin_OCRFixReplaceList.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\fra_OCRFixReplaceList.xml'));
|
2019-05-11 00:13:46 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\hrb_OCRFixReplaceList.xml'));
|
2015-03-30 01:28:18 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\hrv_OCRFixReplaceList.xml'));
|
2016-06-27 20:33:05 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\hun_OCRFixReplaceList.xml'));
|
2020-01-11 18:56:48 +01:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\mkd_OCRFixReplaceList.xml'));
|
2015-08-01 10:43:31 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\nld_OCRFixReplaceList.xml'));
|
2019-05-10 02:45:32 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\nob_OCRFixReplaceList.xml'));
|
2011-11-06 17:50:21 +01:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\nor_OCRFixReplaceList.xml'));
|
2020-05-22 11:09:45 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\pol_OCRFixReplaceList.xml'));
|
2015-03-29 13:52:09 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\por_OCRFixReplaceList.xml'));
|
2011-07-09 21:27:33 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\rus_OCRFixReplaceList.xml'));
|
2015-03-29 13:52:09 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\spa_OCRFixReplaceList.xml'));
|
2015-06-24 14:10:12 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\srp_OCRFixReplaceList.xml'));
|
2011-06-10 11:40:58 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\swe_OCRFixReplaceList.xml'));
|
2020-01-11 18:56:48 +01:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\da_names.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\de_names.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\en_names.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\es_names.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\fi_names.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\fr_names.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\hr_names.xml'));
|
2020-01-18 15:28:46 +01:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\nb_names.xml'));
|
2020-01-11 18:56:48 +01:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\nl_names.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\no_names.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\pt_names.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\ru_names.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\names.xml'));
|
2020-04-17 21:26:32 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\ar_NoBreakAfterList.xml'));
|
2020-05-02 21:21:52 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\bg_NoBreakAfterList.xml'));
|
2020-01-11 18:56:48 +01:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\da_NoBreakAfterList.xml'));
|
2020-05-09 20:10:19 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\el_NoBreakAfterList.xml'));
|
2020-01-11 18:56:48 +01:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\en_NoBreakAfterList.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\es_NoBreakAfterList.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\hr_NoBreakAfterList.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\mk_NoBreakAfterList.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\pt_NoBreakAfterList.xml'));
|
2020-10-06 14:42:40 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\ru_NoBreakAfterList.xml'));
|
2020-01-11 18:56:48 +01:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\sr_NoBreakAfterList.xml'));
|
2022-09-28 20:21:50 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\da_DK_se.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\de_DE_se.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\en_US_se.xml'));
|
2022-07-19 12:46:59 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\en_US_se.xml'));
|
2022-09-28 20:21:50 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\es_MX_se.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\fi_FI_se.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\nl_NL_se.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\pt_PT_se.xml'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\ru_RU_se.xml'));
|
2023-10-11 08:52:48 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\it_IT_se.xml'));
|
2014-09-27 10:50:27 +02:00
|
|
|
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\???_OCRFixReplaceList_User.xml'), False, True, False);
|
2010-10-27 12:17:52 +02:00
|
|
|
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\*.dic'), False, True, False);
|
|
|
|
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\*.aff'), False, True, False);
|
|
|
|
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries'));
|
2016-01-13 20:37:23 +01:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Ocr\Latin.db'));
|
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Ocr\Latin.nocr'));
|
2021-06-25 08:46:01 +02:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\preview.mkv'));
|
2021-12-19 18:46:37 +01:00
|
|
|
DeleteFile(ExpandConstant('{app}\Icons\ass.ico'));
|
|
|
|
DeleteFile(ExpandConstant('{app}\Icons\dfxp.ico'));
|
2023-11-04 19:24:18 +01:00
|
|
|
DeleteFile(ExpandConstant('{app}\Icons\lrc.ico'));
|
2021-12-19 18:46:37 +01:00
|
|
|
DeleteFile(ExpandConstant('{app}\Icons\sbv.ico'));
|
|
|
|
DeleteFile(ExpandConstant('{app}\Icons\srt.ico'));
|
|
|
|
DeleteFile(ExpandConstant('{app}\Icons\ssa.ico'));
|
|
|
|
DeleteFile(ExpandConstant('{app}\Icons\stl.ico'));
|
|
|
|
DeleteFile(ExpandConstant('{app}\Icons\sub.ico'));
|
|
|
|
DeleteFile(ExpandConstant('{app}\Icons\sup.ico'));
|
|
|
|
DeleteFile(ExpandConstant('{app}\Icons\vtt.ico'));
|
2021-12-22 18:08:01 +01:00
|
|
|
DeleteFile(ExpandConstant('{app}\Icons\smi.ico'));
|
|
|
|
DeleteFile(ExpandConstant('{app}\Icons\itt.ico'));
|
2021-12-19 18:46:37 +01:00
|
|
|
DelTree(ExpandConstant('{app}\Icons'), True, True, True);
|
|
|
|
RemoveDir(ExpandConstant('{app}\Icons'));
|
2016-01-13 20:37:23 +01:00
|
|
|
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Ocr\*.*'), False, True, False);
|
|
|
|
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\Ocr'));
|
2015-08-18 04:10:53 +02:00
|
|
|
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Plugins\*.*'), False, True, False);
|
|
|
|
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\Plugins'));
|
2023-05-30 19:17:50 +02:00
|
|
|
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Icons\*.*'), False, True, False);
|
2023-06-01 18:57:40 +02:00
|
|
|
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\Icons'));
|
2010-10-12 14:40:07 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
2011-10-09 08:14:54 +02:00
|
|
|
function IsUpgrade(): Boolean;
|
|
|
|
var
|
2019-05-10 02:45:32 +02:00
|
|
|
PrevPath: String;
|
2010-10-12 14:40:07 +02:00
|
|
|
begin
|
2019-05-10 02:45:32 +02:00
|
|
|
PrevPath := WizardForm.PrevAppDir;
|
|
|
|
Result := (PrevPath <> '');
|
2010-10-12 14:40:07 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
function ShouldSkipPage(PageID: Integer): Boolean;
|
|
|
|
begin
|
2011-10-25 21:43:06 +02:00
|
|
|
// Hide the license page
|
2019-05-10 02:45:32 +02:00
|
|
|
Result := (IsUpgrade() and (PageID = wpLicense))
|
2010-10-12 14:40:07 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
2010-10-12 23:02:57 +02:00
|
|
|
procedure CurPageChanged(CurPageID: Integer);
|
|
|
|
begin
|
|
|
|
if CurPageID = wpSelectTasks then
|
|
|
|
WizardForm.NextButton.Caption := SetupMessage(msgButtonInstall)
|
2010-10-12 23:39:27 +02:00
|
|
|
else if CurPageID = wpFinished then
|
|
|
|
WizardForm.NextButton.Caption := SetupMessage(msgButtonFinish)
|
2010-10-12 23:02:57 +02:00
|
|
|
else
|
|
|
|
WizardForm.NextButton.Caption := SetupMessage(msgButtonNext);
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
2010-10-27 14:58:11 +02:00
|
|
|
procedure CurStepChanged(CurStep: TSetupStep);
|
|
|
|
begin
|
|
|
|
if CurStep = ssInstall then begin
|
2012-01-07 23:18:43 +01:00
|
|
|
if IsTaskSelected('reset_dictionaries') then
|
2011-10-26 22:22:26 +02:00
|
|
|
CleanUpDictionaries();
|
2010-10-27 14:58:11 +02:00
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
|
2010-10-12 14:40:07 +02:00
|
|
|
begin
|
2010-10-27 14:58:11 +02:00
|
|
|
// When uninstalling ask user to delete Subtitle Edit's dictionaries and settings
|
2010-10-12 14:40:07 +02:00
|
|
|
// based on whether these files exist only
|
2020-01-29 13:35:02 +01:00
|
|
|
if CurUninstallStep = usUninstall then
|
|
|
|
begin
|
|
|
|
if SettingsExist() or DictionariesExist() then
|
|
|
|
begin
|
|
|
|
if SuppressibleMsgBox(CustomMessage('msg_DeleteSettings'), mbConfirmation, MB_YESNO or MB_DEFBUTTON2, IDNO) = IDYES then
|
|
|
|
begin
|
2011-10-26 22:22:26 +02:00
|
|
|
CleanUpDictionaries();
|
2011-01-18 22:35:06 +01:00
|
|
|
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Settings.xml'));
|
|
|
|
end;
|
|
|
|
|
2021-08-24 22:10:41 +02:00
|
|
|
DelTree(ExpandConstant('{userappdata}\Subtitle Edit'), True, True, True);
|
2010-10-12 14:40:07 +02:00
|
|
|
end;
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
2020-11-09 16:45:10 +01:00
|
|
|
function IsDotNetDetected(version: string; service: cardinal): boolean;
|
|
|
|
// Indicates whether the specified version and service pack of the .NET Framework is installed.
|
|
|
|
//
|
|
|
|
// version -- Specify one of these strings for the required .NET Framework version:
|
|
|
|
// 'v1.1' .NET Framework 1.1
|
|
|
|
// 'v2.0' .NET Framework 2.0
|
|
|
|
// 'v3.0' .NET Framework 3.0
|
|
|
|
// 'v3.5' .NET Framework 3.5
|
|
|
|
// 'v4\Client' .NET Framework 4.0 Client Profile
|
|
|
|
// 'v4\Full' .NET Framework 4.0 Full Installation
|
|
|
|
// 'v4.5' .NET Framework 4.5
|
|
|
|
// 'v4.5.1' .NET Framework 4.5.1
|
|
|
|
// 'v4.5.2' .NET Framework 4.5.2
|
|
|
|
// 'v4.6' .NET Framework 4.6
|
|
|
|
// 'v4.6.1' .NET Framework 4.6.1
|
|
|
|
// 'v4.6.2' .NET Framework 4.6.2
|
|
|
|
// 'v4.7' .NET Framework 4.7
|
|
|
|
// 'v4.7.1' .NET Framework 4.7.1
|
|
|
|
// 'v4.7.2' .NET Framework 4.7.2
|
|
|
|
// 'v4.8' .NET Framework 4.8
|
2022-09-24 07:59:45 +02:00
|
|
|
// 'v4.8.1' .NET Framework 4.8.1
|
2020-11-09 16:45:10 +01:00
|
|
|
//
|
|
|
|
// service -- Specify any non-negative integer for the required service pack level:
|
|
|
|
// 0 No service packs required
|
|
|
|
// 1, 2, etc. Service pack 1, 2, etc. required
|
|
|
|
var
|
|
|
|
key, versionKey: string;
|
|
|
|
install, release, serviceCount, versionRelease: cardinal;
|
|
|
|
success: boolean;
|
|
|
|
begin
|
|
|
|
versionKey := version;
|
|
|
|
versionRelease := 0;
|
|
|
|
|
|
|
|
// .NET 1.1 and 2.0 embed release number in version key
|
|
|
|
if version = 'v1.1' then begin
|
|
|
|
versionKey := 'v1.1.4322';
|
|
|
|
end else if version = 'v2.0' then begin
|
|
|
|
versionKey := 'v2.0.50727';
|
|
|
|
end
|
|
|
|
|
|
|
|
// .NET 4.5 and newer install as update to .NET 4.0 Full
|
|
|
|
else if Pos('v4.', version) = 1 then begin
|
|
|
|
versionKey := 'v4\Full';
|
|
|
|
case version of
|
|
|
|
'v4.5': versionRelease := 378389;
|
|
|
|
'v4.5.1': versionRelease := 378675; // 378758 on Windows 8 and older
|
|
|
|
'v4.5.2': versionRelease := 379893;
|
|
|
|
'v4.6': versionRelease := 393295; // 393297 on Windows 8.1 and older
|
|
|
|
'v4.6.1': versionRelease := 394254; // 394271 before Win10 November Update
|
|
|
|
'v4.6.2': versionRelease := 394802; // 394806 before Win10 Anniversary Update
|
|
|
|
'v4.7': versionRelease := 460798; // 460805 before Win10 Creators Update
|
|
|
|
'v4.7.1': versionRelease := 461308; // 461310 before Win10 Fall Creators Update
|
|
|
|
'v4.7.2': versionRelease := 461808; // 461814 before Win10 April 2018 Update
|
|
|
|
'v4.8': versionRelease := 528040; // 528049 before Win10 May 2019 Update
|
2022-09-24 07:59:45 +02:00
|
|
|
'4.8.1': versionRelease := 533325;
|
2020-11-09 16:45:10 +01:00
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
// installation key group for all .NET versions
|
|
|
|
key := 'SOFTWARE\Microsoft\NET Framework Setup\NDP\' + versionKey;
|
|
|
|
|
|
|
|
// .NET 3.0 uses value InstallSuccess in subkey Setup
|
|
|
|
if Pos('v3.0', version) = 1 then begin
|
|
|
|
success := RegQueryDWordValue(HKLM, key + '\Setup', 'InstallSuccess', install);
|
|
|
|
end else begin
|
|
|
|
success := RegQueryDWordValue(HKLM, key, 'Install', install);
|
|
|
|
end;
|
|
|
|
|
|
|
|
// .NET 4.0 and newer use value Servicing instead of SP
|
|
|
|
if Pos('v4', version) = 1 then begin
|
|
|
|
success := success and RegQueryDWordValue(HKLM, key, 'Servicing', serviceCount);
|
|
|
|
end else begin
|
|
|
|
success := success and RegQueryDWordValue(HKLM, key, 'SP', serviceCount);
|
|
|
|
end;
|
|
|
|
|
|
|
|
// .NET 4.5 and newer use additional value Release
|
|
|
|
if versionRelease > 0 then begin
|
|
|
|
success := success and RegQueryDWordValue(HKLM, key, 'Release', release);
|
|
|
|
success := success and (release >= versionRelease);
|
|
|
|
end;
|
|
|
|
|
|
|
|
result := success and (install = 1) and (serviceCount >= service);
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
2010-10-12 14:40:07 +02:00
|
|
|
function InitializeSetup(): Boolean;
|
|
|
|
var
|
2019-05-10 02:45:32 +02:00
|
|
|
ErrorCode: Integer;
|
2010-10-12 14:40:07 +02:00
|
|
|
begin
|
2022-09-24 07:59:45 +02:00
|
|
|
// Returns True if .NET Framework version 4.8 is installed, or a compatible version such as 4.8.1
|
|
|
|
Result := IsDotNetDetected('v4.8', 0);
|
2020-11-09 16:45:10 +01:00
|
|
|
if not Result then
|
|
|
|
begin
|
2021-05-24 08:19:56 +02:00
|
|
|
if not WizardSilent() then
|
2015-07-22 20:55:41 +02:00
|
|
|
begin
|
2020-11-09 16:45:10 +01:00
|
|
|
if SuppressibleMsgBox(CustomMessage('msg_AskToDownNET'), mbCriticalError, MB_YESNO or MB_DEFBUTTON1, IDNO) = IDYES then
|
|
|
|
ShellExec('open','https://go.microsoft.com/fwlink/?LinkId=2085155','','',SW_SHOWNORMAL,ewNoWait,ErrorCode);
|
2015-07-22 20:55:41 +02:00
|
|
|
Result := False;
|
2010-10-12 14:40:07 +02:00
|
|
|
end;
|
|
|
|
end;
|
2012-03-18 18:51:51 +01:00
|
|
|
end;
|
2020-11-09 16:45:10 +01:00
|
|
|
end.
|