Kaydet (Commit) 49030165 authored tarafından Fridrich Štrba's avatar Fridrich Štrba

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.
üst 9e5ad095
......@@ -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);
......
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