Skip to content

Commit d38b527

Browse files
committed
Merge pull request #104 from dscho/installer-buttons
Switch the "Next" button's label to "Install" on the last wizard page before installation
2 parents 0ca4a4e + 3437da8 commit d38b527

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

installer/install.iss

+10
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ var
338338
ProcessesPage:TWizardPage;
339339
ProcessesListBox:TListBox;
340340
ProcessesRefresh,ContinueButton:TButton;
341+
PageIDBeforeInstall:Integer;
341342
#ifdef DEBUG_WIZARD_PAGE
342343
DebugWizardPage:Integer;
343344
#endif
@@ -1112,6 +1113,8 @@ begin
11121113
// This button is only used by the uninstaller.
11131114
ContinueButton:=NIL;
11141115
1116+
PageIDBeforeInstall:=ExtraOptionsPage.ID;
1117+
11151118
#ifdef DEBUG_WIZARD_PAGE
11161119
DebugWizardPage:={#DEBUG_WIZARD_PAGE}.ID;
11171120
#endif
@@ -1147,9 +1150,14 @@ begin
11471150
// This will be checked later again when the user clicks "Next".
11481151
WizardForm.DirEdit.Text:=ExpandConstant('{userpf}\{#APP_NAME}');
11491152
end;
1153+
end else if CurPageID=PageIDBeforeInstall then begin
1154+
RefreshProcessList(NIL);
1155+
if GetArrayLength(Processes)=0 then
1156+
WizardForm.NextButton.Caption:=SetupMessage(msgButtonInstall);
11501157
end else if (ProcessesPage<>NIL) and (CurPageID=ProcessesPage.ID) then begin
11511158
// Show the "Refresh" button only on the processes page.
11521159
ProcessesRefresh.Show;
1160+
WizardForm.NextButton.Caption:=SetupMessage(msgButtonInstall);
11531161
end else begin
11541162
ProcessesRefresh.Hide;
11551163
end;
@@ -1407,6 +1415,8 @@ begin
14071415
14081416
// Load the built-ins from a text file.
14091417
FileName:=AppDir+'\{#MINGW_BITNESS}\{#APP_BUILTINS}';
1418+
if not FileExists(FileName) then
1419+
Exit; // testing...
14101420
if LoadStringsFromFile(FileName,BuiltIns) then begin
14111421
Count:=GetArrayLength(BuiltIns)-1;
14121422

installer/release.sh

+3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ do
6565
-f|--force)
6666
force=t
6767
;;
68+
--skip-files)
69+
skip_files=t
70+
;;
6871
--debug-wizard-page=*)
6972
test_installer=t
7073
inno_defines="$(printf "%s\n%s\n%s" "$inno_defines" \

0 commit comments

Comments
 (0)