using System.Diagnostics; namespace DPInstallWrapper2 { class DPInstallWrapper2 { static int Main(string[] args) { var proc = new Process(); proc.StartInfo.FileName = args[0]; proc.StartInfo.Arguments = args[1] + " " + args[2] + " " + args[3]; proc.Start(); proc.WaitForExit(); var exitCode = proc.ExitCode; proc.Close(); //dpinst.exe returns non-zero, even when successful, //so this wrapper returns 0 (Success) to the installer. return 0; } } }