Jeroen, That's the code that I used. I took the fusioninstall.cs and made it into an library, and then added it to a simple vb app that calls the remove funtion. Works beautifully.
Nick. -----Original Message----- From: Jeroen van den Bos (DT) [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 5:08 AM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Adding assemblies to the GAC using the clas s library Not necessarily, it depends on what you want to do. If you want to have an application that installs and removes assemblies from the GAC at times other than install/uninstall and you don't want to burden the end users with tools like gacutil, you can use the Fusion API. The file I found that contains fairly simple code to help with this is located in my install under VS.net2003-dir\SDK\v.1.1\Samples\Technologies\Interop\Advanced. There's an example there called comreg which includes a file called fusioninstall.cs. It contains methods for adding, removing and enumerating assemblies in the GAC. -Jeroen -----Original Message----- From: Bill Bassler [mailto:[EMAIL PROTECTED] Sent: donderdag 2 oktober 2003 12:42 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Adding assemblies to the GAC using the clas s library I assume you'd need to run this code from an installer class or are you invoking this when some assembly loads? I've been using the Windows installer to GAC components. Is there a better way to accomplish this? =================================== This list is hosted by DevelopMentor(r) http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor(r) http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor� http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com
