diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-01-20 16:12:13 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-01-20 16:24:21 +0100 |
commit | a4bd804fd95a4a79ec4ebb64555aade5bea63a14 (patch) | |
tree | c34c16d8f075eac904f1ff24a348e343c8723d93 /solenv | |
parent | 23ac66dd14d09acc07868ee75da05073c6a78f44 (diff) |
Fix WiLangId.vbs operation
The script needs %TEMP% to be set in order to work properly.
Cygwin unsets TEMP which causes WiLangId.vbs to fail. Set the
TEMP variable to $TMPDIR before we call the cscript.exe.
Signed-off-by: Michael Meeks <mmeeks@suse.com>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer/windows/msiglobal.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/solenv/bin/modules/installer/windows/msiglobal.pm b/solenv/bin/modules/installer/windows/msiglobal.pm index a743b451b6d9..96c9606903e2 100644 --- a/solenv/bin/modules/installer/windows/msiglobal.pm +++ b/solenv/bin/modules/installer/windows/msiglobal.pm @@ -980,8 +980,10 @@ sub create_transforms installer::logger::include_header_into_logfile("Creating Transforms"); + my $cscript = "cscript.exe"; # Has to be in the path my $msitran = "msitran.exe"; # Has to be in the path my $msidb = "msidb.exe"; # Has to be in the path + my $tmpdir = $ENV{TMPDIR}; # Variable %TEMP% will be set to it for WiLangId.vbs to work my $wilangid = $ENV{WINDOWS_SDK_HOME} . "/Samples/SysMgmt/Msi/scripts/WiLangId.vbs"; my $from = cwd(); @@ -1121,7 +1123,7 @@ sub create_transforms } } - $systemcall = "cscript.exe " . $wilangid . " " . $basedbname . " Package " . $templatevalue; + $systemcall = "TEMP=" . $tmpdir . " " . $cscript . " " . $wilangid . " " . $basedbname . " Package " . $templatevalue; $returnvalue = system($systemcall); |