@@ -100,7 +100,7 @@ Var AllMem
100
100
Var FreeMem
101
101
Var shared_buffers
102
102
Var work_mem
103
- Var needOptimiztion
103
+ Var needOptimization
104
104
Var rButton1
105
105
Var rButton2
106
106
@@ -474,7 +474,7 @@ Section $(PostgreSQLString) sec1
474
474
!insertmacro _ReplaceInFile " $DATA_DIR\postgresql.conf" " #logging_collector = off" " logging_collector = on"
475
475
!insertmacro _ReplaceInFile " $DATA_DIR\postgresql.conf" " #log_line_prefix = ''" " log_line_prefix = '%t '"
476
476
477
- ${if} $needOptimiztion == " 1"
477
+ ${if} $needOptimization == " 1"
478
478
${if} $shared_buffers != " "
479
479
${ConfigWrite} " $DATA_DIR\postgresql.conf" " shared_buffers = " " $shared_buffers$\t$\t # min 128kB" $R0
480
480
${endif}
@@ -1743,7 +1743,7 @@ Function nsDialogOptimization
1743
1743
${NSD_CreateRadioButton} 0 70u 200u 24U " $(DLG_OPT3)"
1744
1744
Pop $rButton1
1745
1745
1746
- ${if} $needOptimiztion == " 1"
1746
+ ${if} $needOptimization == " 1"
1747
1747
${NSD_SetState} $rButton2 ${BST_CHECKED}
1748
1748
${else}
1749
1749
${NSD_SetState} $rButton1 ${BST_CHECKED}
@@ -1759,9 +1759,9 @@ Function nsDialogsOptimizationPageLeave
1759
1759
${NSD_GetState} $rButton2 $0
1760
1760
1761
1761
${if} $0 == ${BST_CHECKED}
1762
- StrCpy $needOptimiztion " 1"
1762
+ StrCpy $needOptimization " 1"
1763
1763
${else}
1764
- StrCpy $needOptimiztion " 0"
1764
+ StrCpy $needOptimization " 0"
1765
1765
${endif}
1766
1766
FunctionEnd
1767
1767
@@ -1816,7 +1816,7 @@ ${EndIf}
1816
1816
; AccessControl::GetCurrentUserName
1817
1817
; Pop $0 ; or "error"
1818
1818
; MessageBox MB_OK "$0"
1819
- StrCpy $needOptimiztion " 1"
1819
+ StrCpy $needOptimization " 1"
1820
1820
1821
1821
StrCpy $isDataDirExist 0
1822
1822
@@ -1906,6 +1906,11 @@ ${EndIf}
1906
1906
${if} " $1" != " "
1907
1907
StrCpy $isEnvVar $1
1908
1908
${endif}
1909
+
1910
+ ReadINIStr $1 $0 options needoptimization
1911
+ ${if} " $1" != " "
1912
+ StrCpy $needOptimization " $1"
1913
+ ${endif}
1909
1914
FunctionEnd
1910
1915
1911
1916
Function func1
0 commit comments