Click here to Skip to main content
Rate this: bad
good
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).
 
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 2-May-13 5:09am
Comments
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...
—SA

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

  Print Answers RSS
0 OriginalGriff 390
1 Jochen Arndt 165
2 Richard MacCutchan 135
3 DamithSL 95
4 Garth J Lancaster 90
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,032
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,220


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 2 May 2013
Copyright © CodeProject, 1999-2014
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