${Else}
IntOp $R8 $R7 + 26
${EndIf}
- FileWrite $R5 '[Field $R6]$\r$\nType="GroupBox"$\r$\nText="Enter data for Director allowed to access this Client"$\r$\nLeft=0$\r$\nTop=$R7$\r$\nRight=300$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="GroupBox"$\r$\nText="Enter Director Information"$\r$\nLeft=0$\r$\nTop=$R7$\r$\nRight=300$\r$\nBottom=$R8$\r$\n$\r$\n'
${EndIf}
IntOp $R6 $R6 + 1
${If} $R0 = 0
${OrIf} $AutomaticInstall = 0
IntOp $R8 $R7 + 8
- FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="Name"$\r$\nLeft=6$\r$\nTop=$R7$\r$\nRight=26$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="DIR Name"$\r$\nLeft=6$\r$\nTop=$R7$\r$\nRight=60$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
IntOp $R7 $R7 - 2
IntOp $R8 $R8 + 2
- FileWrite $R5 '[Field $R6]$\r$\nType="Text"$\r$\nState=$ConfigDirectorName$\r$\nLeft=50$\r$\nTop=$R7$\r$\nRight=158$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Text"$\r$\nState=$ConfigDirectorName$\r$\nLeft=60$\r$\nTop=$R7$\r$\nRight=158$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
${If} $AutomaticInstall = 0
${If} $R0 <> 0
IntOp $R7 $R7 + 2
IntOp $R8 $R8 - 2
- FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="Port"$\r$\nLeft=172$\r$\nTop=$R7$\r$\nRight=188$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="DIR Port"$\r$\nLeft=172$\r$\nTop=$R7$\r$\nRight=188$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
IntOp $R7 $R7 - 2
IntOp $R7 $R7 + 2
IntOp $R8 $R7 + 8
- FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="Password"$\r$\nLeft=6$\r$\nTop=$R7$\r$\nRight=38$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="DIR Password"$\r$\nLeft=6$\r$\nTop=$R7$\r$\nRight=60$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
IntOp $R7 $R7 - 2
IntOp $R8 $R8 + 2
- FileWrite $R5 '[Field $R6]$\r$\nType="Text"$\r$\nState=$ConfigDirectorPassword$\r$\nLeft=50$\r$\nTop=$R7$\r$\nRight=294$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Text"$\r$\nState=$ConfigDirectorPassword$\r$\nLeft=60$\r$\nTop=$R7$\r$\nRight=294$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
IntOp $R7 $R7 + 14
IntOp $R7 $R7 + 2
IntOp $R8 $R7 + 8
-; FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="Address"$\r$\nLeft=6$\r$\nTop=$R7$\r$\nRight=48$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="DIR Address"$\r$\nLeft=6$\r$\nTop=$R7$\r$\nRight=60$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
IntOp $R7 $R7 - 2
IntOp $R8 $R8 + 2
- FileWrite $R5 '[Field $R6]$\r$\nType="Text"$\r$\nState=$ConfigDirectorAddress$\r$\nLeft=50$\r$\nTop=$R7$\r$\nRight=294$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Text"$\r$\nState=$ConfigDirectorAddress$\r$\nLeft=60$\r$\nTop=$R7$\r$\nRight=294$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
IntOp $R7 $R7 + 14
IntOp $R8 $R7 + 8
-DVERSION=$(VERSION) \
-DOUT_DIR=..\\release32 \
-DSRC_DIR=release32 \
- -DBUILD_TOOLS=MinGW \
+ -DBUILD_TOOLS=MinGW32 \
-DWINVER=32
INSTALL_EXE := $(BUILDDIR)/release32/winbacula-$(VERSION).exe
rem\r
rem Bacula start file for Win95/98/Me\r
rem\r
-cd c:\bacula\bin\r
-c:\bacula\bin\bacula-fd.exe /service -c c:\bacula\bin\bacula-fd.conf\r
+cd c:\Program Files\Bacula\r
+c:\Program Files\Bacula\bacula-fd /service -c c:\Program Files\Bacula\bacula-fd.conf\r
rem\r
rem Bacula stop file for Win95/98/Me\r
rem\r
-cd c:\bacula\bin\r
-c:\bacula\bin\bacula-fd.exe /kill\r
+cd c:\Program Files\Bacula\r
+c:\Program Files\Bacula\bacula-fd /kill\r
StrCpy $ConfigClientInstallService "$OptService"
StrCpy $ConfigClientStartService "$OptStart"
+ StrCpy $ConfigDirectorPort 9101
StrCpy $ConfigMonitorName "$HostName-mon"
;StrCpy $ConfigMonitorPassword
File "Readme.txt"
SetOutPath "$INSTDIR"
-!if "${BUILD_TOOLS}" == "MinGW"
+!if "${BUILD_TOOLS}" == "MinGW32"
File "${SRC_DIR}\mingwm10.dll"
File "${SRC_DIR}\pthreadGCE.dll"
File "${SRC_DIR}\zlib1.dll"
FileWrite $R1 "s;@DATE@;${__DATE__};g$\r$\n"
FileWrite $R1 "s;@DISTNAME@;Windows;g$\r$\n"
-!If "$BUILD_TOOLS" == "MinGW"
- StrCpy $R2 "MinGW32"
-!Else
- StrCpy $R2 "MinGW64"
-!EndIf
+ StrCpy $R2 ${BUILD_TOOLS}
Call GetHostName
Exch $R3
${If} "$ConfigDirectorPassword" != ""
FileWrite $R1 "s;@director_password@;$ConfigDirectorPassword;g$\r$\n"
${EndIf}
+ ${If} "$ConfigDirectorAddress" != ""
+ FileWrite $R1 "s;@director_address@;$ConfigDirectorAddress;g$\r$\n"
+ ${EndIf}
${If} "$ConfigMonitorName" != ""
FileWrite $R1 "s;@monitor_name@;$ConfigMonitorName;g$\r$\n"
${EndIf}
Section "Uninstall"
; Shutdown any baculum that could be running
nsExec::ExecToLog '"$INSTDIR\bacula-fd.exe" /kill'
- Sleep 3000
+ Sleep 5000
- ReadRegDWORD $R0 HKLM "Software\Bacula" "Service_Bacula-fd"
- ${If} $R0 = 1
- ; Remove bacula service
- nsExec::ExecToLog '"$INSTDIR\bacula-fd.exe" /remove'
- nsExec::ExecToLog '"$INSTDIR\plugins\exchange-fd.dll" /remove'
- ${EndIf}
+; ReadRegDWORD $R0 HKLM "Software\Bacula" "Service_Bacula-fd"
+ ; Remove bacula service
+ nsExec::ExecToLog '"$INSTDIR\bacula-fd.exe" /remove'
+ nsExec::ExecToLog '"$INSTDIR\plugins\exchange-fd.dll" /remove'
; remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Bacula"
WriteRegDWORD HKLM "Software\Bacula" "Service_$0" $2
${If} $2 = 1
+ nsExec::ExecToLog '"$INSTDIR\$0.exe" /kill'
+ sleep 3000
+ nsExec::ExecToLog '"$INSTDIR\$0.exe" /remove'
nsExec::ExecToLog '"$INSTDIR\$0.exe" /install -c "$INSTDIR\$0.conf"'
${If} $OsIsNT <> 1
${If} $OsIsNT = 1
nsExec::ExecToLog 'net start $0'
${Else}
- Exec '"$INSTDIR\$0.exe" -c "$INSTDIR\$0.conf"'
+ Exec '"$INSTDIR\$0.exe" /service -c "$INSTDIR\$0.conf"'
${EndIf}
${EndIf}
${Else}
${Else}
IntOp $R8 $R7 + 26
${EndIf}
- FileWrite $R5 '[Field $R6]$\r$\nType="GroupBox"$\r$\nText="Enter data for Director allowed to access this Client (required)"$\r$\nLeft=0$\r$\nTop=$R7$\r$\nRight=300$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="GroupBox"$\r$\nText="Enter Director Information"$\r$\nLeft=0$\r$\nTop=$R7$\r$\nRight=300$\r$\nBottom=$R8$\r$\n$\r$\n'
${EndIf}
IntOp $R6 $R6 + 1
${If} $R0 = 0
${OrIf} $AutomaticInstall = 0
IntOp $R8 $R7 + 8
- FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="Name"$\r$\nLeft=6$\r$\nTop=$R7$\r$\nRight=26$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="DIR Name"$\r$\nLeft=6$\r$\nTop=$R7$\r$\nRight=60$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
IntOp $R7 $R7 - 2
IntOp $R8 $R8 + 2
- FileWrite $R5 '[Field $R6]$\r$\nType="Text"$\r$\nState=$ConfigDirectorName$\r$\nLeft=50$\r$\nTop=$R7$\r$\nRight=158$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Text"$\r$\nState=$ConfigDirectorName$\r$\nLeft=60$\r$\nTop=$R7$\r$\nRight=158$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
${If} $AutomaticInstall = 0
${If} $R0 <> 0
IntOp $R7 $R7 + 2
IntOp $R8 $R8 - 2
- FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="Port"$\r$\nLeft=172$\r$\nTop=$R7$\r$\nRight=188$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="DIR Port"$\r$\nLeft=172$\r$\nTop=$R7$\r$\nRight=188$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
IntOp $R7 $R7 - 2
IntOp $R7 $R7 + 2
IntOp $R8 $R7 + 8
- FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="Password"$\r$\nLeft=6$\r$\nTop=$R7$\r$\nRight=38$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="DIR Password"$\r$\nLeft=6$\r$\nTop=$R7$\r$\nRight=60$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
IntOp $R7 $R7 - 2
IntOp $R8 $R8 + 2
- FileWrite $R5 '[Field $R6]$\r$\nType="Text"$\r$\nState=$ConfigDirectorPassword$\r$\nLeft=50$\r$\nTop=$R7$\r$\nRight=294$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Text"$\r$\nState=$ConfigDirectorPassword$\r$\nLeft=60$\r$\nTop=$R7$\r$\nRight=294$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
IntOp $R7 $R7 + 14
IntOp $R7 $R7 + 2
IntOp $R8 $R7 + 8
-; FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="Address"$\r$\nLeft=6$\r$\nTop=$R7$\r$\nRight=48$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Label"$\r$\nText="DIR Address"$\r$\nLeft=6$\r$\nTop=$R7$\r$\nRight=60$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
IntOp $R7 $R7 - 2
IntOp $R8 $R8 + 2
-; FileWrite $R5 '[Field $R6]$\r$\nType="Text"$\r$\nState=$ConfigDirectorAddress$\r$\nLeft=50$\r$\nTop=$R7$\r$\nRight=294$\r$\nBottom=$R8$\r$\n$\r$\n'
+ FileWrite $R5 '[Field $R6]$\r$\nType="Text"$\r$\nState=$ConfigDirectorAddress$\r$\nLeft=60$\r$\nTop=$R7$\r$\nRight=294$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
IntOp $R7 $R7 + 14
IntOp $R8 $R7 + 8
StrCpy $ConfigClientInstallService "$OptService"
StrCpy $ConfigClientStartService "$OptStart"
+ StrCpy $ConfigDirectorPort 9101
StrCpy $ConfigMonitorName "$HostName-mon"
;StrCpy $ConfigMonitorPassword
File "Readme.txt"
SetOutPath "$INSTDIR"
-!if "${BUILD_TOOLS}" == "MinGW"
+!if "${BUILD_TOOLS}" == "MinGW32"
File "${SRC_DIR}\mingwm10.dll"
File "${SRC_DIR}\pthreadGCE.dll"
File "${SRC_DIR}\zlib1.dll"
FileWrite $R1 "s;@DATE@;${__DATE__};g$\r$\n"
FileWrite $R1 "s;@DISTNAME@;Windows;g$\r$\n"
-!If "$BUILD_TOOLS" == "MinGW"
- StrCpy $R2 "MinGW32"
-!Else
- StrCpy $R2 "MinGW64"
-!EndIf
+ StrCpy $R2 ${BUILD_TOOLS}
Call GetHostName
Exch $R3
${If} "$ConfigDirectorPassword" != ""
FileWrite $R1 "s;@director_password@;$ConfigDirectorPassword;g$\r$\n"
${EndIf}
+ ${If} "$ConfigDirectorAddress" != ""
+ FileWrite $R1 "s;@director_address@;$ConfigDirectorAddress;g$\r$\n"
+ ${EndIf}
${If} "$ConfigMonitorName" != ""
FileWrite $R1 "s;@monitor_name@;$ConfigMonitorName;g$\r$\n"
${EndIf}
nsExec::ExecToLog '"$INSTDIR\bacula-fd.exe" /kill'
Sleep 3000
- ReadRegDWORD $R0 HKLM "Software\Bacula" "Service_Bacula-fd"
- ${If} $R0 = 1
- ; Remove bacula service
- nsExec::ExecToLog '"$INSTDIR\bacula-fd.exe" /remove'
- nsExec::ExecToLog '"$INSTDIR\plugins\exchange-fd.dll" /remove'
- ${EndIf}
+; ReadRegDWORD $R0 HKLM "Software\Bacula" "Service_Bacula-fd"
+ ; Remove bacula service
+ nsExec::ExecToLog '"$INSTDIR\bacula-fd.exe" /remove'
+ nsExec::ExecToLog '"$INSTDIR\plugins\exchange-fd.dll" /remove'
; remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Bacula"
WriteRegDWORD HKLM "Software\Bacula" "Service_$0" $2
${If} $2 = 1
+ nsExec::ExecToLog '"$INSTDIR\$0.exe" /kill'
+ sleep 3000
+ nsExec::ExecToLog '"$INSTDIR\$0.exe" /remove'
nsExec::ExecToLog '"$INSTDIR\$0.exe" /install -c "$INSTDIR\$0.conf"'
${If} $OsIsNT <> 1
${If} $OsIsNT = 1
nsExec::ExecToLog 'net start $0'
${Else}
- Exec '"$INSTDIR\$0.exe" -c "$INSTDIR\$0.conf"'
+ Exec '"$INSTDIR\$0.exe" /service -c "$INSTDIR\$0.conf"'
${EndIf}
${EndIf}
${Else}