Kaydet (Commit) 08337321 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Let WINDOWS_SDK_WILANGID override the location of WiLangId.vbs

...see new TODO comment in configure.ac

Change-Id: Id3ffd45357a3f539f3d3f068528019334d929654
üst 4a024760
......@@ -542,6 +542,7 @@ export WGET=@WGET@
export WINDOWS_BUILD_SIGNING=@WINDOWS_BUILD_SIGNING@
export WINDOWS_SDK_HOME=@WINDOWS_SDK_HOME@
export WINDOWS_SDK_VERSION=@WINDOWS_SDK_VERSION@
export WINDOWS_SDK_WILANGID=@WINDOWS_SDK_WILANGID@
export WINDRES=@WINDRES@
export WINEGCC=@WINEGCC@
export WITHOUT_AFMS=@WITHOUT_AFMS@
......
......@@ -9066,9 +9066,21 @@ the Windows SDK are installed.])
SOLARINC="$SOLARINC -I$WINDOWS_SDK_HOME/include/um -I$WINDOWS_SDK_HOME/include/shared"
fi
fi
dnl TODO: solenv/bin/modules/installer/windows/msiglobal.pm wants to use a
dnl WiLangId.vbs that is included only in some SDKs (e.g., included in v7.1
dnl but not in v8.0), so allow this to be overriden with a
dnl WINDOWS_SDK_WILANGID for now; a full-blown --with-windows-sdk-wilangid
dnl and configuration error if no WiLangId.vbs is found would arguably be
dnl better, but I do not know under which conditions exactly it is needed by
dnl msiglobal.pm:
if test -z "$WINDOWS_SDK_WILANGID" -a -n "$WINDOWS_SDK_HOME"; then
WINDOWS_SDK_WILANGID=$WINDOWS_SDK_HOME/Samples/sysmgmt/msi/scripts/WiLangId.vbs
fi
fi
AC_SUBST(WINDOWS_SDK_HOME)
AC_SUBST(WINDOWS_SDK_VERSION)
AC_SUBST(WINDOWS_SDK_WILANGID)
dnl =========================================
dnl Check for uuidgen
......
......@@ -675,7 +675,7 @@ sub create_transforms
$infoline = "ERROR: We cannot create transformations yet (we cannot use cscript.exe when cross-compiling)\n";
push( @installer::globals::logfileinfo, $infoline);
}
my $wilangid = $ENV{WINDOWS_SDK_HOME} . "/Samples/SysMgmt/Msi/scripts/WiLangId.vbs";
my $wilangid = $ENV{WINDOWS_SDK_WILANGID};
my $from = cwd();
......@@ -827,7 +827,7 @@ sub create_transforms
}
}
$systemcall = "TEMP=$ENV{'TMPDIR'} $cscript $wilangid $basedbname Package $templatevalue";
$systemcall = "TEMP=$ENV{'TMPDIR'} $cscript \"$wilangid\" $basedbname Package $templatevalue";
$returnvalue = system($systemcall);
......@@ -836,7 +836,7 @@ sub create_transforms
if ($returnvalue)
{
$infoline = "ERROR: Could not execute WiLangId.vbs!\n";
$infoline = "ERROR: $returnvalue from $systemcall\n";
push( @installer::globals::logfileinfo, $infoline);
}
else
......
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