Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Hi All,

My project is based on Registration/De-Registration of Dll's, oriented towards (COM Dll's and .NET Dll's/Assemblies with COM interfaces), here, I need to simulate the behavior of Dll's registration for .NET with COM interface (RegAsm.exe/Gacutils.exe).

Steps:

1. To create a Strong Name assembly(sn.exe)

2. To Create an assembly (.NET)(Class Library in VC#) and provide new interface to mimic the functionality for Gacutils.exe (using Publish.GacInstall()) and Build and obtain the A.dll and A.tlb(managed Code).(COM Callable Wrapper )

3. To Create Un-Managed Code(VC++/ATL-COM) and access the above A.tlb and invoke the Publish.GacInstall(AssemblyName) member function through Un-Managed Code

Though I found some references for Gacutils.exe programmatically, I am unable to invoke the above Publish.GacInstall(...) after specifying namespace "using System.EnterpriseServices.Internal"

To Sum-up, I need to invoke method(Gacutils.exe programmatically) from Unmanaged Code to Managed Code layer, and could not obtain working/examples for Gactuils.exe and Regasm.exe(Programmatically) in code project forumCC. Also, I am new to C# & .NET domain.


Any help in resolving the above would be much appreciable.

Details: VS2008(IDE), Windows 7 (Enterprise)

Regards,

VishaK_90
Posted
Comments
Sergey Alexandrovich Kryukov 2-May-13 10:21am    
What are the ultimate goals of this activity? Probably, you are not yet ready to define those steps, but you are already asking how to do them. No, let's start from the goals...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900