@@ -75,11 +75,11 @@ Var ServiceUp ; did the service start?
75
75
76
76
Var DATADIR
77
77
Var APPDIR
78
- ; Var LOGFILE
78
+ Var LOGDIR
79
79
80
80
Var ini_DATADIR
81
81
Var ini_APPDIR
82
- ; Var ini_LOGFILE
82
+ Var ini_LOGFILE
83
83
84
84
Var UpgradeInstall
85
85
Var LaunchAfterInstall
@@ -92,7 +92,7 @@ Var Dlg1_RB_all_users
92
92
Var Dlg1_RB_cur_user
93
93
94
94
Var Dlg1_CB_custom_path
95
- ; Var Dlg1_CB_custom_logging
95
+ Var Dlg1_CB_custom_logging
96
96
Var Dlg1_CB_automatic_update
97
97
Var Dlg1_CB_keep_backup
98
98
Var Dlg1_CB_add_path
@@ -537,8 +537,9 @@ continueUI:
537
537
${NSD_CreateCheckBox} 0 -100 100% 6% "Choose custom install paths for databases and installation"
538
538
Pop $Dlg1_CB_custom_path
539
539
540
- ;${NSD_CreateCheckBox} 0 -120 100% 6% "Enable ArangoDBs own logfiles"
541
- ;Pop $Dlg1_CB_custom_logging
540
+ ${NSD_CreateCheckBox} 0 -120 100% 6% "Enable ArangoDB's own logfiles"
541
+ Pop $Dlg1_CB_custom_logging
542
+ ${NSD_SetState} $Dlg1_CB_custom_logging ${BST_CHECKED}
542
543
543
544
${NSD_CreateCheckBox} 0 -80 100% 6% "Automatically update existing ArangoDB database"
544
545
Pop $Dlg1_CB_automatic_update
@@ -595,10 +596,10 @@ continueUI:
595
596
StrCpy $ChooseInstallPath "0"
596
597
${EndIf}
597
598
598
- ; ${NSD_GetState} $Dlg1_CB_custom_logging $R0
599
- ; ${If} $R0 = ${BST_CHECKED}
600
- ; StrCpy $LOGFILE "$APPDIR\LOG.txt "
601
- ; ${EndIf}
599
+ ${NSD_GetState} $Dlg1_CB_custom_logging $R0
600
+ ${If} $R0 = ${BST_CHECKED}
601
+ StrCpy $LOGDIR "$LOCALAPPDATA\Arangodb-logs\ "
602
+ ${EndIf}
602
603
603
604
604
605
${NSD_GetState} $Dlg1_CB_automatic_update $R0
@@ -948,10 +949,10 @@ Section "-Core installation"
948
949
${If} $APPDIR != ""
949
950
StrCpy $ini_APPDIR "[javascript]$\r$\napp-path = $APPDIR$\r$\n"
950
951
${EndIf}
951
- ; ${If} $LOGFILE != ""
952
- ; StrCpy $ini_LOGFILE "[log]$\r$\nfile = $LOGFILE $\r$\n"
953
- ; ${EndIf}
954
- StrCpy $newCfgValues "$ini_APPDIR$ini_DATADIR[server]$\r$\nstorage-engine = $STORAGE_ENGINE$\r$\n"
952
+ ${If} $LOGDIR != ""
953
+ StrCpy $ini_LOGFILE "[log]$\r$\nfile = $LOGDIR\arangod.log $\r$\n"
954
+ ${EndIf}
955
+ StrCpy $newCfgValues "$ini_APPDIR$ini_DATADIR$ini_LOGFILE [server]$\r$\nstorage-engine = $STORAGE_ENGINE$\r$\n"
955
956
${AnsiToUtf8} $newCfgValues $newCfgValuesUtf8
956
957
StrCpy $newCfgValuesFile "$INSTDIR\etc\arangodb3\newValues.ini"
957
958
FileOpen $4 "$newCfgValuesFile" w
@@ -963,6 +964,9 @@ Section "-Core installation"
963
964
call ReadINIFileKeys
964
965
Delete "$newCfgValuesFile"
965
966
967
+ ${If} $LOGDIR != ""
968
+ CreateDirectory $LOGDIR
969
+ ${EndIf}
966
970
CreateDirectory $APPDIR
967
971
Call assignFileRights
968
972
${If} $UpgradeInstall == "1"
0 commit comments