I can see that windows cabinetmaker makecab.exe is used.
this opens an extra console window
is it posible to redirect the output of makecap.exe to the outputwindow of miabuild.exe? It would make me (and a lot of other users?) very happy.
thanks in advance.
Code: Select all
public void start makecab()
{
Process p = new Process();
p.StartInfo.FileName = @"makecab.exe";
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.UseShellExecute = false;
p.OutputDataReceived += new DataReceivedEventHandler(pOutput);
p.StartInfo.CreateNoWindow = true;
p.Start();
p.BeginOutputReadLine();
p.WaitForExit();
}
private static void pOutput(object sendingProcess, DataReceivedEventArgs outLine)
{
Console.WriteLine(outLine.Data);
}