それが私のコードです:
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();
また、このコードを実行しているプロジェクトに .manifest ファイルを追加して、次のように設定しました。
requestedExecutionLevel level="requireAdministrator"
パスの問題ではなく、登録するdllはregAsmを呼び出すプログラムと同じフォルダにあります。うまくいきません。何か案は?