rags_to_riches, thanks for your reply..
I have tried to use System.Configuration.Installer namespace like your recomends.
however, I don't found out solution of this problem yet.
Code:
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..