how to uninstall an assembly from GAC

  • Thread starter Thread starter GD
  • Start date Start date
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
 
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).
 
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
 
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.
 
Back
Top