That's my code:
Process regAsmProcess = new Process();
ProcessStartInfo Process_Info = new ProcessStartInfo();
Process_Info.FileName = "C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Regasm.exe";
Process_Info.Arguments = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\myDLL.dll";
Process_Info.Verb = "runas";
regAsmProcess.StartInfo = Process_Info;
regAsmProcess.Start();
I also added a .manifest file to the project running this code and set:
requestedExecutionLevel level="requireAdministrator"
It's not a path issue, the dll to be registered is in the same folder as the program calling regAsm. It doesn't work. Any ideas?