Skip to content

Commit

Permalink
Bugfixes in the uninstall and install scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
  • Loading branch information
xtruthx authored and Marco van Wieringen committed Feb 17, 2015
1 parent 780d1fa commit 8765bee
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions platforms/opsi/CLIENT_DATA/delsub3264.ins
Expand Up @@ -12,7 +12,7 @@ if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specif

if FileExists($UninstallProgram32$)
comment "Uninstall program found, starting uninstall"
Winbatch_uninstall_32
Winbatch_uninstall_32 /WaitForProcessEnding "Au_.exe" /TimeOutSeconds "60"
sub_check_exitcode
endif

Expand All @@ -27,7 +27,7 @@ if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system spe

if FileExists($UninstallProgram64$)
comment "Uninstall program found, starting uninstall"
Winbatch_uninstall_64
Winbatch_uninstall_64 /WaitForProcessEnding "Au_.exe" /TimeOutSeconds "60"
sub_check_exitcode
endif

Expand Down
Binary file modified platforms/opsi/CLIENT_DATA/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 16 additions & 16 deletions platforms/opsi/CLIENT_DATA/setup3264.ins
Expand Up @@ -53,8 +53,8 @@ Set $LogDir$ = "%SystemDrive%\tmp"
; therefore please: only lower letters, no umlauts,
; no white space use '-' as a seperator
Set $ProductId$ = "winbareos"
Set $ProductExe32$ = "winbareos32.exe"
Set $ProductExe64$ = "winbareos64.exe"
Set $ProductExe32$ = "data\winbareos-12.4.4-32-bit-r510.4.exe"
Set $ProductExe64$ = "data\winbareos-12.4.4-64-bit-r510.4.exe"
Set $MinimumSpace$ = "30 MB"
; the path were we find the product after the installation
Set $InstallDir$ = "%ProgramFilesDir%\Bareos"
Expand All @@ -79,7 +79,7 @@ endif
comment "installing"

if $filedaemon_full_name$ = ""
set $filedaemon_full_name$ = "%HostID%-fd"
set $filedaemon_full_name$ = "%HostID%-fd"
opsiservicecall_set_product_property_filedaemon_full_name
endif

Expand All @@ -89,7 +89,7 @@ if $filedaemon_monitor_name$ = ""
endif

if $filedaemon_client_address$ = ""
set $filedaemon_monitor_name$ = "%HostID%"
set $filedaemon_client_address$ = "%HostID%"
opsiservicecall_set_product_property_filedaemon_client_address
endif

Expand Down Expand Up @@ -134,35 +134,35 @@ endif
; don't use " around argument, otherwise argument is ignored

[Winbatch_install_32]
"%ScriptPath%\$ProductExe32$" /S /CLIENTNAME=$filedaemon_full_name$ /CLIENTPASSWORD=$filedaemon_full_password$ /DIRECTORNAME=$director_name$ /CLIENTADDRESS=$filedaemon_client_address$ /CLIENTMONITORPASSWORD=$filedaemon_monitor_password$ /DIRECTORADDRESS=$director_address$ /DIRECTORPASSWORD=$director_password$ /D=$InstallDir32$
"%ScriptPath%\$ProductExe32$" /S /CLIENTNAME="$filedaemon_full_name$" /CLIENTPASSWORD="$filedaemon_full_password$" /DIRECTORNAME="$director_name$ /CLIENTADDRESS=$filedaemon_client_address$" /CLIENTMONITORPASSWORD="$filedaemon_monitor_password$" /DIRECTORADDRESS="$director_address$" /DIRECTORPASSWORD="$director_password$" /D=$InstallDir32$


[Winbatch_install_64]
"%ScriptPath%\$ProductExe64$" /S /CLIENTNAME=$filedaemon_full_name$ /CLIENTPASSWORD=$filedaemon_full_password$ /DIRECTORNAME=$director_name$ /CLIENTADDRESS=$filedaemon_client_address$ /CLIENTMONITORPASSWORD=$filedaemon_monitor_password$ /DIRECTORADDRESS=$director_address$ /DIRECTORPASSWORD=$director_password$ /D=$InstallDir64$
"%ScriptPath%\$ProductExe64$" /S /CLIENTNAME="$filedaemon_full_name$" /CLIENTPASSWORD="$filedaemon_full_password$" /DIRECTORNAME="$director_name$" /CLIENTADDRESS="$filedaemon_client_address$" /CLIENTMONITORPASSWORD="$filedaemon_monitor_password$" /DIRECTORADDRESS="$director_address$" /DIRECTORPASSWORD="$director_password$" /D=$InstallDir64$


[opsiservicecall_set_product_property_filedaemon_full_name]
"method": "setProductProperty",
"params": [
'bareos',
'$ProductId$',
'filedaemon_full_name',
'$filedaemon_full_name$',
'%HostID%'
]

;[opsiservicecall_set_product_property_filedaemon_monitor_name]
;"method": "setProductProperty",
;"params": [
; 'bareos',
; 'filedaemon_monitor_name',
; '$filedaemon_monitor_name$',
; '%HostID%'
;]
[opsiservicecall_set_product_property_filedaemon_monitor_name]
"method": "setProductProperty",
"params": [
'$ProductId$',
'filedaemon_monitor_name',
'$filedaemon_monitor_name$',
'%HostID%'
]

[opsiservicecall_set_product_property_filedaemon_client_address]
"method": "setProductProperty",
"params": [
'bareos',
'$ProductId$',
'filedaemon_client_address',
'$filedaemon_client_address$',
'%HostID%'
Expand Down

0 comments on commit 8765bee

Please sign in to comment.