mirror of https://github.com/odrling/Aegisub
Ask whether to check for updates in the installer
Gets rid of the last annoying modal dialog on first startup.
This commit is contained in:
parent
1049b2d140
commit
796f26c008
|
@ -78,12 +78,24 @@ begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure CurStepChanged(CurStep: TSetupStep);
|
procedure CurStepChanged(CurStep: TSetupStep);
|
||||||
|
var
|
||||||
|
Updates: String;
|
||||||
begin
|
begin
|
||||||
CurStepChangedMigration(CurStep);
|
CurStepChangedMigration(CurStep);
|
||||||
|
|
||||||
if CurStep = ssPostInstall then
|
if CurStep = ssPostInstall then
|
||||||
begin
|
begin
|
||||||
SaveStringToFile(ExpandConstant('{app}\installer_config.json'), ExpandConstant('{{"App": {{"Language": "{language}"}}'), False);
|
if IsTaskSelected('checkforupdates') then
|
||||||
|
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);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
[Tasks]
|
[Tasks]
|
||||||
Name: "startmenuicon"; Description: "{cm:StartMenuIcon}"; GroupDescription: "{cm:AdditionalIcons}"
|
Name: "startmenuicon"; Description: "{cm:StartMenuIcon}"; GroupDescription: "{cm:AdditionalIcons}"
|
||||||
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||||
|
Name: "checkforupdates"; Description: "{cm:CheckForUpdates}"; GroupDescription: "{cm:UpdatesGroup}"
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
; main
|
; main
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
[CustomMessages]
|
[CustomMessages]
|
||||||
InstallRuntime=Installing runtime libraries...
|
InstallRuntime=Installing runtime libraries...
|
||||||
StartMenuIcon=Create a start menu icon
|
StartMenuIcon=Create a start menu icon
|
||||||
|
CheckForUpdates=Automatically check for new versions of Aegisub
|
||||||
|
UpdatesGroup=Update Checker:
|
||||||
|
|
||||||
; Replacement for License page, no need to bother the user with legal mumbo-jumbo
|
; Replacement for License page, no need to bother the user with legal mumbo-jumbo
|
||||||
[Messages]
|
[Messages]
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
[CustomMessages]
|
[CustomMessages]
|
||||||
_InstallRuntime=Installing runtime libraries...
|
_InstallRuntime=Installing runtime libraries...
|
||||||
_StartMenuIcon=Create a start menu icon
|
_StartMenuIcon=Create a start menu icon
|
||||||
|
_CheckForUpdates=Automatically check for new versions of Aegisub
|
||||||
|
_UpdatesGroup=Update Checker:
|
||||||
|
|
||||||
; Replacement for License page, no need to bother the user with legal mumbo-jumbo
|
; Replacement for License page, no need to bother the user with legal mumbo-jumbo
|
||||||
[Messages]
|
[Messages]
|
||||||
|
|
|
@ -6202,6 +6202,16 @@ msgid "Create a start menu icon"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
||||||
|
#: packages/win_installer/fragment_strings.iss:1
|
||||||
|
msgid "Automatically check for new versions of Aegisub"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
|
||||||
|
#: packages/win_installer/fragment_strings.iss:1
|
||||||
|
msgid "Update Checker:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
|
||||||
#: packages/win_installer/fragment_strings.iss:1
|
#: packages/win_installer/fragment_strings.iss:1
|
||||||
msgid "This will install Aegisub {#BUILD_GIT_VERSION_STRING} 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."
|
msgid "This will install Aegisub {#BUILD_GIT_VERSION_STRING} 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."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
Loading…
Reference in New Issue