UPDATE:
Ok I've got the command to run the Setup.exe file. It installs MSDE fine --> now I have to (without restarting the computer) start the MSDE service. Here's what I have:
System.Diagnostics.Process Process3;
Process3 = new System.Diagnostics.Process();
cmd = "C:\\WINDOWS\\system32\\Net.exe";
Process3 = System.Diagnostics.Process.Start(cmd, "NET START \"SQLAgent$NETSDK\"");
Process3.WaitForExit();
Process3.Close();
when this part of the code runs it quickly starts the net.exe --> then closes
Ive been able to capture part of it with print screen and it says:
"The syntax of this command is:
NET:"
I know the syntax is: NET START "SQLAgent$NETSDK"
Ive printed out my string variable that holds the parameter and it comes out just like its supposed to.
Has anyone ever encountered this? Or does anyone have an idea of what might be going wrong?
Thanks for your time.
drp