.net - Inno Setup 卸载程序不会从 GAC 中删除程序集

标签 .net installation inno-setup gac

安装程序已成功将程序集安装到 GAC 中。但是,卸载程序会将程序集保留在 GAC 中。

我错过了什么吗?我真的不想使用 gacutil.exe 在卸载时删除程序集。

Source: "..\TestHelperInject\bin\x86\Release\TestHelperInject.dll"; DestDir: "{app}"; Flags: gacinstall sharedfile uninsnosharedfileprompt; StrongAssemblyName: "TestHelperInject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ccbe9854a3cee58d, processorArchitecture=x86"

更新:好的,因此在卸载过程中从 GAC 中删除程序集适用于 WinXP,但不适用于 Win7。

最佳答案

来自 Inno 设置 documentation :

gacinstall

Install the file into the .NET Global Assembly Cache. When used in combination with sharedfile, the file will only be uninstalled when the reference count reaches zero.

To uninstall the file Uninstaller uses the strong assembly name specified by parameter StrongAssemblyName.

An exception will be raised if an attempt is made to use this flag on a system with no .NET Framework present.

因此看来 Inno Setup 会为您处理卸载。

关于.net - Inno Setup 卸载程序不会从 GAC 中删除程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9706083/

相关文章:

c# - 为什么我的表格这么害羞?

python - 如何为Python程序创建Windows安装程序?

comments - Inno Setup Pascal 脚本中的多行注释

java - 在 Java 中创建名为 Mutex-Semaphore

.net - 我可以在Inno Setup中读取AssemblyFile信息吗

c# - 在最新的 Razor 引擎中找不到 "image/subfolder"下的图像 - MVC.NET

.net - 如何确定执行期间来自异步 httpclient 的并发请求数?

c# - 如何比较 FieldInfo 的实例值?

wix - 如何跳过 WIX 生成的安装程序中的功能选择屏幕?

Android PackageInstaller 未安装 APK