Jump to content

AssemblyInstaller is not work

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
sweetier

sweetier

    Newbie

  • Members
  • Pip
  • 3 posts

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..

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
What happens with the code art the moment?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums