I need to check if the process has been successful, in case the extensions it will try to register are:
- .DLL
- .OCX
The code I'm using to register is this:
string pathcli = copiar + nomedofonte;
if (!nomedofonte.Contains(".exe") ||!nomedofonte.Contains(".EXE"))
{
Process proc = new Process
{
StartInfo =
{
FileName = Registrador,
Arguments = "/s"+pathcli,
RedirectStandardError = true,
UseShellExecute = false,
CreateNoWindow = true
}
};
proc.Start();
Application.DoEvents();
}
How do I check if the files for that extension have been successfully registered?