Has anyone had any success using this?
I have the following code
It hangs will not always launch my app. If it does launch the app, then when the new process exits, it does not restore itself and hangs up.Code:try { //Here we just need to shell the Dirver installation Process Proc = new Process(); //I dont need to know when we are done Proc.EnableRaisingEvents=false; //Get it set up Proc.StartInfo.Arguments = "REDISTRIBUTION RESPONSEFILE=\"" + Environment.CurrentDirectory.ToString() + "\\Drivers\\response.txt\"" ; Proc.StartInfo.FileName = Environment.CurrentDirectory.ToString() + "\\Drivers\\redist.exe"; //Launch install Proc.Start(); Proc.WaitForExit(); } catch ( System.ComponentModel.Win32Exception ) { //If we come in here, we had an error MessageBox.Show(this,"Main Menu could not find the " + "video card driver setup file. Please " + "check to ensure the CD is installed " + "in the CD-ROM.","Error Reading CD", MessageBoxButtons.OK, MessageBoxIcon.Information); }
Thanks for your help,
Jerel




Reply With Quote