从全局程序集缓存中移除程序集

Windows Installer 保留着一个独立于程序集的客户端列表,它根据该列表来确定是否允许移除某个公共语言运行时程序集。 Windows Installer 保留一个固定位,表示程序集的 Windows Installer 客户端。 安装程序在第一个 Windows Installer 客户端安装该程序集时将其固定,在最后一个 Windows Installer 客户端被移除时将其取消固定。 程序集为程序集的每个客户端维护一个固定位。

Windows Installer 不直接负责从计算机以物理方式移除公共语言运行时程序集。 移除最后一个 Windows Installer 客户端时,安装程序会取消固定程序集。 如果 Windows Installer 是程序集的最后一个客户端,则公共语言运行时会提供强制对程序集进行同步清理的选项。 清理过程是原子性的,此时不支持“回滚”。 公共语言运行时程序集的所有取消固定都必须在用户有机会取消安装或移除后进行。