Skip to content

Commit 527488f

Browse files
committed
installer: record install options in /etc/options.txt
It is useful to have a file lying around that lists the options there were chosen in the installer. This addresses git-for-windows/git#454 Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 01ac6f8 commit 527488f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

installer/install.iss.in

+8
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ const
270270
BIND_CACHE_IMPORT_DLLS = $00000008;
271271

272272
var
273+
// The options chosen at install time, to be written to /etc/options.txt
274+
ChosenOptions:String;
275+
273276
// Wizard page and variables for the Path options.
274277
PathPage:TWizardPage;
275278
RdbPath:array[GP_BashOnly..GP_CmdTools] of TRadioButton;
@@ -510,6 +513,7 @@ begin
510513
if ShouldSaveInf then begin
511514
SaveInfString('Setup',StringChangeEx(Key,' ','',True),Data);
512515
end;
516+
ChosenOptions:=ChosenOptions+Key+': '+Data+'\n';
513517
end;
514518

515519
function ReplayChoice(Key:String,Default:String):String;
@@ -537,6 +541,8 @@ var
537541
Data:String;
538542
begin
539543

544+
ChosenOptions:='';
545+
540546
PrevPageID:=wpSelectProgramGroup;
541547

542548
(*
@@ -1619,6 +1625,8 @@ begin
16191625
Data:='Enabled';
16201626
end;
16211627
RecordChoice(PreviousDataKey,'Performance Tweaks FSCache',Data);
1628+
1629+
SaveStringToFile('{app}\etc\options.txt',ChosenOptions,False);
16221630
end;
16231631

16241632
{

0 commit comments

Comments
 (0)