StrCpy $R7 0 ; Top
${If} $R0 = 1
- IntOp $R8 $R7 + 50
+ IntOp $R8 $R7 + 52
FileWrite $R5 '[Field $R6]$\r$\nType="GroupBox"$\r$\nText="Client"$\r$\nLeft=0$\r$\nTop=$R7$\r$\nRight=300$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
- IntOp $R7 $R7 + 10
+ IntOp $R7 $R7 + 12
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'
${Endif}
${If} $R1 = 1
- IntOp $R8 $R7 + 50
+ IntOp $R8 $R7 + 52
FileWrite $R5 '[Field $R6]$\r$\nType="GroupBox"$\r$\nText="Storage"$\r$\nLeft=0$\r$\nTop=$R7$\r$\nRight=300$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
- IntOp $R7 $R7 + 10
+ IntOp $R7 $R7 + 12
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'
StrCpy $R7 0 ; Top
${If} $R2 = 1
- IntOp $R8 $R7 + 90
- ${ElseIf} $R3 = 1
- IntOp $R8 $R7 + 52
+ IntOp $R8 $R7 + 92
+ FileWrite $R5 '[Field $R6]$\r$\nType="GroupBox"$\r$\nText="Director"$\r$\nLeft=0$\r$\nTop=$R7$\r$\nRight=300$\r$\nBottom=$R8$\r$\n$\r$\n'
${Else}
- IntOp $R8 $R7 + 24
+ ${If} $R3 = 1
+ IntOp $R8 $R7 + 54
+ ${Else}
+ IntOp $R8 $R7 + 26
+ ${EndIf}
+ FileWrite $R5 '[Field $R6]$\r$\nType="GroupBox"$\r$\nText="Remote Director"$\r$\nLeft=0$\r$\nTop=$R7$\r$\nRight=300$\r$\nBottom=$R8$\r$\n$\r$\n'
${EndIf}
- FileWrite $R5 '[Field $R6]$\r$\nType="GroupBox"$\r$\nText="Director"$\r$\nLeft=0$\r$\nTop=$R7$\r$\nRight=300$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
- IntOp $R7 $R7 + 10
+ IntOp $R7 $R7 + 12
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'
${OrIf} $R1 = 1
${OrIf} $R2 = 1
- IntOp $R8 $R7 + 40
+ IntOp $R8 $R7 + 42
FileWrite $R5 '[Field $R6]$\r$\nType="GroupBox"$\r$\nText="Monitor"$\r$\nLeft=0$\r$\nTop=$R7$\r$\nRight=300$\r$\nBottom=$R8$\r$\n$\r$\n'
IntOp $R6 $R6 + 1
- IntOp $R7 $R7 + 10
+ IntOp $R7 $R7 + 12
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'
; Pull in pages
;
+!define MUI_COMPONENTSPAGE_SMALLDESC
+!define MUI_FINISHPAGE_NOAUTOCLOSE
+
!InsertMacro MUI_PAGE_WELCOME
; !InsertMacro MUI_PAGE_LICENSE "..\..\LICENSE"
-!define MUI_COMPONENTSPAGE_SMALLDESC
-
!InsertMacro MUI_PAGE_COMPONENTS
!InsertMacro MUI_PAGE_DIRECTORY
Page custom EnterConfigPage1 LeaveConfigPage1
; Process Command Line Options
StrCpy $OptCygwin 0
- StrCpy $OptService 0
- StrCpy $OptStart 0
+ StrCpy $OptService 1
+ StrCpy $OptStart 1
StrCpy $OptSilent 0
StrCpy $DependenciesDone 0
StrCpy $DatabaseDone 0
StrCpy $OptCygwin 1
ClearErrors
- ${GetOptions} $R0 "/service" $R1
+ ${GetOptions} $R0 "/noservice" $R1
IfErrors +2
- StrCpy $OptService 1
+ StrCpy $OptService 0
ClearErrors
- ${GetOptions} $R0 "/start" $R1
+ ${GetOptions} $R0 "/nostart" $R1
IfErrors +2
- StrCpy $OptStart 1
+ StrCpy $OptStart 0
IfSilent 0 +2
StrCpy $OptSilent 1
File "/oname=$PLUGINSDIR\ssleay32.dll" "${DEPKGS_BIN}\ssleay32.dll"
File "/oname=$PLUGINSDIR\sed.exe" "${DEPKGS_BIN}\sed.exe"
+ SetPluginUnload alwaysoff
+
nsExec::Exec '"$PLUGINSDIR\openssl.exe" rand -base64 -out $PLUGINSDIR\pw.txt 33'
pop $R0
${If} $R0 = 0
FileClose $R1
${EndIf}
+ SetPluginUnload manual
+
nsExec::Exec '"$PLUGINSDIR\openssl.exe" rand -base64 -out $PLUGINSDIR\pw.txt 33'
pop $R0
${If} $R0 = 0
FunctionEnd
Function InstallDatabase
+ SetOutPath "$INSTDIR\bin"
+
${If} $DatabaseDone = 0
${If} $ConfigDirectorDB = 1
File /oname=bacula_cats.dll "${BACULA_BIN}\cats_mysql.dll"
SectionIn 1 2 3
SetOutPath "$INSTDIR\bin"
+
File "${BACULA_BIN}\bacula-fd.exe"
StrCpy $R0 0
Section "Storage Service" SecStorageDaemon
SectionIn 2 3
-
+
SetOutPath "$INSTDIR\bin"
+
File "${DEPKGS_BIN}\loaderinfo.exe"
File "${DEPKGS_BIN}\mt.exe"
File "${DEPKGS_BIN}\mtx.exe"
StrCpy $3 $ConfigStorageStartService
Call InstallDaemon
+ CreateShortCut "$SMPROGRAMS\Bacula\List Devices.lnk" "$INSTDIR\bin\scsilist.exe" "/pause"
CreateShortCut "$SMPROGRAMS\Bacula\Edit Storage Configuration.lnk" "write.exe" '"$APPDATA\Bacula\bacula-sd.conf"'
SectionEnd
SectionIn 2 3
SetOutPath "$INSTDIR\bin"
+
Call InstallDatabase
File "${BACULA_BIN}\bacula-dir.exe"
File "${BACULA_BIN}\dbcheck.exe"
SectionGroup "Consoles"
Section "Command Console" SecConsole
- SectionIn 3
+ SectionIn 1 2 3
+
+ SetOutPath "$INSTDIR\bin"
File "${BACULA_BIN}\bconsole.exe"
Call CopyDependencies
Section "Graphical Console" SecWxConsole
SectionIn 1 2 3
+ SetOutPath "$INSTDIR\bin"
+
Call CopyDependencies
!if "${BUILD_TOOLS}" == "VC8"
File "${DEPKGS_BIN}\wxbase270_vc_bacula.dll"
SetOutPath "$INSTDIR\doc"
CreateDirectory "$INSTDIR\doc"
+
File "${DOC_DIR}\manual\bacula.pdf"
CreateShortCut "$SMPROGRAMS\Bacula\Manual.lnk" '"$INSTDIR\doc\bacula.pdf"'
SectionEnd
SetOutPath "$INSTDIR\doc"
CreateDirectory "$INSTDIR\doc"
+
File "${DOC_DIR}\manual\bacula\*.html"
File "${DOC_DIR}\manual\bacula\*.png"
File "${DOC_DIR}\manual\bacula\*.css"
nsExec::ExecToLog '"$INSTDIR\bin\bacula-fd.exe" /kill'
nsExec::ExecToLog '"$INSTDIR\bin\bacula-sd.exe" /kill'
nsExec::ExecToLog '"$INSTDIR\bin\bacula-dir.exe" /kill'
+ Sleep 3000
+
ReadRegDWORD $R0 HKLM "Software\Bacula" "Service_Bacula-fd"
${If} $R0 = 1
Function InstallDaemon
Call CopyDependencies
- IfFileExists "$APPDATA\Bacula\$0.conf" 0 +3
+ IfFileExists "$APPDATA\Bacula\$0.conf" 0 +4
nsExec::ExecToLog '"$INSTDIR\bin\$0.exe" /silent /kill' ; Shutdown any bacula that could be running
nsExec::ExecToLog '"$INSTDIR\bin\$0.exe" /silent /remove' ; Remove existing service
+ Sleep 3000
WriteRegDWORD HKLM "Software\Bacula" "Service_$0" $2
#include <stdio.h>
#include <tchar.h>
+#include <conio.h>
#include "ScsiDeviceList.h"
#define new DEBUG_NEW
#endif
-int _tmain(int /* argc */, _TCHAR* /* argv */[])
+int _tmain(int argc, _TCHAR* argv[])
{
#if defined(_MSC_VER) && defined(_DEBUG)
CMemoryState InitialMemState, FinalMemState, DiffMemState;
DiffMemState.DumpStatistics();
#endif
+ if (argc > 1 && _tcsnicmp(argv[1], _T("/pause"), sizeof(_T("/pause")) - sizeof(TCHAR)) == 0) {
+ _fputts(_T("\nPress any key to continue\n"), stderr);
+ _getch();
+ }
+
return 0;
}
/* _("...") macro returns a wxChar*, so if we need a char*, we need to convert it with:
* wxString(_("...")).mb_str(*wxConvCurrent) */
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"
/* _("...") macro returns a wxChar*, so if we need a char*, we need to convert it with:
* wxString(_("...")).mb_str(*wxConvCurrent) */
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"
/* _("...") macro returns a wxChar*, so if we need a char*, we need to convert it with:
* wxString(_("...")).mb_str(*wxConvCurrent) */
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"
// headers
// ----------------------------------------------------------------------------
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"
*/
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"
*/
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"
*/
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"
*/
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"
*/
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"
Select parameter to modify (1-11):
*/
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"
*/
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"
*/
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"
*/
+/* Windows debug builds set _DEBUG which is used by wxWidgets to select their
+ * debug memory allocator. Unfortunately it conflicts with Bacula's SmartAlloc.
+ * So we turn _DEBUG off since we aren't interested in things it enables.
+ */
+
#undef _DEBUG
#include "bacula.h"