PC Review


Reply
Thread Tools Rate Thread

Calling RegAsm on a DLL and adding it to the Assembly Cache.

 
 
supster
Guest
Posts: n/a
 
      22nd Mar 2005
Hello, I have written a shell extension for windows to provide
additional context menus, however I am having a bit of trouble making
the install easier on the user.

Currently, the user must browse to their
C:\Windows\Microsoft.NET\Framework\etc... in command prompt to reach
the folder which contains RegAsm, and then call RegAsm passing the
path to the DLL. Then, the user must add the DLL to the Assembly
Cache by going to Control Panel -> Admin Tools -> .NET
Confirguration.

I would like to automate this in an executable, or perhaps make it
easier in any way.

If anyone has any suggestions, please let me know!


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      22nd Mar 2005
>I would like to automate this in an executable, or perhaps make it
>easier in any way.


You can get programmatic RegAsm functionality with the
System.Runtime.InteropServices.RegistrationServices class.

The fusion APIs can be used to install assemblies in the GAC. See

http://www.msjogren.net/dotnet/eng/s...et_gactool.asp



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
supster
Guest
Posts: n/a
 
      22nd Mar 2005
bump - anyone?


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Assembly to Global Assembly Cache =?Utf-8?B?VGVycmFuY2U=?= Microsoft Dot NET 6 14th Feb 2006 04:45 PM
Finding RegAsm on target computer when deploying an assembly =?Utf-8?B?S2VubmV0aCBKb25zc29u?= Microsoft Dot NET 2 15th Dec 2005 09:53 PM
Adding .dll to the global assembly cache jcolston5@hotmail.com Microsoft ASP .NET 0 26th Sep 2005 10:17 AM
Register .NET assembly as COM component with REGASM Andy Bates Microsoft C# .NET 2 28th Feb 2004 06:18 AM
how to regasm VS.NET 2003-generated assembly on .NET 1.0 machine? Steve Microsoft Dot NET Framework 3 29th Oct 2003 11:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:23 PM.