@@ -90,7 +90,7 @@ SpaceTexts none
90
90
; Finish page
91
91
!define MUI_FINISHPAGE_NOAUTOCLOSE
92
92
!define MUI_FINISHPAGE_SHOWREADME_TEXT " show config"
93
- !define MUI_FINISHPAGE_SHOWREADME " $INSTDIR\agent .conf"
93
+ !define MUI_FINISHPAGE_SHOWREADME " $INSTDIR\mamonsu .conf"
94
94
!insertmacro MUI_PAGE_FINISH
95
95
96
96
; Uninstall
@@ -122,12 +122,13 @@ Section "${NAME} ${VERSION}" SectionMamonsu
122
122
SetOutPath " $INSTDIR"
123
123
File " ..\..\dist\service_win32.exe"
124
124
File " ..\..\dist\mamonsu.exe"
125
+ File " ..\..\packaging\conf\template_win32.xml"
125
126
CreateDirectory " $log_dir"
126
127
WriteUninstaller " $INSTDIR\Uninstall.exe"
127
128
128
129
; create user
129
130
Call CreateUser
130
- ; create agent .conf
131
+ ; create mamonsu .conf
131
132
Call CreateConfig
132
133
; create service
133
134
Call CreateService
@@ -467,21 +468,21 @@ Function CreateConfig
467
468
${if} $action == ' downgrade'
468
469
${OrIf} $action == ' upgrade'
469
470
470
- ${if} ${FileExists} " $ext_inst_dir\agent .conf"
471
- ${ConfigRead} " $ext_inst_dir\agent .conf" " file =" $0 ; put log_file_name in $0
471
+ ${if} ${FileExists} " $ext_inst_dir\mamonsu .conf"
472
+ ${ConfigRead} " $ext_inst_dir\mamonsu .conf" " file =" $0 ; put log_file_name in $0
472
473
DetailPrint " Copying config file to new install directory ..."
473
- CopyFiles " $ext_inst_dir\agent .conf" " $INSTDIR"
474
- ${ConfigWrite} " $INSTDIR\agent .conf" " file = " " $log_dir\${LOG_FILE}" $0
474
+ CopyFiles " $ext_inst_dir\mamonsu .conf" " $INSTDIR"
475
+ ${ConfigWrite} " $INSTDIR\mamonsu .conf" " file = " " $log_dir\${LOG_FILE}" $0
475
476
StrCpy $5 " exist"
476
477
Goto recreate_config
477
478
${else} ; do not exist
478
479
Goto recreate_config
479
480
${endif}
480
481
481
482
${elseif} $action == ' reinstall'
482
- ${if} ${FileExists} " $ext_inst_dir\agent .conf"
483
+ ${if} ${FileExists} " $ext_inst_dir\mamonsu .conf"
483
484
# if user decided to choose different log directory while reinstalling
484
- ${ConfigWrite} " $ext_inst_dir\agent .conf" " file = " " $log_dir\${LOG_FILE}" $0
485
+ ${ConfigWrite} " $ext_inst_dir\mamonsu .conf" " file = " " $log_dir\${LOG_FILE}" $0
485
486
Goto cancel
486
487
${else}
487
488
Goto recreate_config
@@ -510,7 +511,7 @@ Function CreateConfig
510
511
[postgres]$\r$\n user = $pg_user$\r$\n database = $pg_db$\r$\n password = $2$\r$\n host = $pg_host$\r$\n port = $pg_port$\r$\n$\r$\n \
511
512
[log]$\r$\n file = $log_dir\${LOG_FILE}$\r$\n level = INFO$\r$\n '
512
513
FileClose $0
513
- Rename $1 " $INSTDIR\agent .conf"
514
+ Rename $1 " $INSTDIR\mamonsu .conf"
514
515
${endif}
515
516
516
517
AccessControl::DisableFileInheritance " $INSTDIR"
@@ -537,8 +538,8 @@ Function CreateConfig
537
538
AccessControl::SetFileOwner " $INSTDIR\service_win32.exe" " ${USER}"
538
539
AccessControl::GrantOnFile " $INSTDIR\service_win32.exe" " (S-1-3-0)" " FullAccess"
539
540
540
- AccessControl::SetFileOwner " $INSTDIR\agent .conf" " ${USER}"
541
- AccessControl::GrantOnFile " $INSTDIR\agent .conf" " (S-1-3-0)" " FullAccess"
541
+ AccessControl::SetFileOwner " $INSTDIR\mamonsu .conf" " ${USER}"
542
+ AccessControl::GrantOnFile " $INSTDIR\mamonsu .conf" " (S-1-3-0)" " FullAccess"
542
543
cancel:
543
544
FunctionEnd
544
545
@@ -659,8 +660,8 @@ Function DeleteDirectory
659
660
${if} $action == ' downgrade'
660
661
${orif} $action == ' upgrade'
661
662
DetailPrint " Deleting old install directory ..."
662
- Delete " $ext_inst_dir\agent .conf"
663
- Delete " $ext_inst_dir\agent .exe"
663
+ Delete " $ext_inst_dir\mamonsu .conf"
664
+ Delete " $ext_inst_dir\mamonsu .exe"
664
665
Delete " $ext_inst_dir\service_win32.exe"
665
666
Delete " $ext_inst_dir\Uninstall.exe"
666
667
compare_log_dirs:
@@ -732,8 +733,8 @@ Function un.DeleteReg
732
733
FunctionEnd
733
734
734
735
Function un.DeleteDirectory
735
- Delete " $INSTDIR\agent .conf"
736
- Delete " $INSTDIR\agent .exe"
736
+ Delete " $INSTDIR\mamonsu .conf"
737
+ Delete " $INSTDIR\mamonsu .exe"
737
738
Delete " $INSTDIR\service_win32.exe"
738
739
Delete " $INSTDIR\Uninstall.exe"
739
740
Delete " $ext_log_dir\${LOG_FILE}"
0 commit comments