2018-04-02 17:45:56 +02:00
|
|
|
#define ARCH 64
|
2012-01-23 20:09:14 +01:00
|
|
|
|
|
|
|
#include "fragment_setupbase.iss"
|
2014-05-15 18:43:09 +02:00
|
|
|
#include "fragment_strings.iss"
|
2012-01-23 20:09:14 +01:00
|
|
|
|
|
|
|
[Setup]
|
|
|
|
AppID={{24BC8B57-716C-444F-B46B-A3349B9164C5}
|
2020-12-23 08:59:57 +01:00
|
|
|
DefaultDirName={commonpf}\Aegisub
|
2012-01-23 20:09:14 +01:00
|
|
|
PrivilegesRequired=poweruser
|
2012-04-06 03:55:34 +02:00
|
|
|
ArchitecturesInstallIn64BitMode=x64
|
|
|
|
ArchitecturesAllowed=x64
|
2012-01-23 20:09:14 +01:00
|
|
|
|
|
|
|
#include "fragment_mainprogram.iss"
|
|
|
|
#include "fragment_associations.iss"
|
2018-04-29 21:18:39 +02:00
|
|
|
#include "fragment_codecs.iss"
|
2012-01-23 20:09:14 +01:00
|
|
|
#include "fragment_automation.iss"
|
|
|
|
#include "fragment_translations.iss"
|
|
|
|
#include "fragment_spelling.iss"
|
2018-04-02 17:45:56 +02:00
|
|
|
#include "fragment_runtimes.iss"
|
2012-01-23 20:09:14 +01:00
|
|
|
|
|
|
|
[Code]
|
|
|
|
#include "fragment_shell_code.iss"
|
|
|
|
#include "fragment_migrate_code.iss"
|
|
|
|
#include "fragment_beautify_code.iss"
|
|
|
|
|
|
|
|
procedure InitializeWizard;
|
|
|
|
begin
|
|
|
|
InitializeWizardBeautify;
|
|
|
|
end;
|
|
|
|
|
|
|
|
function InitializeSetup: Boolean;
|
|
|
|
begin
|
|
|
|
Result := InitializeSetupMigration;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure CurStepChanged(CurStep: TSetupStep);
|
2014-05-15 20:54:34 +02:00
|
|
|
var
|
|
|
|
Updates: String;
|
2012-01-23 20:09:14 +01:00
|
|
|
begin
|
|
|
|
CurStepChangedMigration(CurStep);
|
|
|
|
|
2014-05-15 19:19:23 +02:00
|
|
|
if CurStep = ssPostInstall then
|
|
|
|
begin
|
2020-12-23 08:59:57 +01:00
|
|
|
if WizardIsTaskSelected('checkforupdates') then
|
2014-05-15 20:54:34 +02:00
|
|
|
Updates := 'true'
|
|
|
|
else
|
|
|
|
Updates := 'false';
|
|
|
|
|
|
|
|
SaveStringToFile(
|
|
|
|
ExpandConstant('{app}\installer_config.json'),
|
|
|
|
FmtMessage('{"App": {"Auto": {"Check For Updates": %1}, "First Start": false, "Language": "%2"}}', [
|
|
|
|
Updates,
|
|
|
|
ExpandConstant('{language}')]),
|
|
|
|
False);
|
2014-05-15 19:19:23 +02:00
|
|
|
end;
|
|
|
|
end;
|