From 7410160b5d15443d331b779d91ba60bfba21456c Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 16 Oct 2009 17:16:13 +0200 Subject: [PATCH] Update installers --- bacula/src/win32/newinstaller/Readme.txt | 175 +++++++++--------- .../src/win32/win32_installer/InstallType.ini | 102 +++++----- .../src/win32/win64_installer/InstallType.ini | 102 +++++----- .../src/win32/win64_installer/winbacula.nsi | 91 ++------- 4 files changed, 203 insertions(+), 267 deletions(-) diff --git a/bacula/src/win32/newinstaller/Readme.txt b/bacula/src/win32/newinstaller/Readme.txt index 5535f9b8cf..4658ab3975 100755 --- a/bacula/src/win32/newinstaller/Readme.txt +++ b/bacula/src/win32/newinstaller/Readme.txt @@ -1,85 +1,90 @@ -Bacula - Windows Version Disclaimer -=================================== - -Please note, only the Win32 Client (File daemon) is supported. All the -other components (Director, Storage daemon, their utilities) are provided -on an "as is" basis. Unfortunately, they are neither properly tested, -documented, or supported. This means that we cannot ensure that bug reports -against the non-supported components will be fixed. For them to be supported, -we need three things from the Open Source community: - -1. Full documentation of the Windows particularities of the Director, - the Storage daemon, and their utilities in the Bacula manual. - -2. Someone to periodically and on demand run the regressions tests. - -3. One or more developers who are willing to accept and correct Windows - related bugs as they occur. - -4. A certain Win32 community that will respond to user support questions - on the bacula-users list. (This is probably already fullfilled). - - -Bacula - Windows Version Notes -============================== - -These notes highlight how the Windows version of Bacula differs from the -other versions. It also provides any notes additional to the documentation. - -For detailed documentation on using, configuring and troubleshooting Bacula, -please consult the installed documentation or the online documentation at -http://www.bacula.org/?page=documentation. - - -Start Menu Items ----------------- -A number of menu items have been created in the Start menu under All Programs -in the Bacula submenu. They may be selected to edit the configuration files, -view the documentation or run one of the console or utility programs. The -choices available will vary depending on the options you chose to install. - - -File Locations --------------- -The programs and documentation are installed in the directory -"C:\Program Files\Bacula" unless a different directory was selected during -installation. The configuration and other application data files are in the -"C:\Documents and Settings\All Users\Application Data\Bacula" directory. - -Code Page Problems -------------------- -Please note that Bacula expects the contents of the configuration files to be -written in UTF-8 format. Some translations of "Application Data" have accented -characters, and apparently the installer writes this translated data in the -standard Windows code page coding. This occurs for the Working Directory, and -when it happens the daemon will not start since Bacula cannot find the directory. -The workaround is to manually edit the appropriate conf file and ensure that it -is written out in UTF-8 format. - -The conf files can be edited with any UTF-8 compatible editor, or on most -modern Win32 machines, you can edit them with notepad, then choose UTF-8 -output encoding before saving them. - - -Storage and Director Services ------------------------------ -These services are still considered experimental in this release. Use of -them should be approached with caution since they haven't received the -same level of extensive usage and testing that the File service has -received. - -Storage Device Names --------------------- -There is a utility installed called scsilist.exe which displays the installed -devices, their physical address and their device name. A link to it is -created in the Bacula menu when the Storage service is installed. - -Changer and Tape device names in Windows are Changer0, Changer1, etc and -Tape0, Tape1, etc. If there isn't a device driver loaded for the Changer -then you need to use the address :::. Port is the -SCSI Adapter Number, Bus is the Bus Number on the adapter (usually 0 since -most adapters only have one bus), Target is the device's Target Device ID, -Lun is the Logical Unit Number. - -You must specify DeviceType = tape in the Device resource in bacula-sd.conf -since auto detection of device type doesn't work at the present time. + +This newinstaller directory is not used or implemented + + + +Bacula - Windows Version Disclaimer +=================================== + +Please note, only the Win32 Client (File daemon) is supported. All the +other components (Director, Storage daemon, their utilities) are provided +on an "as is" basis. Unfortunately, they are neither properly tested, +documented, or supported. This means that we cannot ensure that bug reports +against the non-supported components will be fixed. For them to be supported, +we need three things from the Open Source community: + +1. Full documentation of the Windows particularities of the Director, + the Storage daemon, and their utilities in the Bacula manual. + +2. Someone to periodically and on demand run the regressions tests. + +3. One or more developers who are willing to accept and correct Windows + related bugs as they occur. + +4. A certain Win32 community that will respond to user support questions + on the bacula-users list. (This is probably already fullfilled). + + +Bacula - Windows Version Notes +============================== + +These notes highlight how the Windows version of Bacula differs from the +other versions. It also provides any notes additional to the documentation. + +For detailed documentation on using, configuring and troubleshooting Bacula, +please consult the installed documentation or the online documentation at +http://www.bacula.org/?page=documentation. + + +Start Menu Items +---------------- +A number of menu items have been created in the Start menu under All Programs +in the Bacula submenu. They may be selected to edit the configuration files, +view the documentation or run one of the console or utility programs. The +choices available will vary depending on the options you chose to install. + + +File Locations +-------------- +The programs and documentation are installed in the directory +"C:\Program Files\Bacula" unless a different directory was selected during +installation. The configuration and other application data files are in the +"C:\Documents and Settings\All Users\Application Data\Bacula" directory. + +Code Page Problems +------------------- +Please note that Bacula expects the contents of the configuration files to be +written in UTF-8 format. Some translations of "Application Data" have accented +characters, and apparently the installer writes this translated data in the +standard Windows code page coding. This occurs for the Working Directory, and +when it happens the daemon will not start since Bacula cannot find the directory. +The workaround is to manually edit the appropriate conf file and ensure that it +is written out in UTF-8 format. + +The conf files can be edited with any UTF-8 compatible editor, or on most +modern Win32 machines, you can edit them with notepad, then choose UTF-8 +output encoding before saving them. + + +Storage and Director Services +----------------------------- +These services are still considered experimental in this release. Use of +them should be approached with caution since they haven't received the +same level of extensive usage and testing that the File service has +received. + +Storage Device Names +-------------------- +There is a utility installed called scsilist.exe which displays the installed +devices, their physical address and their device name. A link to it is +created in the Bacula menu when the Storage service is installed. + +Changer and Tape device names in Windows are Changer0, Changer1, etc and +Tape0, Tape1, etc. If there isn't a device driver loaded for the Changer +then you need to use the address :::. Port is the +SCSI Adapter Number, Bus is the Bus Number on the adapter (usually 0 since +most adapters only have one bus), Target is the device's Target Device ID, +Lun is the Logical Unit Number. + +You must specify DeviceType = tape in the Device resource in bacula-sd.conf +since auto detection of device type doesn't work at the present time. diff --git a/bacula/src/win32/win32_installer/InstallType.ini b/bacula/src/win32/win32_installer/InstallType.ini index 62c88cf6da..a87189c727 100644 --- a/bacula/src/win32/win32_installer/InstallType.ini +++ b/bacula/src/win32/win32_installer/InstallType.ini @@ -1,51 +1,51 @@ -[Settings] -NumFields=6 - -[Field 1] -Type=Label -Text=This is a new installation. Please choose the installation type. -Left=0 -Right=300 -Top=0 -Bottom=28 - -[Field 2] -Type=GroupBox -Text=Installation Type -Left=0 -Right=300 -Top=32 -Bottom=136 - -[Field 3] -Type=RadioButton -Text=Automatic -State=1 -Left=6 -Right=52 -Top=44 -Bottom=54 - -[Field 4] -Type=RadioButton -Text=Custom -Left=6 -Right=44 -Top=90 -Bottom=100 - -[Field 5] -Type=Label -Text=The software will be installed in the default directory "Program Files\\Bacula". The configuration files will be generated using defaults applicable to most installations. -Left=17 -Right=295 -Top=58 -Bottom=86 - -[Field 6] -Type=Label -Text=You may choose the installation directory. The configuration defaults will be displayed and you will be given the chance to make changes before the configuration files are written. -Left=17 -Right=295 -Top=104 -Bottom=132 +[Settings] +NumFields=6 + +[Field 1] +Type=Label +Text=This is a new installation. Please choose the installation type. +Left=0 +Right=300 +Top=0 +Bottom=28 + +[Field 2] +Type=GroupBox +Text=Installation Type +Left=0 +Right=300 +Top=32 +Bottom=136 + +[Field 3] +Type=RadioButton +Text=Automatic +State=1 +Left=6 +Right=52 +Top=44 +Bottom=54 + +[Field 4] +Type=RadioButton +Text=Custom (not recommended) +Left=6 +Right=200 +Top=90 +Bottom=100 + +[Field 5] +Type=Label +Text=The software will be installed in the default directory "Program Files\\Bacula". The configuration files will be generated using defaults applicable to most installations. +Left=17 +Right=295 +Top=58 +Bottom=86 + +[Field 6] +Type=Label +Text=You have more options, but you will have to manually edit your bacula-fd.conf file before Bacula will work. +Left=17 +Right=295 +Top=104 +Bottom=132 diff --git a/bacula/src/win32/win64_installer/InstallType.ini b/bacula/src/win32/win64_installer/InstallType.ini index 62c88cf6da..562d5d9a59 100644 --- a/bacula/src/win32/win64_installer/InstallType.ini +++ b/bacula/src/win32/win64_installer/InstallType.ini @@ -1,51 +1,51 @@ -[Settings] -NumFields=6 - -[Field 1] -Type=Label -Text=This is a new installation. Please choose the installation type. -Left=0 -Right=300 -Top=0 -Bottom=28 - -[Field 2] -Type=GroupBox -Text=Installation Type -Left=0 -Right=300 -Top=32 -Bottom=136 - -[Field 3] -Type=RadioButton -Text=Automatic -State=1 -Left=6 -Right=52 -Top=44 -Bottom=54 - -[Field 4] -Type=RadioButton -Text=Custom -Left=6 -Right=44 -Top=90 -Bottom=100 - -[Field 5] -Type=Label -Text=The software will be installed in the default directory "Program Files\\Bacula". The configuration files will be generated using defaults applicable to most installations. -Left=17 -Right=295 -Top=58 -Bottom=86 - -[Field 6] -Type=Label -Text=You may choose the installation directory. The configuration defaults will be displayed and you will be given the chance to make changes before the configuration files are written. -Left=17 -Right=295 -Top=104 -Bottom=132 +[Settings] +NumFields=6 + +[Field 1] +Type=Label +Text=This is a new installation. Please choose the installation type. +Left=0 +Right=300 +Top=0 +Bottom=28 + +[Field 2] +Type=GroupBox +Text=Installation Type +Left=0 +Right=300 +Top=32 +Bottom=136 + +[Field 3] +Type=RadioButton +Text=Automatic +State=1 +Left=6 +Right=52 +Top=44 +Bottom=54 + +[Field 4] +Type=RadioButton +Text=Custom (not recommended) +Left=6 +Right=252 +Top=90 +Bottom=100 + +[Field 5] +Type=Label +Text=The software will be installed in the default directory "Program Files\\Bacula". The configuration files will be generated using defaults applicable to most installations. +Left=17 +Right=295 +Top=58 +Bottom=86 + +[Field 6] +Type=Label +Text=You have more options, but you will have to manually edit your bacula-fd.conf file before Bacula will work. +Left=17 +Right=295 +Top=104 +Bottom=132 diff --git a/bacula/src/win32/win64_installer/winbacula.nsi b/bacula/src/win32/win64_installer/winbacula.nsi index 382d352162..05cd5b7f16 100644 --- a/bacula/src/win32/win64_installer/winbacula.nsi +++ b/bacula/src/win32/win64_installer/winbacula.nsi @@ -37,8 +37,8 @@ ; ; Kern Sibbald April 2009 ; Correct some Win64 install problems -; -; Version $Id: winbacula.nsi 7074 2008-05-31 18:43:21Z kerns $ +; It is mind boggling how many lines of this insane scripting language +; have been written with absolutely no comments ; ; Command line options: ; @@ -268,6 +268,7 @@ Function .onInit StrCpy $ConfigMonitorName "$HostName-mon" ;StrCpy $ConfigMonitorPassword +; PLUGINSDIR refers to temporary helper programs and not Bacula plugins! InitPluginsDir File "/oname=$PLUGINSDIR\openssl.exe" "${SRC_DIR}\openssl.exe" File "/oname=$PLUGINSDIR\ssleay32-0.9.8.dll" "${SRC_DIR}\ssleay32-0.9.8.dll" @@ -281,6 +282,7 @@ Function .onInit SetPluginUnload alwaysoff +; Set client password nsExec::Exec '"$PLUGINSDIR\openssl.exe" rand -base64 -out $PLUGINSDIR\pw.txt 33' pop $R0 ${If} $R0 = 0 @@ -293,6 +295,7 @@ Function .onInit SetPluginUnload manual +; Set monitor password nsExec::Exec '"$PLUGINSDIR\openssl.exe" rand -base64 -out $PLUGINSDIR\pw.txt 33' pop $R0 ${If} $R0 = 0 @@ -373,6 +376,7 @@ Section "-Initialize" File "..\..\..\LICENSE" Delete /REBOOTOK "$INSTDIR\License.txt" +; Output a series of SED commands to configure the .conf file(s) FileOpen $R1 $PLUGINSDIR\config.sed w FileWrite $R1 "s;@VERSION@;${VERSION};g$\r$\n" FileWrite $R1 "s;@DATE@;${__DATE__};g$\r$\n" @@ -453,11 +457,11 @@ Section "File Service" SecFileDaemon File "${SRC_DIR}\bacula-fd.exe" - File "/oname=$PLUGINSDIR\bacula-fd.conf" "bacula-fd.conf.in" + File "/oname=$PLUGINSDIR\bacula-fd.conf" "bacula-fd.conf.in" - StrCpy $0 "$INSTDIR" - StrCpy $1 bacula-fd.conf - Call ConfigEditAndCopy + StrCpy $0 "$INSTDIR" + StrCpy $1 bacula-fd.conf + Call ConfigEditAndCopy StrCpy $0 bacula-fd StrCpy $1 "File Service" @@ -486,27 +490,12 @@ Section "Command Console" SecConsole SectionEnd +; Essentially deleted because wxconsole is not implemented on Win64 Section "Graphical Console" SecWxConsole SectionIn 1 2 3 SetOutPath "$INSTDIR" -; Call InstallCommonFiles -;!if "${BUILD_TOOLS}" == "MinGW64" -; File "${SRC_DIR}\wxbase28_gcc_bacula.dll" -; File "${SRC_DIR}\wxmsw28_core_gcc_bacula.dll" -;!endif - -; File "${SRC_DIR}\bwx-console.exe" - -; File "/oname=$PLUGINSDIR\bwx-console.conf" "bwx-console.conf.in" -; StrCpy $0 "$INSTDIR" -; StrCpy $1 bwx-console.conf -; Call ConfigEditAndCopy - - ; Create Start Menu entry -; CreateShortCut "$SMPROGRAMS\Bacula\bwx-console.lnk" "$INSTDIR\bwx-console.exe" '-c "$INSTDIR\bwx-console.conf"' "$INSTDIR\bwx-console.exe" 0 -; CreateShortCut "$SMPROGRAMS\Bacula\Configuration\Edit Graphical Console Configuration.lnk" "write.exe" '"$INSTDIR\bwx-console.conf"' SectionEnd SectionGroupEnd @@ -543,9 +532,6 @@ SectionEnd LangString DESC_SecFileDaemon ${LANG_ENGLISH} "Install Bacula File Daemon on this system." LangString DESC_SecConsole ${LANG_ENGLISH} "Install command console program on this system." -;LangString DESC_SecWxConsole ${LANG_ENGLISH} "Install graphical console program on this system." -;LangString DESC_SecDocPdf ${LANG_ENGLISH} "Install documentation in Acrobat format on this system." -;LangString DESC_SecDocHtml ${LANG_ENGLISH} "Install documentation in HTML format on this system." LangString TITLE_ConfigPage1 ${LANG_ENGLISH} "Configuration" LangString SUBTITLE_ConfigPage1 ${LANG_ENGLISH} "Set installation configuration." @@ -562,9 +548,6 @@ LangString SUBTITLE_WriteTemplates ${LANG_ENGLISH} "Create a resource template f !InsertMacro MUI_FUNCTION_DESCRIPTION_BEGIN !InsertMacro MUI_DESCRIPTION_TEXT ${SecFileDaemon} $(DESC_SecFileDaemon) !InsertMacro MUI_DESCRIPTION_TEXT ${SecConsole} $(DESC_SecConsole) -; !InsertMacro MUI_DESCRIPTION_TEXT ${SecWxConsole} $(DESC_SecWxConsole) -; !InsertMacro MUI_DESCRIPTION_TEXT ${SecDocPdf} $(DESC_SecDocPdf) -; !InsertMacro MUI_DESCRIPTION_TEXT ${SecDocHtml} $(DESC_SecDocHtml) !InsertMacro MUI_FUNCTION_DESCRIPTION_END ; Uninstall section @@ -758,15 +741,6 @@ Function GetSelectedComponents ${If} ${SectionIsSelected} ${SecConsole} IntOp $R0 $R0 | ${ComponentTextConsole} ${EndIf} -; ${If} ${SectionIsSelected} ${SecWxConsole} -; IntOp $R0 $R0 | ${ComponentGUIConsole} -; ${EndIf} -; ${If} ${SectionIsSelected} ${SecDocPdf} -; IntOp $R0 $R0 | ${ComponentPDFDocs} -; ${EndIf} -; ${If} ${SectionIsSelected} ${SecDocHtml} -; IntOp $R0 $R0 | ${ComponentHTMLDocs} -; ${EndIf} Exch $R0 FunctionEnd @@ -815,7 +789,6 @@ Function EnterWriteTemplates WriteINIStr "$PLUGINSDIR\WriteTemplates.ini" "Field 2" State 1 DeleteINIStr "$PLUGINSDIR\WriteTemplates.ini" "Field 2" Flags WriteINIStr "$PLUGINSDIR\WriteTemplates.ini" "Field 3" State "C:\$ConfigClientName.conf" -; WriteINIStr "$PLUGINSDIR\WriteTemplates.ini" "Field 5" Flags REQ_SAVE|FILE_EXPLORER|WARN_IF_EXIST ${EndIf} @@ -856,30 +829,6 @@ Function SelectPreviousComponents !InsertMacro UnselectSection ${SecConsole} !InsertMacro ClearSectionFlag ${SecConsole} ${SF_RO} ${EndIf} -; IntOp $R1 $PreviousComponents & ${ComponentGUIConsole} -; ${If} $R1 <> 0 -; !InsertMacro SelectSection ${SecWxConsole} -; !InsertMacro SetSectionFlag ${SecWxConsole} ${SF_RO} -; ${Else} -; !InsertMacro UnselectSection ${SecWxConsole} -; !InsertMacro ClearSectionFlag ${SecWxConsole} ${SF_RO} -; ${EndIf} -; IntOp $R1 $PreviousComponents & ${ComponentPDFDocs} -; ${If} $R1 <> 0 -; !InsertMacro SelectSection ${SecDocPdf} -; !InsertMacro SetSectionFlag ${SecDocPdf} ${SF_RO} -; ${Else} -; !InsertMacro UnselectSection ${SecDocPdf} -; !InsertMacro ClearSectionFlag ${SecDocPdf} ${SF_RO} -; ${EndIf} -; IntOp $R1 $PreviousComponents & ${ComponentHTMLDocs} -; ${If} $R1 <> 0 -; !InsertMacro SelectSection ${SecDocHtml} -; !InsertMacro SetSectionFlag ${SecDocHtml} ${SF_RO} -; ${Else} -; !InsertMacro UnselectSection ${SecDocHtml} -; !InsertMacro ClearSectionFlag ${SecDocHtml} ${SF_RO} -; ${EndIf} ${EndIf} FunctionEnd @@ -906,24 +855,6 @@ Function UpdateComponentUI ${Else} !InsertMacro ClearSectionFlag ${SecConsole} ${SF_BOLD} ${EndIf} -; IntOp $R1 $NewComponents & ${ComponentGUIConsole} -; ${If} $R1 <> 0 -; !InsertMacro SetSectionFlag ${SecWxConsole} ${SF_BOLD} -; ${Else} -; !InsertMacro ClearSectionFlag ${SecWxConsole} ${SF_BOLD} -; ${EndIf} -; IntOp $R1 $NewComponents & ${ComponentPDFDocs} -; ${If} $R1 <> 0 -; !InsertMacro SetSectionFlag ${SecDocPdf} ${SF_BOLD} -; ${Else} -; !InsertMacro ClearSectionFlag ${SecDocPdf} ${SF_BOLD} -; ${EndIf} -; IntOp $R1 $NewComponents & ${ComponentHTMLDocs} -; ${If} $R1 <> 0 -; !InsertMacro SetSectionFlag ${SecDocHtml} ${SF_BOLD} -; ${Else} -; !InsertMacro ClearSectionFlag ${SecDocHtml} ${SF_BOLD} -; ${EndIf} ${EndIf} GetDlgItem $R0 $HWNDPARENT 1 -- 2.39.5