从Inno Setup向GAC添加装配

时间:2020-03-05 18:53:06  来源:igfitidea点击:

直到最近,我们仍在继续使用Inno Setup进行安装,除非可以在开始菜单中获得卸载选项(感谢Giovanni Galbo),否则我将继续这样做,但是现在我们需要GAC一些外部库,我怀疑通过.NET安装项目仅可行(或者至少仅受支持)。

是否可以从另一个设置应用程序调用GAC'ing库?

解决方案

回答

不确定库,但是我们可以调用gacutil.exe来安装/卸载程序集。

回答

根据http://jrsoftware.org/files/is5-whatsnew.htm,我们应该能够使用v5.3及更高版本

Added .NET support (these cause an
  internal error if used on a system
  with no .NET Framework present):

* Added new [Files] section flag: gacinstall.
* Added new [Files] section parameter: StrongAssemblyName.
* Added new constants: {regasmexe}, {regasmexe32}, {regasmexe64}.