Kaydet (Commit) b9fd9fdb authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

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...
üst 089bbca1
...@@ -7,9 +7,9 @@ eval 'exec perl -wS $0 ${1+"$@"}' ...@@ -7,9 +7,9 @@ eval 'exec perl -wS $0 ${1+"$@"}'
# #
# $RCSfile: smoketest.pl,v $ # $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 Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1. # the terms of GNU Lesser General Public License Version 2.1.
...@@ -255,7 +255,7 @@ if ( $ARGV[0] ) { ...@@ -255,7 +255,7 @@ if ( $ARGV[0] ) {
( $script_name = $0 ) =~ s/^.*\b(\w+)\.pl$/$1/; ( $script_name = $0 ) =~ s/^.*\b(\w+)\.pl$/$1/;
$id_str = ' $Revision: 1.19 $ '; $id_str = ' $Revision: 1.20 $ ';
$id_str =~ /Revision:\s+(\S+)\s+\$/ $id_str =~ /Revision:\s+(\S+)\s+\$/
? ($script_rev = $1) : ($script_rev = "-"); ? ($script_rev = $1) : ($script_rev = "-");
...@@ -497,20 +497,32 @@ sub doInstall { ...@@ -497,20 +497,32 @@ sub doInstall {
if ($gui eq $cygwin) { if ($gui eq $cygwin) {
my $convertinstallset = ConvertCygwinToWin_Shell("$installsetpath$file"); my $convertinstallset = ConvertCygwinToWin_Shell("$installsetpath$file");
my $convertdestdir = ConvertCygwinToWin_Shell($dest_installdir); my $convertdestdir = ConvertCygwinToWin_Shell($dest_installdir);
if ($is_admin_installation) { $_inst_cmd=$ENV{SMOKETEST_SOINSTCMD};
$Command = "msiexec.exe /a $convertinstallset -qn TARGETDIR=$convertdestdir"; if ( defined($_inst_cmd) ) {
$Command = $_inst_cmd . " $convertinstallset -qn TARGETDIR=$convertdestdir";
} }
else { 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 { else {
if ($is_admin_installation) { $_inst_cmd=$ENV{SMOKETEST_SOINSTCMD};
$Command = "msiexec.exe /a $installsetpath$file -qn TARGETDIR=$dest_installdir"; if ( defined($_inst_cmd) ) {
$Command = $_inst_cmd . " $installsetpath$file -qn TARGETDIR=$dest_installdir";
} }
else { 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) { if (!$is_oo and !$is_admin_installation) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment