InstallShield 添加了引用的程序集,但我不想要它们

发布于 2024-10-01 18:48:02 字数 186 浏览 0 评论 0原文

当使用 InstallShield 创建压缩安装文件时,我注意到 InstallShield 从我添加到文件和文件夹的文件中发现引用的程序集,并将它们添加到 setup.exe。虽然我知道我添加的这些文件,但由于文件大小问题,我不想在设置中也包含这些文件。

那些人说我找不到任何可以禁用此功能的属性。

有什么想法吗? 谢谢你!

When using InstallShield to create a compressed setup file, i noticed that InstallShield discovers referenced assemblies from files i added to Files and Folders and adds them to the setup.exe. While I am aware of those file I added I don't want to have those files in the setup too for file size issues.

Those said I can't find any property i could disable this.

Any ideas?
Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

顾冷 2024-10-08 18:48:02

InstallShield 默认将新组件设置为“属性”和“依赖项”。您应该将其设置为“仅属性”。您还应该进入“工具”|选项| .NET 并更改默认值。

顺便说一句,我认为这种模式太可怕了,以至于我实际上有一个构建自动化步骤,该步骤可以通过构建日志查找以这种方式捕获的程序集并强制构建中断。这不是一个非常确定的过程,扫描仪会经常向安装程序添加愚蠢的引用,例如 System.Windows.Forms.dll。

InstallShield defaults new components to Properties and Dependencies. You should set this to Properties Only. Also you should go into Tools | Options | .NET and change the default.

As an aside, I think this pattern is soo horrible that I actually have a build automation step that looks through the build log for assemblies captured this way and force a build break. It's not a very deterministic process and the scanner will frequently add stupid references like System.Windows.Forms.dll to the installer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文