- Timestamp:
- Jul 4, 2012, 6:53:50 PM (12 years ago)
- Location:
- opsi/products/bacula
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
opsi/products/bacula/CLIENT_DATA/delsub3264.ins
r1022 r1023 5 5 6 6 7 Set $MsiId32$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'7 ;Set $MsiId32$ = 'Bacula' 8 8 Set $UninstallProgram32$ = $InstallDir32$ + "\uninstall.exe" 9 9 10 Set $MsiId64$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'10 ;Set $MsiId64$ = 'Bacula' 11 11 Set $UninstallProgram64$ = $InstallDir64$ + "\uninstall.exe" 12 12 … … 20 20 endif 21 21 22 if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiId32$ + "] DisplayName") = "")23 comment "MSI id " + $MsiId32$ + " found in registry, starting msiexec to uninstall"24 Winbatch_uninstall_msi_3225 sub_check_exitcode26 endif22 ;if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiId32$ + "] DisplayName") = "") 23 ; comment "MSI id " + $MsiId32$ + " found in registry, starting msiexec to uninstall" 24 ; Winbatch_uninstall_msi_32 25 ; sub_check_exitcode 26 ;endif 27 27 28 comment "Delete files"29 Files_uninstall_32 /32Bit30 comment "Cleanup registry"31 Registry_uninstall /32Bit28 ;comment "Delete files" 29 ;Files_uninstall_32 /32Bit 30 ;comment "Cleanup registry" 31 ;Registry_uninstall /32Bit 32 32 endif 33 33 … … 41 41 endif 42 42 43 if not (GetRegistryStringValue64("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiId64$ + "] DisplayName") = "")44 comment "MSI id " + $MsiId64$ + " found in registry, starting msiexec to uninstall"45 Winbatch_uninstall_msi_6446 sub_check_exitcode47 endif43 ;if not (GetRegistryStringValue64("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiId64$ + "] DisplayName") = "") 44 ; comment "MSI id " + $MsiId64$ + " found in registry, starting msiexec to uninstall" 45 ; Winbatch_uninstall_msi_64 46 ; sub_check_exitcode 47 ;endif 48 48 49 comment "Delete files"50 Files_uninstall_64 /64Bit51 comment "Cleanup registry"52 Registry_uninstall /64Bit49 ;comment "Delete files" 50 ;Files_uninstall_64 /64Bit 51 ;comment "Cleanup registry" 52 ;Registry_uninstall /64Bit 53 53 endif 54 54 55 comment "Delete program shortcuts"56 LinkFolder_uninstall55 ;comment "Delete program shortcuts" 56 ;LinkFolder_uninstall 57 57 58 58 [Winbatch_uninstall_32] 59 ; Choose one of the following examples as basis for program uninstall 60 ; 61 ; === Nullsoft Scriptable Install System ================================================================ 62 ; "$UninstallProgram32$" /S 63 ; 64 ; === Inno Setup ======================================================================================== 65 ; "$UninstallProgram32$" /silent /norestart /SUPPRESSMSGBOXES /nocancel 59 "$UninstallProgram32$" /S 60 61 62 [Winbatch_uninstall_64] 63 "$UninstallProgram64$" /S 66 64 67 65 … … 74 72 ; delete -sf "$InstallDir32$\" 75 73 76 [Winbatch_uninstall_64]77 ; Choose one of the following examples as basis for program uninstall78 ;79 ; === Nullsoft Scriptable Install System ================================================================80 ; "$UninstallProgram64$" /S81 ;82 ; === Inno Setup ========================================================================================83 ; "$UninstallProgram64$" /silent /norestart /SUPPRESSMSGBOXES /nocancel84 74 85 75 -
opsi/products/bacula/CLIENT_DATA/readme.txt
r1022 r1023 1 1 TODO 2 * Programme not "Program Files"2 * (Programme not "Program Files") 3 3 * properties? 4 * fd service läuft? 4 bconsole.conf: 5 Director { 6 Name = @director_name@ 7 DIRport = 9101 8 address = @director_address@ 9 Password = "@director_password@" 10 } 11 12 bacula-fd.conf: 13 @director_name@ 14 Director { 15 Name = opsiwinxpjs1-mon 16 Password = "2T7xTQg7uCi+RCUpQBUVYCSe+imYWbBfxOBa5QmDxDiD" 17 Monitor = yes 18 } 19 20 bat.conf: 21 Director { 22 Name = @director_name@ 23 DIRport = 9101 24 address = @director_address@ 25 Password = "@director_password@" 26 } 27 28 tray-monitor.conf: 29 Monitor { 30 Name = opsiwinxpjs1-mon 31 Password = "@mon_password@" # password for the Directors 32 RefreshInterval = 30 seconds 33 } 34 35 Client { 36 Name = opsiwinxpjs1-fd 37 Address = localhost 38 FDPort = 9102 39 Password = "2T7xTQg7uCi+RCUpQBUVYCSe+imYWbBfxOBa5QmDxDiD" 40 } 41 42 #Storage { 43 # Name = @basename@-sd 44 # Address = @hostname@ 45 # SDPort = @sd_port@ 46 # Password = "@mon_sd_password@" # password for StorageDaemon 47 #} 48 # 49 #Director { 50 # Name = @basename@-dir 51 # DIRport = @dir_port@ 52 # address = @hostname@ 53 #} 54 # 55 * (fd service läuft? start automatisch) 5 56 * firewall 6 57 * gui feedback? 7 58 59 installer: 60 http://www.bacula.org/git/cgit.cgi/bacula/tree/bacula/src/win32/full_win32_installer/winbacula.nsi 8 61 62 @philipp: 63 - \\ in pfaden bei windows configuration erforderlich? 64 - benennung der properties? 65 -
opsi/products/bacula/CLIENT_DATA/setup3264.ins
r1022 r1023 15 15 DefVar $ProductVer$ 16 16 DefVar $MinimumSpace$ 17 DefVar $InstallDir$ 17 18 DefVar $InstallDir32$ 18 19 DefVar $InstallDir64$ … … 24 25 DefVar $INST_architecture$ 25 26 27 DefVar $filedaemon_name$ 28 DefVar $filedaemon_full_name$ 29 DefVar $filedaemon_full_password$ 30 DefVar $filedaemon_monitor_name$ 31 DefVar $filedaemon_monitor_password$ 32 DefVar $director_name$ 33 DefVar $director_address$ 34 DefVar $director_password$ 35 36 26 37 Set $INST_SystemType$ = GetSystemType 27 38 set $INST_architecture$ = GetProductProperty("install_architecture","system specific") 28 39 40 set $filedaemon_name$ = GetProductProperty( "filedaemon_name", "" ) 41 set $filedaemon_full_password$ = GetProductProperty( "filedaemon_full_password", "filedaemon_full_password" ) 42 set $filedaemon_monitor_password$ = GetProductProperty( "filedaemon_monitor_password", "filedaemon_monitor_password" ) 43 set $director_name$ = GetProductProperty( "director_name", "director_name" ) 44 set $director_address$ = GetProductProperty( "director_address", "director_address.example.com" ) 45 set $director_password$ = GetProductProperty( "director_password", "director_password" ) 29 46 30 47 Set $LogDir$ = "%SystemDrive%\tmp" … … 38 55 Set $ProductId$ = "bacula" 39 56 Set $ProductVer$ = "5.2.10" 40 Set $MinimumSpace$ = " 20 MB"57 Set $MinimumSpace$ = "30 MB" 41 58 ; the path were we find the product after the installation 42 Set $InstallDir32$ = "%ProgramFiles32Dir%\<path to the product>" 43 Set $InstallDir64$ = "%ProgramFiles64Dir%\<path to the product>" 59 Set $InstallDir$ = "%ProgramFilesDir%\Bacula" 60 Set $InstallDir32$ = "%ProgramFiles32Dir%\Bacula" 61 Set $InstallDir64$ = "%ProgramFiles64Dir%\Bacula" 44 62 Set $LicenseRequired$ = "false" 45 63 Set $LicensePool$ = "p_" + $ProductId$ … … 50 68 isFatalError 51 69 ; Stop process and set installation status to failed 70 endif 71 72 comment "Show product picture" 73 ShowBitmap "%ScriptPath%\logo.png" $ProductId$ 74 75 if FileExists("%ScriptPath%\delsub3264.ins") 76 comment "Start uninstall sub section" 77 Sub "%ScriptPath%\delsub3264.ins" 78 endif 79 80 ;if $LicenseRequired$ = "true" 81 ; comment "Licensing required, reserve license and get license key" 82 ; Sub_get_licensekey 83 ;endif 84 85 comment "installing" 86 87 if $filedaemon_name$ = "" 88 set $filedaemon_full_name$ = "%PCname%-fd" 89 set $filedaemon_monitor_name$ = "%PCname%-mon" 52 90 else 53 comment "Show product picture" 54 ShowBitmap "%ScriptPath%\logo.png" $ProductId$ 55 56 if FileExists("%ScriptPath%\delsub3264.ins") 57 comment "Start uninstall sub section" 58 Sub "%ScriptPath%\delsub3264.ins" 59 endif 60 61 ;if $LicenseRequired$ = "true" 62 ; comment "Licensing required, reserve license and get license key" 63 ; Sub_get_licensekey 64 ;endif 65 66 comment "installing" 67 68 if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only") 69 Message "Installing " + $ProductId$ + " 32 Bit..." 70 comment "Start setup program" 71 Winbatch_install_32 72 Sub_check_exitcode 73 ;comment "Copy files" 74 ;Files_install_32 /32Bit 75 ;comment "Patch Registry" 76 ;Registry_install /32Bit 77 ;comment "Create shortcuts" 78 ;LinkFolder_install 79 endif 80 81 if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) 82 Message "Installing " + $ProductId$ + " 64 Bit..." 83 comment "Start setup program" 84 Winbatch_install_64 85 Sub_check_exitcode 86 ;comment "Copy files" 87 ;Files_install_64 /64Bit 88 ;comment "Patch Registry" 89 ;Registry_install /64Bit 90 ;comment "Create shortcuts" 91 ;LinkFolder_install 92 endif 93 94 endif 91 set $filedaemon_full_name$ = "$filedaemon_name$-fd" 92 set $filedaemon_monitor_name$ = "$filedaemon_name$-mon" 93 endif 94 95 96 if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only") 97 Message "Installing " + $ProductId$ + " 32 Bit..." 98 comment "Start setup program" 99 Winbatch_install_32 100 Sub_check_exitcode 101 ;comment "Copy files" 102 ;Files_install_32 /32Bit 103 ;comment "Patch Registry" 104 ;Registry_install /32Bit 105 ;comment "Create shortcuts" 106 ;LinkFolder_install 107 endif 108 109 if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) 110 Message "Installing " + $ProductId$ + " 64 Bit..." 111 comment "Start setup program" 112 Winbatch_install_64 113 Sub_check_exitcode 114 ;comment "Copy files" 115 ;Files_install_64 /64Bit 116 ;comment "Patch Registry" 117 ;Registry_install /64Bit 118 ;comment "Create shortcuts" 119 ;LinkFolder_install 120 endif 121 122 ;Patches_bacula_conf $InstallDir$+"\bacula-fd.conf" 123 DosBatch_bacula-fd.conf 124 125 ; 126 ; end 127 ; 128 129 130 131 ; winbatch installer: 132 ; /S silent installl 133 ; /D destination path 134 ; use this, otherwise it installs to "program files" for all languages. 135 ; don't use " around argument, otherwise argument is ignored 95 136 96 137 [Winbatch_install_32] 97 ; Choose one of the following examples as basis for your installation 98 ; You can use $LicenseKey$ var to pass a license key to the installer 99 ; 100 ; === Nullsoft Scriptable Install System ================================================================ 101 ; "%ScriptPath%\Setup.exe" /S 102 ; 103 ; === MSI package ======================================================================================= 104 ; You may use the parameter PIDKEY=$Licensekey$ 105 ; msiexec /i "%ScriptPath%\some.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=2 REBOOT=ReallySuppress 106 ; 107 ; === InstallShield + MSI===================================================================================== 108 ; Attention: The path to the log file should not contain any whitespaces 109 ; "%ScriptPath%\setup.exe" /s /v" /l* $LogDir$\$ProductId$.install_log.txt /qb! ALLUSERS=2 REBOOT=ReallySuppress" 110 ; "%ScriptPath%\setup.exe" /s /v" /qb! ALLUSERS=2 REBOOT=ReallySuppress" 111 ; 112 ; === InstallShield ===================================================================================== 113 ; Create setup.iss answer file by running: setup.exe /r /f1"c:\setup.iss" 114 ; "%ScriptPath%\setup.exe" /s /sms /f1"%ScriptPath%\setup.iss" /f2"$LogDir$\$ProductId$.install_log.txt" 115 ; 116 ; === Inno Setup ======================================================================================== 117 ; http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html 118 ; You may create setup answer file by: setup.exe /SAVEINF="filename" 119 ; You may use an answer file by the parameter /LOADINF="filename" 120 ; "%ScriptPath%\setup.exe" /sp- /silent /norestart /nocancel /SUPPRESSMSGBOXES 121 122 "%ScriptPath%\data\bacula-win32-$ProductVer$.exe" /S 138 "%ScriptPath%\data\bacula-win32-$ProductVer$.exe" /S /D=$InstallDir32$ 139 140 [Winbatch_install_64] 141 "%ScriptPath%\data\bacula-win64-$ProductVer$.exe" /S /D=$InstallDir64$ 142 143 [DosBatch_bacula-fd.conf] 144 ( 145 echo # managed by opsi 146 echo # 147 echo # "Global" File daemon configuration specifications 148 echo # 149 echo FileDaemon { # this is me 150 echo Name = $filedaemon_full_name$ 151 echo FDport = 9102 # where we listen for the director 152 echo WorkingDirectory = "$InstallDir32$\\working" 153 echo Pid Directory = "$InstallDir32$\\working" 154 echo Plugin Directory = "$InstallDir32$\\plugins" 155 echo Maximum Concurrent Jobs = 10 156 echo } 157 ;echo 158 echo # 159 echo # List Directors who are permitted to contact this File daemon 160 echo # 161 echo Director { 162 echo Name = $director_name$ 163 echo Password = "$filedaemon_full_password$" 164 echo } 165 ;echo 166 echo # 167 echo # Restricted Director, used by tray-monitor to get the 168 echo # status of the file daemon 169 echo # 170 echo Director { 171 echo Name = $filedaemon_monitor_name$ 172 echo Password = "$filedaemon_monitor_password$" 173 echo Monitor = yes 174 echo } 175 ;echo 176 echo # Send all messages except skipped files back to Director 177 echo Messages { 178 echo Name = Standard 179 echo director = $director_name$ = all, !skipped, !restored 180 echo } 181 ) >> $InstallDir$/bacula-fd.conf 123 182 124 183 … … 128 187 ; 129 188 ; copy -s "%ScriptPath%\files\*.*" "$InstallDir32$" 130 131 [Winbatch_install_64]132 ; Choose one of the following examples as basis for your installation133 ; You can use $LicenseKey$ var to pass a license key to the installer134 ;135 ; === Nullsoft Scriptable Install System ================================================================136 ; "%ScriptPath%\Setup.exe" /S137 ;138 ; === MSI package =======================================================================================139 ; You may use the parameter PIDKEY=$Licensekey$140 ; msiexec /i "%ScriptPath%\some.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=2 REBOOT=ReallySuppress141 ;142 ; === InstallShield + MSI=====================================================================================143 ; Attention: The path to the log file should not contain any whitespaces144 ; "%ScriptPath%\setup.exe" /s /v" /l* $LogDir$\$ProductId$.install_log.txt /qb! ALLUSERS=2 REBOOT=ReallySuppress"145 ; "%ScriptPath%\setup.exe" /s /v" /qb! ALLUSERS=2 REBOOT=ReallySuppress"146 ;147 ; === InstallShield =====================================================================================148 ; Create setup.iss answer file by running: setup.exe /r /f1"c:\setup.iss"149 ; "%ScriptPath%\setup.exe" /s /sms /f1"%ScriptPath%\setup.iss" /f2"$LogDir$\$ProductId$.install_log.txt"150 ;151 ; === Inno Setup ========================================================================================152 ; http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html153 ; You may create setup answer file by: setup.exe /SAVEINF="filename"154 ; You may use an answer file by the parameter /LOADINF="filename"155 ; "%ScriptPath%\setup.exe" /sp- /silent /norestart /nocancel /SUPPRESSMSGBOXES156 157 "%ScriptPath%\data\bacula-win64-$ProductVer$.exe" /S158 159 160 189 161 190 [Files_install_64] -
opsi/products/bacula/CLIENT_DATA/uninstall3264.ins
r1022 r1023 31 31 ; ---------------------------------------------------------------- 32 32 Set $ProductId$ = "opsi-template" 33 Set $InstallDir32$ = "%ProgramFiles32Dir%\ <path to the product>"34 Set $InstallDir64$ = "%ProgramFiles64Dir%\ <path to the product>"33 Set $InstallDir32$ = "%ProgramFiles32Dir%\Bacula" 34 Set $InstallDir64$ = "%ProgramFiles64Dir%\Bacula" 35 35 Set $LicenseRequired$ = "false" 36 36 Set $LicensePool$ = "p_" + $ProductId$ … … 48 48 endif 49 49 50 if $LicenseRequired$ = "true"51 comment "Licensing required, free license used"52 Sub_free_license53 endif50 ;if $LicenseRequired$ = "true" 51 ; comment "Licensing required, free license used" 52 ; Sub_free_license 53 ;endif 54 54 55 55 [Sub_free_license] -
opsi/products/bacula/OPSI/control
r1022 r1023 1 1 [Package] 2 version: 12 version: 2 3 3 depends: 4 4 incremental: False … … 24 24 [ProductProperty] 25 25 type: unicode 26 name: filedaemon_name 27 multivalue: False 28 editable: True 29 description: filedaemon bacula name. Leave empty HOSTNAME-fd 30 default: [""] 31 32 [ProductProperty] 33 type: unicode 34 name: filedaemon_full_password 35 multivalue: False 36 editable: True 37 description: password used by director to connect to this filedaemon 38 default: ["filedaemon_full_password"] 39 40 [ProductProperty] 41 type: unicode 42 name: filedaemon_monitor_password 43 multivalue: False 44 editable: True 45 description: password used by monitoring (eg. tray-monitor) to connect to this filedaemon 46 default: ["filedaemon_monitor_password"] 47 48 [ProductProperty] 49 type: unicode 50 name: director_name 51 multivalue: False 52 editable: True 53 description: access to Bacula director for bconsole and bat 54 default: ["bacula-dir"] 55 56 [ProductProperty] 57 type: unicode 58 name: director_address 59 multivalue: False 60 editable: True 61 description: access to Bacula director for bconsole and bat 62 default: ["bacula-dir.example.com"] 63 64 [ProductProperty] 65 type: unicode 66 name: director_password 67 multivalue: False 68 editable: True 69 description: access to Bacula director for bconsole and bat 70 default: ["director_password"] 71 72 [ProductProperty] 73 type: unicode 26 74 name: install_architecture 27 75 multivalue: False … … 31 79 default: ["system specific"] 32 80 81 33 82 [Changelog] 83 20120704, 5.2.10-2, Joerg Steffens 84 * uninstall 85 * properties 86 * generate bacula-fd.conf 87 34 88 20120702, 5.2.10-1, Joerg Steffens 35 89 * initial
Note:
See TracChangeset
for help on using the changeset viewer.