Skip to content

Commit ffef78a

Browse files
committed
WIP
1 parent 7cf8064 commit ffef78a

File tree

1 file changed

+38
-27
lines changed

1 file changed

+38
-27
lines changed

installer/x64/installer-x64.iss

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -292,22 +292,17 @@ begin
292292
UninstallNextButton.ModalResult := mrOK;
293293
end;
294294
295-
procedure UninstallNextButtonClick(Sender: TObject);
296-
begin
297-
if UninstallProgressForm.InnerNotebook.ActivePage = UninstallPollPage then
298-
begin
299-
UninstallNextButton.Visible := False;
300-
end;
301-
end;
302-
303295
procedure InitializeUninstallProgressForm();
304296
var
305297
PageText: TNewStaticText;
306298
PageNameLabel: string;
307299
PageDescriptionLabel: string;
308-
TestCheckBox: TNewCheckBox;
309300
CancelButtonEnabled: Boolean;
310-
CancelButtonModalResult: Integer;
301+
CancelButtonModalResult: Integer;
302+
//CouldntMakeItWorkOption: TNewCheckBox;
303+
//DidntDoWhatIWantedOption: TNewCheckBox;
304+
Checklist: TNewCheckListBox;
305+
CommentsBox: TNewMemo;
311306
begin
312307
if not UninstallSilent then
313308
begin
@@ -326,12 +321,38 @@ begin
326321
PageText.AutoSize := False;
327322
PageText.ShowAccelChar := False;
328323
PageText.Caption := 'Press Uninstall to proceeed with uninstallation.';
329-
330-
TestCheckBox := TNewCheckBox.Create(UninstallProgressForm);
331-
TestCheckBox.Parent := UninstallPollPage;
332-
TestCheckBox.Top = PageText.Top + PageText.Height + 10;
333-
TestCheckBox.Left = PageText.Left;
334-
TestCheckBox.Caption := 'Test Fooooo';
324+
325+
// https://stackoverflow.com/a/44254371/1086121
326+
327+
{
328+
CouldntMakeItWorkOption := TNewCheckBox.Create(UninstallProgressForm);
329+
CouldntMakeItWorkOption.Parent := UninstallPollPage;
330+
CouldntMakeItWorkOption.Top := PageText.Top + PageText.Height + ScaleX(10);
331+
CouldntMakeItWorkOption.Left := PageText.Left;
332+
CouldntMakeItWorkOption.Caption := 'I couldn''t get Syncthing to work';
333+
334+
DidntDoWhatIWantedOption := TNewCheckBox.Create(UninstallProgressForm);
335+
DidntDoWhatIWantedOption.Parent := UninstallPollPage;
336+
DidntDoWhatIWantedOption.Top := CouldntMakeItWorkOption.Top + CouldntMakeItWorkOption.Height + ScaleX(10);
337+
DidntDoWhatIWantedOption.Left := PageText.Left;
338+
DidntDoWhatIWantedOption.Caption := 'Syncthing doesn''t do what I wanted';
339+
}
340+
341+
Checklist := TNewCheckListBox.Create(UninstallProgressForm);
342+
Checklist.Parent := UninstallPollPage;
343+
Checklist.SetBounds(PageText.Left, PageText.Top + PageText.Height + ScaleY(10), PageText.Width, ScaleY(50));
344+
Checklist.BorderStyle := bsNone;
345+
Checklist.Color := clBtnFace;
346+
Checklist.WantTabs := True;
347+
Checklist.MinItemHeight := ScaleY(20);
348+
349+
Checklist.AddCheckBox('Test Caption', '', 0, False, True, False, False, nil);
350+
Checklist.AddCheckBox('Another Test Caption', '', 0, False, True, False, False, nil);
351+
352+
CommentsBox := TNewMemo.Create(UninstallProgressForm);
353+
CommentsBox.Parent := UninstallPollPage;
354+
CommentsBox.SetBounds(PageText.Left, Checklist.Top + Checklist.Height + ScaleY(10), PageText.Width, ScaleY(50));
355+
CommentsBox.ScrollBars := ssVertical;
335356
336357
UninstallProgressForm.InnerNotebook.ActivePage := UninstallPollPage;
337358
@@ -340,13 +361,10 @@ begin
340361
341362
UninstallNextButton := TNewButton.Create(UninstallProgressForm);
342363
UninstallNextButton.Parent := UninstallProgressForm;
343-
UninstallNextButton.Left :=
344-
UninstallProgressForm.CancelButton.Left - UninstallProgressForm.CancelButton.Width -
345-
ScaleX(10);
364+
UninstallNextButton.Left := UninstallProgressForm.CancelButton.Left - UninstallProgressForm.CancelButton.Width - ScaleX(10);
346365
UninstallNextButton.Top := UninstallProgressForm.CancelButton.Top;
347366
UninstallNextButton.Width := UninstallProgressForm.CancelButton.Width;
348367
UninstallNextButton.Height := UninstallProgressForm.CancelButton.Height;
349-
UninstallNextButton.OnClick := @UninstallNextButtonClick;
350368
351369
UninstallProgressForm.CancelButton.TabOrder := UninstallNextButton.TabOrder + 1;
352370
@@ -370,13 +388,6 @@ begin
370388
end;
371389
end;
372390
373-
function InitializeUninstall(): Boolean;
374-
begin
375-
//UninstallPollPage := CreateInputOptionPage(
376-
377-
Result := true;
378-
end;
379-
380391
[UninstallDelete]
381392
Type: files; Name: "{app}\ProcessRunner.exe.old"
382393
Type: files; Name: "{app}\InstallCount.txt"

0 commit comments

Comments
 (0)