删除独立组件
当包包含独立组件时,Windows Installer 在删除应用程序期间执行以下作。 通常,Component_Shared是由Component_Application和其他客户端可执行文件共享的 DLL。
卸载
- 仅当删除Component_Application时,才从包含Component_Application的文件夹中删除Component_Shared的文件。
- 如果在 组件表中设置了 msidbComponentAttributesSharedDllRefCount 位, 递减 SharedDLL refcount。
- 删除 .包含Component_Application的文件夹的本地零字节文件。
- 从客户端Component_Shared列表中删除Component_Application。
- 照常删除Component_Application的所有资源。
如果客户端列表中还有其他Component_Shared产品:
- 从Component_Shared的共享位置中删除任何文件。
如果Component_Shared的 SharedDLL refcount 在递减后为 0,或者没有其他Component_Shared客户端:
- 从共享位置删除Component_Shared的文件。
- 处理有关此组件的所有卸载作。