0
I need to check if the process has been run successfully, 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 will I check whether files from that extension have been successfully registered?
Just out of curiosity, why does someone need a registered DLL in modern Oses, instead of simply charging? Something else. and if the extension is one of the variants such as
.Exe
, or.eXe
, for example? Wouldn’t be the case to compare case insensitive?– Bacco
No, because it is an internal system of the company, where you need to register the DLL for another system to understand and run, the . EXE I used the check to ignore these extension
– Cayo Da Silva Lima