How do I force an assembly to uninstall from the GAC?

前端 未结 2 1212
没有蜡笔的小新
没有蜡笔的小新 2021-01-24 02:36

I\'ve developed a simple installation package using WiX that installs an assembly called WBRT.Configuration into the Global Assembly Cache (GAC). While the file ins

相关标签:
2条回答
  • 2021-01-24 03:10

    I followed the steps mentioned by @Mohsen , Remove the registry entry and uninstalled the DLL from GAC to resolve a conflict issue.

    [HKLM\SOFTWARE\Classes\Installer\Assemblies\Global] and run gacutil /u dllname -And success. I do not know what is the side effect. It worked for me, then I ran

    gacutil -u dllThatIWantedToRemove

    0 讨论(0)
  • 2021-01-24 03:21

    First, verify that your assembly is not locked by another process via gacutil.exe

    gacutil /u WBRT.Configuration
    

    If the above is OK make sure the file parent container has no permanent flag - Permanent="no"

    <Component Shared="yes" Permanent="no" Guid="PUT-GUID-HERE" >
        <File Id="filB7155C3E9A241BEAFE09533364964732" KeyPath="yes" Assembly=".net" 
           Source="$(var.Configuration.TargetDir)\WBRT.Configuration.dll" />
    </Component>
    
    0 讨论(0)
提交回复
热议问题