try
{
string regasmPath = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() + "regasm.exe";
string[] commandLineOptions = new string[2] { "/codebase", @"c:\my.dll" };
AssemblyInstaller myAssemblyInstaller = new
AssemblyInstaller(regasmPath, commandLineOptions);
myAssemblyInstaller.UseNewContext = false;
myAssemblyInstaller.Install(null);
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine(ex.Message);
}
I wonder why this code not working without exception..


Sign In
Create Account

Back to top









