Question: I have a .NET dll which I use from a C++ program. Now I have to register the dll programmatically on a deployment computer.
How do I do that (programmatica
YUK, .NET dlls don't have DllRegisterServer, so you have to write a .NET installer, executing this somewhere:
Assembly asm = Assembly.LoadFile (@"c:\temp\ImageConverter.dll");
RegistrationServices regAsm = new RegistrationServices();
bool bResult = regAsm.RegisterAssembly(asm, AssemblyRegistrationFlags.SetCodeBase);
Can you use process monitor to see what system changes (basically registry changes I think) are made when you use regasm.exe to register your dll, and then make those changes programatically instead?