我已经对我的安装程序脚本进行了重大升级,其中一个附加组件需要插入到GAC中。我正在使用以下代码序列:
<Component Id="Net20ApiAssembliesGAC" Guid="GUID">
<File Id="FileId" Name="FileName"
DiskId="1" Assembly=".net" KeyPath="yes"
Source="..\..\API\DotNet\Assemblies\v2.0\FileName" />
</Component>
安装早期版本而不是升级可以成功,但如果升级,我会在详细日志中看到以下条目:
UnregisterSharedComponentProvider
ComponentUnregister
而且该条目不会出现在GAC中。
我已经使用<RemoveExistingProducts After="InstallFinalize" />将RemoveExistingProducts移动,但这没有任何效果。