Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: .NET3.5 VC++
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).
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)
Posted 2-May-13 5:09am
Sergey Alexandrovich Kryukov at 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...

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 9,535
1 OriginalGriff 8,295
2 Peter Leow 4,839
3 Kornfeld Eliyahu Peter 3,210
4 Maciej Los 2,301

Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 2 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100