Visual Studio 安装项目 - 强制安装 .DLL?
我有一个第三方 .DLL 更新,必须安装到我客户的计算机上。我们目前使用在 Visual Studio 2010 中创建的通过 MSI 的自动安装。
不幸的是,第三方 .DLL 的版本不正确,并且提供商没有增加其文件版本(他们只增加了程序集版本)。第三方提供商是微软,因此等待他们解决问题是不现实的。我们现在需要在一次 MSI 更新内向人们提供新的 .DLL。目前,MSI 更新并未覆盖 .DLL。
即使文件版本匹配,VS2010 安装项目中是否有办法强制覆盖 .DLL?
I have an update to third party .DLL that must be installed onto my clients' computers. We currently employ automated installs via MSI that are created in Visual Studio 2010
Unfortunately, the third party .DLL was versioned incorrectly and file version of it was not increased by the provider (they only increased assembly version). The third party provider is Microsoft, so waiting on them to fix the issue is not realistic. We need to get the new .DLL to people now and within one MSI update. Right now, MSI update is not overriding the .DLL
Is there a way within VS2010 Setup project to force override a .DLL even if the file versions match?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您愿意进行 msi 构建后调整,您可以点击文件表并执行“版本谎言”。另一个想法是不要将该 DLL 放入您的安装中。找到一个来自 Microsoft 的安装程序(如果存在),您可以将其放入引导程序中,或者创建您自己的安装程序,并使用 AMUS 而不是 OMUS 作为版本规则。
If you are willing to do msi postbuild tweaking you can hit the File table and do "version lying". Another thought is to not put that DLL in your install. Find an installer from Microsoft ( if it exists ) that you can put into a bootstrapper or create your own installer and use AMUS instead of OMUS for the version rules.
您不能将该文件作为“文件”添加到安装程序中并与其他文件一起安装吗?不要将其设置为项目输出或任何预设安装操作。转到文件部分并右键单击“Application Files”文件夹,然后说>添加文件。导航到所需的文件并选择它。
Can't you just add the file to your installer as a 'file' and install it with the other files? Don't set it as project output, or any of the canned install actions. Go to the file portion and right click the "Application Files" folder, and say > add file. Navigate to the file that you want and choose it.