I am trying to uninstall a DLL from the C:\Windows\Assembly "folder" on Windows Server 2008, but am getting a "permission denied" error. How do I go about removing a DLL without uninstalling the entire application?

An application vendor has sent me new DLL's, with no instructions on how to remove the old version or add these new ones. Google hasn't been as helpful as usual, either...

link|improve this question

I am not sure, but perhaps you need to unregister it with regsrv32 and register the new one? Make sure try to use that from an elevated shell. – Zoredache Sep 1 '10 at 22:20
This was on a 64-bit server, so that didn't work, either. Using \windows\syswow64\regsvr32 c:\filename.dll may be an option. – Sam Erde Sep 1 '10 at 22:24
1  
Using regsvr32.exe or \windows\syswow64\regsvr32.exe would be an option for most DLL's, but I don't think it can uninstall from the GAC. I have posted my solution below. – Sam Erde Sep 1 '10 at 22:30
feedback

1 Answer

up vote 2 down vote accepted

This didn't work before, but thankfully did on my last attempt. Go figure...

I found gacutil.exe on the server and ran gacutil -u dllName.DLL Installing the new DLL was simply gacutil -i "PathAndFilenameOfNewDLL"

http://msdn.microsoft.com/en-us/library/zykhfde0%28VS.80%29.aspx

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.