InstallShield 添加了引用的程序集,但我不想要它们
当使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.