@@ -342,6 +342,7 @@ SectionEnd
342
342
343
343
Section $(componentServer) sec1
344
344
345
+
345
346
${if} $PG_OLD_DIR != " " ; exist PG install
346
347
${if} $isStopped == 0
347
348
MessageBox MB_YESNO |MB_ICONQUESTION " $(MESS_STOP_SERVER)" IDYES doitStopIDNO noyetStop
@@ -583,8 +584,10 @@ Section $(componentServer) sec1
583
584
FileClose $LogFile ; Closes the filled file
584
585
585
586
${if} $0 != 1
587
+ IfSilent +2
586
588
MessageBox MB_OK |MB_ICONINFORMATION $(MESS_ERROR_INITDB2)
587
589
${else}
590
+ IfSilent +2
588
591
MessageBox MB_OK |MB_ICONINFORMATION $(MESS_ERROR_INITDB)
589
592
${endif}
590
593
@@ -782,14 +785,15 @@ Section $(componentServer) sec1
782
785
call checkServiceIsRunning
783
786
pop$0
784
787
${if} $0 == " "
785
- Sleep 5000
788
+ Sleep 7000
786
789
call checkServiceIsRunning
787
790
pop$0
788
791
${if} $0 == " "
789
792
DetailPrint " Error: service is not running!"
790
- MessageBox MB_OK |MB_ICONSTOP " $(MESS_ERROR_SERVER)"
791
793
FileWrite $LogFile " Error: service $ServiceID_text is not running!$\r$\n "
792
794
FileClose $LogFile
795
+ IfSilent +2
796
+ MessageBox MB_OK |MB_ICONSTOP " $(MESS_ERROR_SERVER)"
793
797
Abort
794
798
${endif}
795
799
${endif}
@@ -819,10 +823,11 @@ Section $(componentServer) sec1
819
823
DetailPrint " Output: $1"
820
824
FileWrite $LogFile " Checking connection has return $0$\r$\n "
821
825
FileWrite $LogFile " Output: $1$\r$\n "
826
+ FileClose $LogFile
822
827
823
828
; MessageBox MB_OK "Create adminpack error: $1"
824
- MessageBox MB_OK | MB_ICONSTOP " $(MESS_ERROR_SERVER) "
825
- FileClose $LogFile
829
+ IfSilent + 2
830
+ MessageBox MB_OK | MB_ICONSTOP " $(MESS_ERROR_SERVER) "
826
831
Abort
827
832
${else}
828
833
DetailPrint " Checking connection is OK"
@@ -857,6 +862,7 @@ Section $(componentServer) sec1
857
862
FileWrite $LogFile " Output: $1$\r$\n "
858
863
859
864
; MessageBox MB_OK "Create adminpack error: $1"
865
+ IfSilent +2
860
866
MessageBox MB_OK |MB_ICONSTOP " $(MESS_ERROR_SERVER)"
861
867
${else}
862
868
DetailPrint " Create adminpack OK"