diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-12-18 14:46:55 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-12-18 14:46:55 +0000 |
commit | b9fd9fdb83c74a1d441be99136668656980bb9e9 (patch) | |
tree | c37fbb9a3fdb322a41e5dd02aa8681bd1ad1d950 /smoketestoo_native | |
parent | 089bbca173120e7652ba230541e3884e8ecbca64 (diff) |
INTEGRATION: CWS smoketestw2003 (1.18.10); FILE MERGED
2006/11/15 15:26:04 mt 1.18.10.1: alow custon install script for server environment...
Diffstat (limited to 'smoketestoo_native')
-rwxr-xr-x | smoketestoo_native/smoketest.pl | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/smoketestoo_native/smoketest.pl b/smoketestoo_native/smoketest.pl index 3cffe6437ca9..b0fdc34c3ffb 100755 --- a/smoketestoo_native/smoketest.pl +++ b/smoketestoo_native/smoketest.pl @@ -7,9 +7,9 @@ eval 'exec perl -wS $0 ${1+"$@"}' # # $RCSfile: smoketest.pl,v $ # -# $Revision: 1.19 $ +# $Revision: 1.20 $ # -# last change: $Author: rt $ $Date: 2006-12-01 16:31:04 $ +# last change: $Author: ihi $ $Date: 2006-12-18 15:46:55 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. @@ -255,7 +255,7 @@ if ( $ARGV[0] ) { ( $script_name = $0 ) =~ s/^.*\b(\w+)\.pl$/$1/; -$id_str = ' $Revision: 1.19 $ '; +$id_str = ' $Revision: 1.20 $ '; $id_str =~ /Revision:\s+(\S+)\s+\$/ ? ($script_rev = $1) : ($script_rev = "-"); @@ -497,20 +497,32 @@ sub doInstall { if ($gui eq $cygwin) { my $convertinstallset = ConvertCygwinToWin_Shell("$installsetpath$file"); my $convertdestdir = ConvertCygwinToWin_Shell($dest_installdir); - if ($is_admin_installation) { - $Command = "msiexec.exe /a $convertinstallset -qn TARGETDIR=$convertdestdir"; + $_inst_cmd=$ENV{SMOKETEST_SOINSTCMD}; + if ( defined($_inst_cmd) ) { + $Command = $_inst_cmd . " $convertinstallset -qn TARGETDIR=$convertdestdir"; } else { - $Command = "msiexec.exe -i $convertinstallset -qn INSTALLLOCATION=$convertdestdir"; + if ($is_admin_installation) { + $Command = "msiexec.exe /a $convertinstallset -qn TARGETDIR=$convertdestdir"; + } + else { + $Command = "msiexec.exe -i $convertinstallset -qn INSTALLLOCATION=$convertdestdir"; + } } - } else { - if ($is_admin_installation) { - $Command = "msiexec.exe /a $installsetpath$file -qn TARGETDIR=$dest_installdir"; + $_inst_cmd=$ENV{SMOKETEST_SOINSTCMD}; + if ( defined($_inst_cmd) ) { + $Command = $_inst_cmd . " $installsetpath$file -qn TARGETDIR=$dest_installdir"; } else { - $Command = "msiexec.exe -i $installsetpath$file -qn INSTALLLOCATION=$dest_installdir"; + if ($is_admin_installation) + { + $Command = "msiexec.exe /a $installsetpath$file -qn TARGETDIR=$dest_installdir"; + } + else { + $Command = "msiexec.exe -i $installsetpath$file -qn INSTALLLOCATION=$dest_installdir"; + } } } if (!$is_oo and !$is_admin_installation) { |