forked from mia/Aegisub
Installer updates for 2.1.7:
* Now picks up (almost) all files from a tree in src/ under dir with the .iss file * Perfect (I think) upgrade from 1.x versions * Remove the compile defines stuff, there's only one installer version * Good, old-fashioned unconditional installation of MSVC runtimes To be done: * Upgrades from earlier 2.x versions (need to collect samples to test against) Originally committed to SVN as r3057.
This commit is contained in:
parent
0d1ede1ed1
commit
9aaa1ed903
6 changed files with 382 additions and 192 deletions
|
@ -1,4 +1,4 @@
|
|||
; Copyright (c) 2007, Niels Martin Hansen
|
||||
; Copyright (c) 2007-2009, Niels Martin Hansen
|
||||
;
|
||||
; Redistribution and use in source and binary forms, with or without
|
||||
; modification, are permitted provided that the following conditions are met:
|
||||
|
@ -28,211 +28,170 @@
|
|||
;
|
||||
; AEGISUB
|
||||
;
|
||||
; Website: http://aegisub.net/
|
||||
; Contact: mailto:jiifurusu@gmail.com
|
||||
; Website: http://www.aegisub.org/
|
||||
; Contact: mailto:nielsm@indvikleren.dk
|
||||
;
|
||||
|
||||
#define MyAppName "Aegisub"
|
||||
#define MyAppRevision "r2494"
|
||||
#define MyAppVer "2.1.6 Release Preview"
|
||||
#define MyAppPublisher "Aegisub Team"
|
||||
#define MyAppURL "http://aegisub.net/"
|
||||
#define MyAppExeName "Aegisub.exe"
|
||||
|
||||
; Set these to 0 to make building the installer faster.
|
||||
; Only intended for testing.
|
||||
#define IncludeSpeller 1
|
||||
#define IncludeThesaurus 1
|
||||
#define IncludePerl 1
|
||||
#define IncludeFfmpeg 0
|
||||
|
||||
|
||||
[Setup]
|
||||
AppName={#MyAppName}
|
||||
AppVerName={#MyAppName} {#MyAppVer} {#MyAppRevision}
|
||||
AppPublisher={#MyAppPublisher}
|
||||
AppPublisherURL={#MyAppURL}
|
||||
AppSupportURL={#MyAppURL}
|
||||
AppUpdatesURL={#MyAppURL}
|
||||
DefaultDirName={pf}\{#MyAppName}
|
||||
DefaultGroupName={#MyAppName}
|
||||
AppName=Aegisub
|
||||
AppVerName=Aegisub 2.1.7
|
||||
AppPublisher=Aegisub Team
|
||||
AppPublisherURL=http://www.aegisub.org/
|
||||
AppSupportURL=http://forum.aegisub.org/
|
||||
DefaultDirName={pf}\Aegisub
|
||||
DefaultGroupName=Aegisub
|
||||
AllowNoIcons=true
|
||||
OutputDir=output
|
||||
#ifndef Lite
|
||||
OutputBaseFilename=aegisub-{#MyAppRevision}-setup
|
||||
#else
|
||||
OutputBaseFilename=aegisub-{#MyAppRevision}-lite-setup
|
||||
#endif
|
||||
OutputBaseFilename=aegisub-2.1.7-setup
|
||||
Compression=lzma/ultra64
|
||||
SolidCompression=true
|
||||
MinVersion=0,5.0.2195
|
||||
MinVersion=0,5.0
|
||||
ShowLanguageDialog=no
|
||||
LanguageDetectionMethod=none
|
||||
WizardImageFile=welcome.bmp
|
||||
WizardSmallImageFile=aegisub.bmp
|
||||
AppCopyright=© 2005-2008 The Aegisub Team
|
||||
AppCopyright=© 2005-2009 The Aegisub Team
|
||||
PrivilegesRequired=poweruser
|
||||
DisableProgramGroupPage=true
|
||||
UsePreviousGroup=false
|
||||
AlwaysShowComponentsList=true
|
||||
AppVersion={#MyAppVer} {#MyAppRevision}
|
||||
AppVersion=2.1.7
|
||||
AppID={{24BC8B57-716C-444F-B46B-A3349B9164C5}
|
||||
UninstallDisplayIcon={app}\Aegisub.exe
|
||||
UninstallDisplayIcon={app}\aegisub32.exe
|
||||
|
||||
[Languages]
|
||||
Name: english; MessagesFile: compiler:Default.isl
|
||||
|
||||
[Files]
|
||||
; Legacy uninstall data
|
||||
DestDir: {tmp}; Flags: dontcopy; Source: legacy_filelist.txt
|
||||
DestDir: {tmp}; Flags: dontcopy; Source: legacy_dirlist.txt
|
||||
DestDir: {tmp}; Flags: dontcopy; Source: legacy_locales.txt
|
||||
DestDir: {tmp}; Flags: dontcopy; Source: legacy_shortcutlist.txt
|
||||
; redist
|
||||
;Source: RuntimeTestLibrary\RuntimeTestLibrary.dll; Flags: dontcopy nocompression
|
||||
Source: redist\vcredist_x86.exe; Flags: dontcopy nocompression
|
||||
DestDir: {tmp}; Source: src\vcredist_x86.exe; Flags: nocompression deleteafterinstall
|
||||
; main
|
||||
DestDir: {app}; Source: ..\bin\Aegisub.exe; Flags: ignoreversion; Components: main
|
||||
DestDir: {app}; Source: ..\bin\Aegisub.pdb; Flags: ignoreversion; Components: main/pdb
|
||||
DestDir: {app}; Source: ..\aegisub\changelog.txt; Flags: ignoreversion; Tasks: ; Components: main
|
||||
DestDir: {app}; Source: src\aegisub32.exe; Flags: ignoreversion; Components: main
|
||||
DestDir: {app}; Source: src\aegisub32.pdb; Flags: ignoreversion; Components: main/pdb
|
||||
DestDir: {app}; Source: license.txt; Flags: ignoreversion; Tasks: ; Languages: ; Components: main
|
||||
DestDir: {app}; Source: ..\bin\aegisub-auto3.dll; Flags: ignoreversion; Components: main
|
||||
DestDir: {app}; Source: ..\bin\OpenAL32.dll; Flags: ignoreversion; Components: main
|
||||
DestDir: {app}; Source: src\libauto3_32.dll; Flags: ignoreversion; Components: main
|
||||
DestDir: {app}; Source: src\libauto3_32.pdb; Flags: ignoreversion; Components: main/pdb
|
||||
; avisynth
|
||||
DestDir: {app}; Source: ..\bin\devil.dll; Flags: ignoreversion; Components: codec
|
||||
DestDir: {app}; Source: ..\bin\avisynth.dll; Flags: ignoreversion; Components: codec
|
||||
DestDir: {app}; Source: ..\bin\DirectShowSource.dll; Flags: ignoreversion; Components: codec
|
||||
DestDir: {app}; Source: src\devil.dll; Flags: ignoreversion; Components: codec
|
||||
DestDir: {app}; Source: src\avisynth.dll; Flags: ignoreversion; Components: codec
|
||||
DestDir: {app}; Source: src\DirectShowSource.dll; Flags: ignoreversion; Components: codec
|
||||
; ffmpegsource
|
||||
DestDir: {app}; Source: ..\bin\FFMS2.dll; Flags: ignoreversion; Components: codec
|
||||
DestDir: {app}; Source: ..\bin\ffms2.html; Flags: ignoreversion; Components: codec
|
||||
#if IncludeFfmpeg != 0
|
||||
DestDir: {app}; Source: ..\bin\avcodec-51.dll; Flags: ignoreversion; Components: codec
|
||||
DestDir: {app}; Source: ..\bin\avformat-51.dll; Flags: ignoreversion; Components: codec
|
||||
DestDir: {app}; Source: ..\bin\avutil-49.dll; Flags: ignoreversion; Components: codec
|
||||
DestDir: {app}; Source: ..\bin\postproc-51.dll; Flags: ignoreversion; Components: codec
|
||||
DestDir: {app}; Source: ..\bin\swscale-0.dll; Flags: ignoreversion; Components: codec
|
||||
#endif
|
||||
DestDir: {app}; Source: src\ffms2.dll; Flags: ignoreversion; Components: codec
|
||||
; vsfilter
|
||||
DestDir: {app}\csri; Source: ..\bin\csri\VSFilter.dll; Flags: ignoreversion; Components: codec/vsfilter
|
||||
DestDir: {app}\csri; Source: src\csri\VSFilter.dll; Flags: ignoreversion; Components: codec/vsfilter
|
||||
; auto4 main
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\utils.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\utils-auto4.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\unicode.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\karaskel.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\karaskel-auto4.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\cleantags.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\autoload; Source: ..\automation\autoload\kara-templater.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: src\automation\include\utils.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: src\automation\include\utils-auto4.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: src\automation\include\unicode.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: src\automation\include\karaskel.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: src\automation\include\karaskel-auto4.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: src\automation\include\cleantags.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
DestDir: {app}\automation\autoload; Source: src\automation\autoload\kara-templater.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua; Attribs: readonly
|
||||
; auto4 samples
|
||||
DestDir: {app}\automation\demos; Source: ..\automation\demos\future-windy-blur.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua/samples; Attribs: readonly
|
||||
DestDir: {app}\automation\demos; Source: ..\automation\tests\kara-templater-retime.ass; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua/samples; Attribs: readonly
|
||||
DestDir: {app}\automation\autoload; Source: ..\automation\autoload\macro-1-edgeblur.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua/samples; Attribs: readonly
|
||||
DestDir: {app}\automation\autoload; Source: ..\automation\autoload\macro-2-mkfullwitdh.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua/samples; Attribs: readonly
|
||||
DestDir: {app}\automation\autoload; Source: ..\automation\autoload\cleantags-autoload.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua/samples; Attribs: readonly
|
||||
; perl
|
||||
#if IncludePerl != 0
|
||||
DestDir: {app}\automation\docs; Source: ..\automation\v4-docs\perl-api.txt; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/perl; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\Aegisub.pm; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/perl; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\Auto4Utils.pm; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/perl; Attribs: readonly
|
||||
DestDir: {app}\automation\include\Aegisub; Source: ..\automation\include\Aegisub\PerlConsole.pm; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/perl; Attribs: readonly
|
||||
DestDir: {app}\automation\include\Aegisub; Source: ..\automation\include\Aegisub\Script.pm; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/perl; Attribs: readonly
|
||||
DestDir: {app}\automation\include\Aegisub; Source: ..\automation\include\Aegisub\Progress.pm; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/perl; Attribs: readonly
|
||||
DestDir: {app}\automation\autoload; Source: ..\automation\autoload\macro-1p-edgeblur.pl; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/perl/samples; Attribs: readonly
|
||||
DestDir: {app}\automation\demos; Source: ..\automation\demos\perl-console.pl; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/perl/samples; Attribs: readonly
|
||||
#endif
|
||||
DestDir: {app}\automation\demos; Source: src\automation\demos\future-windy-blur.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua/samples; Attribs: readonly
|
||||
DestDir: {app}\automation\autoload; Source: src\automation\autoload\macro-1-edgeblur.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua/samples; Attribs: readonly
|
||||
DestDir: {app}\automation\autoload; Source: src\automation\autoload\macro-2-mkfullwitdh.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua/samples; Attribs: readonly
|
||||
DestDir: {app}\automation\autoload; Source: src\automation\autoload\cleantags-autoload.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/lua/samples; Attribs: readonly
|
||||
; auto3
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\utils.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\karaskel.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\karaskel-adv.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\karaskel-adv.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\karaskel-base.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: ..\automation\include\karaskel-base.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\auto3; Source: ..\automation\auto3\line-per-syllable.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\auto3; Source: ..\automation\auto3\multi-template.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\auto3; Source: ..\automation\auto3\simple-k-replacer.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\docs; Source: ..\automation\automation3.txt; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: src\automation\include\utils.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: src\automation\include\karaskel.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: src\automation\include\karaskel-adv.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: src\automation\include\karaskel-adv.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: src\automation\include\karaskel-base.lua; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\include; Source: src\automation\include\karaskel-base.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\auto3; Source: src\automation\auto3\line-per-syllable.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\auto3; Source: src\automation\auto3\multi-template.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\auto3; Source: src\automation\auto3\simple-k-replacer.auto3; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
DestDir: {app}\automation\docs; Source: src\automation\docs\automation3.txt; Flags: ignoreversion overwritereadonly uninsremovereadonly; Components: auto/auto3; Attribs: readonly
|
||||
; dictionaries
|
||||
#if IncludeSpeller != 0
|
||||
Source: ..\bin\dictionaries\en_GB.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/en_GB
|
||||
Source: ..\bin\dictionaries\en_GB.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/en_GB
|
||||
#ifndef Lite
|
||||
Source: ..\bin\dictionaries\de_AT.dic; DestDir: {app}\dictionaries; Flags: ignoreversion solidbreak; Components: dic/de_AT
|
||||
Source: ..\bin\dictionaries\de_DE.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/de_DE
|
||||
Source: ..\bin\dictionaries\de_DE.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/de_DE
|
||||
Source: ..\bin\dictionaries\en_US.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/en_US
|
||||
Source: ..\bin\dictionaries\en_US.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/en_US
|
||||
Source: ..\bin\dictionaries\es_ES.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/es_ES
|
||||
Source: ..\bin\dictionaries\es_ES.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/es_ES
|
||||
Source: ..\bin\dictionaries\fr_FR.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/fr_FR
|
||||
Source: ..\bin\dictionaries\fr_FR.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/fr_FR
|
||||
Source: ..\bin\dictionaries\it_IT.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/it_IT
|
||||
Source: ..\bin\dictionaries\it_IT.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/it_IT
|
||||
Source: ..\bin\dictionaries\nl_NL.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/nl_NL
|
||||
Source: ..\bin\dictionaries\nl_NL.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/nl_NL
|
||||
Source: ..\bin\dictionaries\pl_PL.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/pl_PL
|
||||
Source: ..\bin\dictionaries\pl_PL.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/pl_PL
|
||||
Source: ..\bin\dictionaries\pt_BR.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/pt_BR
|
||||
Source: ..\bin\dictionaries\pt_BR.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/pt_BR
|
||||
Source: ..\bin\dictionaries\pt_PT.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/pt_PT
|
||||
Source: ..\bin\dictionaries\pt_PT.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/pt_PT
|
||||
Source: ..\bin\dictionaries\sk_SK.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/sk_SK
|
||||
Source: ..\bin\dictionaries\sk_SK.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/sk_SK
|
||||
Source: ..\bin\dictionaries\sl_SI.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/sl_SI
|
||||
Source: ..\bin\dictionaries\sl_SI.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/sl_SI
|
||||
Source: ..\bin\dictionaries\sv_SE.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/sv_SE
|
||||
Source: ..\bin\dictionaries\sv_SE.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/sv_SE
|
||||
#endif
|
||||
#endif
|
||||
Source: src\dictionaries\en_GB.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/en_GB
|
||||
Source: src\dictionaries\en_GB.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/en_GB
|
||||
Source: src\dictionaries\de_AT.dic; DestDir: {app}\dictionaries; Flags: ignoreversion solidbreak; Components: dic/de_AT
|
||||
Source: src\dictionaries\de_DE.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/de_DE
|
||||
Source: src\dictionaries\de_DE.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/de_DE
|
||||
Source: src\dictionaries\en_US.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/en_US
|
||||
Source: src\dictionaries\en_US.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/en_US
|
||||
Source: src\dictionaries\es_ES.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/es_ES
|
||||
Source: src\dictionaries\es_ES.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/es_ES
|
||||
Source: src\dictionaries\fr_FR.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/fr_FR
|
||||
Source: src\dictionaries\fr_FR.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/fr_FR
|
||||
Source: src\dictionaries\it_IT.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/it_IT
|
||||
Source: src\dictionaries\it_IT.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/it_IT
|
||||
Source: src\dictionaries\nl_NL.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/nl_NL
|
||||
Source: src\dictionaries\nl_NL.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/nl_NL
|
||||
Source: src\dictionaries\pl_PL.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/pl_PL
|
||||
Source: src\dictionaries\pl_PL.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/pl_PL
|
||||
Source: src\dictionaries\pt_BR.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/pt_BR
|
||||
Source: src\dictionaries\pt_BR.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/pt_BR
|
||||
Source: src\dictionaries\pt_PT.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/pt_PT
|
||||
Source: src\dictionaries\pt_PT.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/pt_PT
|
||||
Source: src\dictionaries\sk_SK.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/sk_SK
|
||||
Source: src\dictionaries\sk_SK.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/sk_SK
|
||||
Source: src\dictionaries\sl_SI.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/sl_SI
|
||||
Source: src\dictionaries\sl_SI.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/sl_SI
|
||||
Source: src\dictionaries\sv_SE.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/sv_SE
|
||||
Source: src\dictionaries\sv_SE.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dic/sv_SE
|
||||
; thesauri
|
||||
#if IncludeThesaurus != 0
|
||||
#ifndef Lite
|
||||
Source: ..\bin\dictionaries\th_de_DE.dat; DestDir: {app}\dictionaries; Flags: ignoreversion solidbreak; Components: th/de_DE
|
||||
Source: ..\bin\dictionaries\th_de_DE.idx; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/de_DE
|
||||
Source: ..\bin\dictionaries\th_en_US.dat; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/en_US
|
||||
Source: ..\bin\dictionaries\th_en_US.idx; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/en_US
|
||||
Source: ..\bin\dictionaries\th_es_ES.dat; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/es_ES
|
||||
Source: ..\bin\dictionaries\th_es_ES.idx; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/es_ES
|
||||
Source: ..\bin\dictionaries\th_fr_FR.dat; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/fr_FR
|
||||
Source: ..\bin\dictionaries\th_fr_FR.idx; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/fr_FR
|
||||
Source: ..\bin\dictionaries\th_it_IT.dat; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/it_IT
|
||||
Source: ..\bin\dictionaries\th_it_IT.idx; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/it_IT
|
||||
#endif
|
||||
#endif
|
||||
Source: src\dictionaries\th_de_DE.dat; DestDir: {app}\dictionaries; Flags: ignoreversion solidbreak; Components: th/de_DE
|
||||
Source: src\dictionaries\th_de_DE.idx; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/de_DE
|
||||
Source: src\dictionaries\th_en_US.dat; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/en_US
|
||||
Source: src\dictionaries\th_en_US.idx; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/en_US
|
||||
Source: src\dictionaries\th_es_ES.dat; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/es_ES
|
||||
Source: src\dictionaries\th_es_ES.idx; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/es_ES
|
||||
Source: src\dictionaries\th_fr_FR.dat; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/fr_FR
|
||||
Source: src\dictionaries\th_fr_FR.idx; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/fr_FR
|
||||
Source: src\dictionaries\th_it_IT.dat; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/it_IT
|
||||
Source: src\dictionaries\th_it_IT.idx; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: th/it_IT
|
||||
; localization
|
||||
Source: ..\po\ca.mo; DestDir: {app}\locale\ca; DestName: aegisub.mo; Flags: ignoreversion; Components: i18n/ca
|
||||
Source: ..\po\wxstd-ca.mo; DestDir: {app}\locale\ca; DestName: wxstd.mo; Flags: ignoreversion; Components: i18n/ca
|
||||
Source: ..\po\pt_BR.mo; DestDir: {app}\locale\pt_BR; DestName: aegisub.mo; Flags: ignoreversion; Components: i18n/pt_BR
|
||||
Source: ..\po\wxstd-pt_BR.mo; DestDir: {app}\locale\pt_BR; DestName: wxstd.mo; Flags: ignoreversion; Components: i18n/pt_BR
|
||||
Source: ..\po\es.mo; DestDir: {app}\locale\es; DestName: aegisub.mo; Flags: ignoreversion; Components: i18n/es
|
||||
Source: ..\po\wxstd-es.mo; DestDir: {app}\locale\es; DestName: wxstd.mo; Flags: ignoreversion; Components: i18n/es
|
||||
Source: ..\po\hu.mo; DestDir: {app}\locale\hu; DestName: aegisub.mo; Flags: ignoreversion; Components: i18n/hu
|
||||
Source: ..\po\wxstd-hu.mo; DestDir: {app}\locale\hu; DestName: wxstd.mo; Flags: ignoreversion; Components: i18n/hu
|
||||
Source: ..\..\po\ca.mo; DestDir: {app}\locale\ca; DestName: aegisub.mo; Flags: ignoreversion; Components: i18n/ca
|
||||
Source: ..\..\po\wxstd-ca.mo; DestDir: {app}\locale\ca; DestName: wxstd.mo; Flags: ignoreversion; Components: i18n/ca
|
||||
Source: ..\..\po\pt_BR.mo; DestDir: {app}\locale\pt_BR; DestName: aegisub.mo; Flags: ignoreversion; Components: i18n/pt_BR
|
||||
Source: ..\..\po\wxstd-pt_BR.mo; DestDir: {app}\locale\pt_BR; DestName: wxstd.mo; Flags: ignoreversion; Components: i18n/pt_BR
|
||||
Source: ..\..\po\es.mo; DestDir: {app}\locale\es; DestName: aegisub.mo; Flags: ignoreversion; Components: i18n/es
|
||||
Source: ..\..\po\wxstd-es.mo; DestDir: {app}\locale\es; DestName: wxstd.mo; Flags: ignoreversion; Components: i18n/es
|
||||
Source: ..\..\po\hu.mo; DestDir: {app}\locale\hu; DestName: aegisub.mo; Flags: ignoreversion; Components: i18n/hu
|
||||
Source: ..\..\po\wxstd-hu.mo; DestDir: {app}\locale\hu; DestName: wxstd.mo; Flags: ignoreversion; Components: i18n/hu
|
||||
; documentation
|
||||
Source: ..\docs\output\*; DestDir: {app}\docs; Flags: ignoreversion recursesubdirs; Components: docs; Excludes: *svn
|
||||
Source: src\docs\*; DestDir: {app}\docs; Flags: ignoreversion recursesubdirs; Components: docs; Excludes: *svn
|
||||
; ASSDraw3
|
||||
Source: ..\bin\ASSDraw3.exe; DestDir: {app}; Flags: ignoreversion nocompression; Components: assdraw
|
||||
Source: ..\bin\ASSDraw3.chm; DestDir: {app}; Flags: ignoreversion; Components: assdraw
|
||||
Source: src\ASSDraw3.exe; DestDir: {app}; Flags: ignoreversion nocompression; Components: assdraw
|
||||
Source: src\ASSDraw3.chm; DestDir: {app}; Flags: ignoreversion; Components: assdraw
|
||||
|
||||
[Icons]
|
||||
Name: {commonprograms}\Aegisub\{#MyAppName}; Filename: {app}\Aegisub.exe; WorkingDir: {app}; IconIndex: 0; Components: main/icons; Comment: Aegisub subtitle editor
|
||||
Name: {commonprograms}\Aegisub\ASSDraw3; Filename: {app}\ASSDraw3.exe; WorkingDir: {app}; IconIndex: 0; Components: main/icons; Flags: createonlyiffileexists; Comment: Aegisub subtitle editor
|
||||
Name: {commonprograms}\Aegisub\Uninstall; Filename: {app}\unins000.exe; WorkingDir: {app}; IconIndex: 0; Components: main/icons; Comment: Uninstall Aegisub
|
||||
Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}; Filename: {app}\Aegisub.exe; WorkingDir: {app}; IconIndex: 0; Components: main/qcklnch; Comment: Aegisub subtitle editor
|
||||
Name: {commonprograms}\Aegisub; Filename: {app}\aegisub32.exe; WorkingDir: {app}; IconIndex: 0; Components: main/icons; Comment: Create and edit subtitle files
|
||||
Name: {commonprograms}\ASSDraw3; Filename: {app}\ASSDraw3.exe; WorkingDir: {app}; IconIndex: 0; Components: main/icons; Flags: createonlyiffileexists; Comment: Create vector drawings for ASS-format subtitles
|
||||
Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\Aegisub; Filename: {app}\aegisub32.exe; WorkingDir: {app}; IconIndex: 0; Components: main/qcklnch; Comment: Create and edit subtitle files
|
||||
|
||||
[Registry]
|
||||
; Register in App Paths so the user can conveniently enter 'aegisub' in their Run box
|
||||
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\aegisub32.exe"; ValueType: string; ValueName: ""; ValueData: "{app}\aegisub32.exe"; Flags: uninsdeletekey
|
||||
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\aegisub.exe"; ValueType: string; ValueName: ""; ValueData: "{app}\aegisub32.exe"; Flags: uninsdeletekey
|
||||
|
||||
[Run]
|
||||
Filename: {app}\{#MyAppExeName}; Description: {cm:LaunchProgram,{#MyAppName}}; Flags: nowait postinstall skipifsilent
|
||||
;Filename: {tmp}\vcredist_x86.exe; StatusMsg: Installing runtime libraries...; Components: main/runtime; Parameters: /Q
|
||||
Filename: {app}\aegisub32.exe; Description: {cm:LaunchProgram,Aegisub}; Flags: nowait postinstall skipifsilent
|
||||
Filename: {tmp}\vcredist_x86.exe; StatusMsg: Installing runtime libraries...; Components: main/runtime; Parameters: "/q"
|
||||
|
||||
[Components]
|
||||
; Actual program
|
||||
Name: main; Description: Aegisub; Types: compact full custom; Languages: ; Flags: fixed
|
||||
;Name: main/runtime; Description: Runtime libraries; Flags: fixed; Types: custom compact full; ExtraDiskSpaceRequired: 4630528
|
||||
Name: main/runtime; Description: Runtime libraries; Flags: fixed; Types: custom compact full; ExtraDiskSpaceRequired: 4630528
|
||||
Name: main/pdb; Description: Debug database (helps diagnose crashes); Types: full
|
||||
Name: main/icons; Description: Programs menu icons; Types: custom compact full
|
||||
Name: main/qcklnch; Description: Quick launch icon; Types: custom compact full
|
||||
Name: codec; Description: Media formats support; Flags: fixed; Types: custom compact full
|
||||
Name: codec/vsfilter; Description: VSFilter 2.39 MPC-HC; Types: compact full custom; Flags: fixed
|
||||
; Automation
|
||||
Name: auto; Description: Automation 4 scripting support; Types: compact full
|
||||
Name: auto/lua; Description: Lua; Types: compact full; Flags: checkablealone; Languages:
|
||||
Name: auto/lua/samples; Description: Lua sample scripts; Types: full
|
||||
#if IncludePerl != 0
|
||||
Name: auto/perl; Description: Perl (requires a Perl 5.10 distribution); Types: compact full; Flags: checkablealone; Languages:
|
||||
Name: auto/perl/samples; Description: Perl sample scripts; Types: full; Flags: checkablealone; Languages:
|
||||
#endif
|
||||
Name: auto/auto3; Description: Automation 3 backwards compatibility; Types: full
|
||||
; Docs and translations
|
||||
Name: docs; Description: Documentation files; Types: custom compact full
|
||||
Name: i18n; Description: Languages; Types: full custom compact; Flags: fixed
|
||||
Name: i18n/english; Description: English (built in); Flags: fixed; Types: compact full custom
|
||||
|
@ -240,10 +199,9 @@ Name: i18n/pt_BR; Description: Brazilian Portuguese; Types: full
|
|||
Name: i18n/ca; Description: Catalan; Types: full
|
||||
Name: i18n/hu; Description: Hungarian; Types: full
|
||||
Name: i18n/es; Description: Spanish; Types: full
|
||||
#if IncludeSpeller != 0
|
||||
; Languages support
|
||||
Name: dic; Description: Spell checker; Types: full
|
||||
Name: dic/en_GB; Description: British English dictionary; Types: full
|
||||
#ifndef Lite
|
||||
Name: dic/en_US; Description: American English dictionary; Types: full
|
||||
Name: dic/nl_NL; Description: Dutch dictionary; Types: full
|
||||
Name: dic/fr_FR; Description: French dictionary; Types: full
|
||||
|
@ -257,55 +215,233 @@ Name: dic/sk_SK; Description: Slovak dictionary; Types: full
|
|||
Name: dic/sl_SI; Description: Slovenian dictionary; Types: full
|
||||
Name: dic/es_ES; Description: Spanish dictionary; Types: full
|
||||
Name: dic/sv_SE; Description: Swedish dictionary; Types: full
|
||||
#endif
|
||||
#endif
|
||||
#if IncludeThesaurus != 0
|
||||
#ifndef Lite
|
||||
Name: th; Description: Thesaurus; Types: full
|
||||
Name: th/en_US; Description: American English thesaurus; Types: full
|
||||
Name: th/fr_FR; Description: French thesaurus; Types: full
|
||||
Name: th/de_DE; Description: German thesaurus; Types: full
|
||||
Name: th/it_IT; Description: Italian thesaurus; Types: full
|
||||
Name: th/es_ES; Description: Spanish thesaurus; Types: full
|
||||
#endif
|
||||
#endif
|
||||
; AssDraw
|
||||
Name: assdraw; Description: ai-chan's ASSDraw3 for ASS vector drawing; Types: full
|
||||
|
||||
[Messages]
|
||||
; Replacement for License page, no need to bother the user with legal mumbo-jumbo
|
||||
WelcomeLabel2=This will install {#MyAppName} {#MyAppVer} on your computer.%n%n{#MyAppName} is covered by the GNU General Public License version 2. This means you may use the application for any purpose without charge, but that no warranties of any kind are given either.%n%nSee the {#MyAppName} website for information on obtaining the source code.
|
||||
WelcomeLabel2=This will install Aegisub 2.1.7 on your computer.%n%nAegisub is covered by the GNU General Public License version 2. This means you may use the application for any purpose without charge, but that no warranties of any kind are given either.%n%nSee the Aegisub website for information on obtaining the source code.
|
||||
|
||||
|
||||
[Code]
|
||||
function LoadLibrary(lpFileName: string): LongInt; external 'LoadLibraryA@kernel32.dll stdcall';
|
||||
function FreeLibrary(hModule: LongInt): Boolean; external 'FreeLibrary@kernel32.dll stdcall';
|
||||
|
||||
var
|
||||
HasLegacyVersion: Boolean;
|
||||
LegacyStartMenuFolder: string;
|
||||
LegacyInstallFolder: string;
|
||||
LegacyVersionNumber: string;
|
||||
|
||||
|
||||
function OldStartMenuFolder(Param: string): string;
|
||||
begin
|
||||
if HasLegacyVersion then
|
||||
Result := LegacyStartMenuFolder
|
||||
else
|
||||
Result := ExpandConstant('{group}');
|
||||
end;
|
||||
function OldInstallFolder(Param: string): string;
|
||||
begin
|
||||
if HasLegacyVersion then
|
||||
Result := LegacyInstallFolder
|
||||
else
|
||||
Result := ExpandConstant('{app}');
|
||||
end;
|
||||
|
||||
|
||||
function BoolToStr(x: Boolean): string;
|
||||
begin
|
||||
if x then Result := 'Yes' else Result := 'No';
|
||||
end;
|
||||
|
||||
|
||||
function InitializeSetup: Boolean;
|
||||
begin
|
||||
HasLegacyVersion := RegValueExists(HKLM, 'SOFTWARE\Aegisub\info', 'InstVer');
|
||||
Log(Format('Legacy version found: %s', [BoolToStr(HasLegacyVersion)]));
|
||||
|
||||
LegacyStartMenuFolder := 'Aegisub';
|
||||
if RegQueryStringValue(HKLM, 'SOFTWARE\Aegisub\info', 'StartMenuDir', LegacyStartMenuFolder) then
|
||||
LegacyStartMenuFolder := ExpandConstant('{userprograms}\') + LegacyStartMenuFolder;
|
||||
Log(Format('Legacy version Start menu folder: %s', [LegacyStartMenuFolder]));
|
||||
|
||||
LegacyInstallFolder := ExpandConstant('{pf}\Aegisub');
|
||||
RegQueryStringValue(HKLM, 'SOFTWARE\Aegisub\info', 'InstallDir', LegacyInstallFolder);
|
||||
Log(Format('Legacy version install folder: %s', [LegacyInstallFolder]));
|
||||
|
||||
LegacyVersionNumber := '1.x';
|
||||
RegQueryStringValue(HKLM, 'SOFTWARE\Aegisub\info', 'InstVer', LegacyVersionNumber);
|
||||
|
||||
Result := True;
|
||||
if HasLegacyVersion then
|
||||
Result := SuppressibleMsgBox(Format('A previous installation of Aegisub %s has been detected and will be removed along with its configuration.'#13#10#13#10'Continue installing and remove old version?', [LegacyVersionNumber]), mbConfirmation, MB_YESNO, IDYES) = IDYES;
|
||||
end;
|
||||
|
||||
|
||||
procedure MigrateStyleCatalogs;
|
||||
var
|
||||
OldCatalogDir: string;
|
||||
NewCatalogDir: string;
|
||||
search: TFindRec;
|
||||
begin
|
||||
// Upgrade an 1.x style-catalog by moving it to {appdata}
|
||||
OldCatalogDir := OldInstallFolder('') + '\Catalog\';
|
||||
Log('-- Migrate style catalogs --');
|
||||
if DirExists(OldCatalogDir) then
|
||||
begin
|
||||
NewCatalogDir := ExpandConstant('{userappdata}\Aegisub\catalog\');
|
||||
ForceDirectories(NewCatalogDir);
|
||||
Log('Old style catalog dir: ' + OldCatalogDir);
|
||||
Log('New catalog dir: ' + NewCatalogDir);
|
||||
if FindFirst(OldCatalogDir + '*', search) then
|
||||
try
|
||||
repeat
|
||||
Log('Found style catalog: ' + OldCatalogDir + search.Name);
|
||||
if FileCopy(OldCatalogDir+search.Name, NewCatalogDir+search.Name, True) then
|
||||
begin
|
||||
Log('Copied catalog to: ' + NewCatalogDir+search.Name);
|
||||
DeleteFile(OldCatalogDir+search.Name);
|
||||
end;
|
||||
until not FindNext(search);
|
||||
finally
|
||||
FindClose(search);
|
||||
Log('Done migrating styles');
|
||||
end;
|
||||
RemoveDir(OldCatalogDir);
|
||||
end
|
||||
else
|
||||
Log('No existing style catalog collection found');
|
||||
end;
|
||||
|
||||
|
||||
procedure UninstallLegacyVersion;
|
||||
var
|
||||
page: TOutputProgressWizardPage;
|
||||
file_list: TStringList;
|
||||
dir_list: TStringList;
|
||||
shortcut_list: TStringList;
|
||||
locale_list: TStringList;
|
||||
itemsdone, totalitems, i: Integer;
|
||||
curname: string;
|
||||
begin
|
||||
// Uninstall Aegisub 1.x
|
||||
Log('-- Uninstall legacy version --');
|
||||
page := CreateOutputProgressPage('Uninstalling old version', Format('Your old installation of Aegisub %s is being removed', [LegacyVersionNumber]));
|
||||
try
|
||||
page.SetText('Preparing list of files', '');
|
||||
page.Show;
|
||||
|
||||
Log('Load file lists');
|
||||
ExtractTemporaryFile('legacy_shortcutlist.txt');
|
||||
ExtractTemporaryFile('legacy_filelist.txt');
|
||||
ExtractTemporaryFile('legacy_locales.txt');
|
||||
ExtractTemporaryFile('legacy_dirlist.txt');
|
||||
shortcut_list := TStringList.Create;
|
||||
shortcut_list.LoadFromFile(ExpandConstant('{tmp}\legacy_shortcutlist.txt'));
|
||||
file_list := TStringList.Create;
|
||||
file_list.LoadFromFile(ExpandConstant('{tmp}\legacy_filelist.txt'));
|
||||
locale_list := TStringList.Create;
|
||||
locale_list.LoadFromFile(ExpandConstant('{tmp}\legacy_locales.txt'));
|
||||
dir_list := TStringList.Create;
|
||||
dir_list.LoadFromFile(ExpandConstant('{tmp}\legacy_dirlist.txt'));
|
||||
itemsdone := 0;
|
||||
totalitems := file_list.Count + dir_list.Count + shortcut_list.Count + locale_list.Count + 3;
|
||||
// Two extra for the registry keys and one for Start menu folder
|
||||
|
||||
for i := 0 to shortcut_list.Count-1 do
|
||||
begin
|
||||
curname := LegacyStartMenuFolder + '\' + shortcut_list.Strings[i];
|
||||
page.SetText('Removing shortcuts', curname);
|
||||
page.SetProgress(itemsdone, totalitems);
|
||||
Log('Remove shortcut: ' + curname);
|
||||
if not DeleteFile(curname) then Log('* Deletion failed');
|
||||
itemsdone := itemsdone + 1;
|
||||
end;
|
||||
page.SetText('Removing Start menu folder', LegacyStartMenuFolder);
|
||||
page.SetProgress(itemsdone, totalitems);
|
||||
Log('Remove directory: ' + LegacyStartMenuFolder);
|
||||
if not RemoveDir(LegacyStartMenuFolder) then Log('* Directory deletion failed');
|
||||
itemsdone := itemsdone + 1;
|
||||
|
||||
for i := 0 to file_list.Count-1 do
|
||||
begin
|
||||
curname := LegacyInstallFolder + '\' + file_list.Strings[i];
|
||||
page.SetText('Removing files', curname);
|
||||
page.SetProgress(itemsdone, totalitems);
|
||||
Log('Remove file: ' + curname);
|
||||
if not DeleteFile(curname) then Log('* Deletion failed');
|
||||
itemsdone := itemsdone + 1;
|
||||
end;
|
||||
|
||||
for i := 0 to locale_list.Count-1 do
|
||||
begin
|
||||
curname := LegacyInstallFolder + '\' + locale_list.Strings[i];
|
||||
page.SetText('Removing locales', curname);
|
||||
page.SetProgress(itemsdone, totalitems);
|
||||
Log('Remove locale: ' + curname);
|
||||
if not DelTree(curname, True, True, True) then Log('* Tree deletion failed');
|
||||
itemsdone := itemsdone + 1;
|
||||
end;
|
||||
|
||||
for i := 0 to dir_list.Count-1 do
|
||||
begin
|
||||
curname := LegacyInstallFolder + '\' + dir_list.Strings[i];
|
||||
page.SetText('Removing folders', curname);
|
||||
page.SetProgress(itemsdone, totalitems);
|
||||
Log('Remove directory: ' + curname);
|
||||
if not RemoveDir(curname) then Log('* Directory deletion failed');
|
||||
itemsdone := itemsdone + 1;
|
||||
end;
|
||||
|
||||
page.SetText('Removing registry entries', 'Installation data');
|
||||
page.SetProgress(itemsdone, totalitems);
|
||||
curname := 'SOFTWARE\Aegisub';
|
||||
Log('Remove reg key: HKLM\' + curname);
|
||||
if not RegDeleteKeyIncludingSubkeys(HKLM, curname) then Log('* Failed recursively deleting key');
|
||||
|
||||
page.SetText('Removing registry entries', 'Uninstaller entry');
|
||||
page.SetProgress(itemsdone+1, totalitems);
|
||||
curname := 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Aegisub ' + LegacyVersionNumber;
|
||||
Log('Remove reg key: HKLM\' + curname);
|
||||
if not RegDeleteKeyIncludingSubkeys(HKLM, curname) then Log('* Failed recursively deleting key');
|
||||
|
||||
page.SetText('Uninstallation complete', '');
|
||||
page.SetProgress(totalitems, totalitems);
|
||||
|
||||
finally
|
||||
shortcut_list.Free;
|
||||
file_list.Free;
|
||||
locale_list.Free;
|
||||
dir_list.Free;
|
||||
page.Hide;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
procedure CleanUpOldVersion;
|
||||
begin
|
||||
Log('-- Cleaning up from old version --');
|
||||
end;
|
||||
|
||||
|
||||
procedure CurStepChanged(CurStep: TSetupStep);
|
||||
var
|
||||
LibHandle: LongInt;
|
||||
ExecResult: Integer;
|
||||
CustomPage: TOutputProgressWizardPage;
|
||||
temp1: String;
|
||||
temp2: String;
|
||||
begin
|
||||
if CurStep = ssPostInstall then
|
||||
if CurStep = ssInstall then
|
||||
begin
|
||||
// LibHandle := LoadLibrary(ExpandConstant('{app}\csri\vsfilter.dll'));
|
||||
LibHandle := 0;
|
||||
if LibHandle = 0 then
|
||||
begin
|
||||
temp2 := SetupMessage(msgInstallingLabel);
|
||||
StringChangeEx(temp2,'[name]','{#MyAppName}',False);
|
||||
CustomPage := CreateOutputProgressPage(SetupMessage(msgWizardInstalling),temp2);
|
||||
CustomPage.SetText('Installing Visual C++ 2008 SP1 Runtimes... This might take a few minutes.','');
|
||||
CustomPage.Show();
|
||||
ExtractTemporaryFile('vcredist_x86.exe');
|
||||
if not Exec(ExpandConstant('{tmp}\vcredist_x86.exe'), '/q:a /c:"VCREDI~3.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "', '', SW_SHOW, ewWaitUntilTerminated, ExecResult) then
|
||||
begin
|
||||
MsgBox('Installation of runtime libraries failed. Aegisub will probably not work. The error was: ' + SysErrorMessage(ExecResult), mbInformation, MB_OK);
|
||||
end;
|
||||
CustomPage.Hide();
|
||||
end
|
||||
else
|
||||
FreeLibrary(LibHandle);
|
||||
if HasLegacyVersion then
|
||||
begin
|
||||
MigrateStyleCatalogs;
|
||||
UninstallLegacyVersion;
|
||||
end
|
||||
else
|
||||
begin
|
||||
CleanUpOldVersion;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#define Lite 1
|
||||
#include "aegisub2.iss"
|
9
aegisub/packages/win_installer/legacy_dirlist.txt
Normal file
9
aegisub/packages/win_installer/legacy_dirlist.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
automation\factorybrew\
|
||||
automation\demos\
|
||||
automation\include\
|
||||
automation\
|
||||
locale\
|
||||
autosave\
|
||||
autoback\
|
||||
source\
|
||||
.
|
32
aegisub/packages/win_installer/legacy_filelist.txt
Normal file
32
aegisub/packages/win_installer/legacy_filelist.txt
Normal file
|
@ -0,0 +1,32 @@
|
|||
Uninstall.exe
|
||||
Aegisub.exe
|
||||
Aegisub.chm
|
||||
changelog.txt
|
||||
VSFilter.dll
|
||||
msvcr71.dll
|
||||
msvcp71.dll
|
||||
Aegisub Site.url
|
||||
hotkeys.dat
|
||||
config.dat
|
||||
automation\automation-lua.txt
|
||||
automation\include\readme.txt
|
||||
automation\include\karaskel-adv.lua
|
||||
automation\include\karaskel.lua
|
||||
automation\include\utils.lua
|
||||
automation\demos\1-minimal.lua
|
||||
automation\demos\2-dump.lua
|
||||
automation\demos\3-include.lua
|
||||
automation\demos\4-text_extents.lua
|
||||
automation\demos\5-configuration.lua
|
||||
automation\demos\6-simple-effect.lua
|
||||
automation\demos\7-advanced-effect.lua
|
||||
automation\demos\8-skeleton.lua
|
||||
automation\demos\9-skeleton-advanced.lua
|
||||
automation\demos\readme.txt
|
||||
automation\factorybrew\line-per-syllable.lua
|
||||
automation\factorybrew\simple-k-replacer.lua
|
||||
automation\factorybrew\readme.txt
|
||||
FexTrackerRel.dll
|
||||
FexTrackerRel_Opti.dll
|
||||
automation\include\karaskel.txt
|
||||
automation\factorybrew\multi-template.lua
|
9
aegisub/packages/win_installer/legacy_locales.txt
Normal file
9
aegisub/packages/win_installer/legacy_locales.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
locale\de
|
||||
locale\fr
|
||||
locale\pt_BR
|
||||
locale\ru
|
||||
locale\da
|
||||
locale\es
|
||||
locale\hu
|
||||
locale\it
|
||||
locale\ko
|
6
aegisub/packages/win_installer/legacy_shortcutlist.txt
Normal file
6
aegisub/packages/win_installer/legacy_shortcutlist.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
Aegisub.lnk
|
||||
Aegisub Help.lnk
|
||||
Aegisub Site.lnk
|
||||
VSFilter Config.lnk
|
||||
Changelog.lnk
|
||||
Uninstall.lnk
|
Loading…
Reference in a new issue