how to uninstall an assembly from GAC

G

GD

Hi,

I tried to use the following code (C#) to uninstall an assembly from GAC:
Process.Start("cgacutil.exe", "-u " + " \\Windows\\myAssembly.dll);

However, nothing happens. It doesn't event throw any exception.

Can somebody point out what is wrong with the syntax please?

Thanks.

GD
 
I

Ilya Tumanov [MS]

Should be more like this:



/u myDll,Version=1.1.0.0,Culture=en,PublicKeyToken=874e23ab874e23ab



Also please check process exit code, would be none-zero if error.



--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
G

GD

How can I tell the info from the file name? Such as

GAC_System.Windows.Forms.DataGrid_v1_0_5000_0_cneutral_1.dll

Especially PublicKeyToken...

Thanks

GD
 
G

GD

Found an easy way: deleting the GAC list file(such as myApp.gac in my case)
under Windows directory uninstalls all the assemeblies listed in the file.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top