Hello Jeff,
use GAC API, which is not documented http://support.microsoft.com/default.aspx?scid=kb;en-us;317540
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
JJ> Let's pretend I really really really don't like ClickOnce and I want
JJ> to implement my own updating process. Let's also say that I want the
JJ> update process to be able to add new assemblies to the GAC. Since
JJ> gacutil.exe no longer comes with the .NET framework by default, I
JJ> can't simply shell out to it, so I was wondering if there is a way
JJ> to add assemblies to the GAC via managed code.
JJ>
JJ> Please note that I'm not talking about registering an assembly with
JJ> COM or COM+. I know there are things out there like the
JJ> RegistrationServices class and the System.EnterpriseServices
JJ> namespace, but all the (admittedly few) things I've read about them
JJ> suggest that they're oriented towards COM/COM+.
JJ>
Jeff Johnson - 19 Apr 2007 18:46 GMT
> use GAC API, which is not documented
> http://support.microsoft.com/default.aspx?scid=kb;en-us;317540
Thanks. I hate to sound clueless, but this API is COM-based, yes? Would I
still be able to use it from a C# program? The sample code is C++.
Rory Becker - 19 Apr 2007 19:01 GMT
>> use GAC API, which is not documented
>> http://support.microsoft.com/default.aspx?scid=kb;en-us;317540
>>
> Thanks. I hate to sound clueless, but this API is COM-based, yes?
> Would I still be able to use it from a C# program? The sample code is
> C++.
I'll be the first to admit I'd be a beginner in this area, but this link
looks like it might be of use
http://blogs.msdn.com/junfeng/articles/229649.aspx
--
Ror
Jeff Johnson - 19 Apr 2007 19:35 GMT
>> Thanks. I hate to sound clueless, but this API is COM-based, yes?
>> Would I still be able to use it from a C# program? The sample code is
[quoted text clipped - 3 lines]
> looks like it might be of use
> http://blogs.msdn.com/junfeng/articles/229649.aspx
Spectacular. Thanks.