打包 vb6/vb.net 混合应用程序的最佳方法是什么?

发布于 2024-11-15 18:08:17 字数 449 浏览 3 评论 0原文

我一直在为我的公司开发一个完全用 VB6 实现的项目。然而,我们已经将其中的一小部分转移到 VB.NET (v4.0) 中。以前,我们只是使用打包和部署向导将所有内容捆绑到一个安装可执行文件中,但我不确定这次是否足够。如果可以提供帮助,我们希望安装程序检查目标计算机上是否安装了 .NET 框架,如果没有安装,则安装它,我很确定打包和部署向导无法做到这一点。

我一直在阅读 INNO 脚本,因为它似乎是打包 VB.NET 和 VB6 项目的合适替代方案,但它有很多关于包含错误或不必要的 dll 文件的警告。我是一个十足的菜鸟,这并没有给我带来很大的信心。我不希望我们的客户运行我们的安装程序并直接导致他们的计算机崩溃。

我一直在做自己的研究(如果已经问过这个问题,请提前道歉,我没有看到任何相关的线程),但这对我来说完全是处女地。该网站推荐了哪些工具和说明来完成我想要的事情? VB.NET 是否提供了用于此类操作的任何工具,或者我几乎只能依靠自己?

I've been working on a project for my company that's completely implemented in VB6. However, we've been transitioning small parts of it over into VB.NET (v4.0). Previously, we would simply use the Package and Deployment Wizard to bundle everything up into a single setup executable, but I'm not confident that it will be enough this time. If it can be helped, we'd like for the setup to check if the .NET framework is installed on the target machine and then install it if it is not, which I'm pretty sure Package and Deployment Wizard cannot do.

I've been reading up on INNO scripting since it seems an appropriate alternative for packaging both VB.NET and VB6 projects, but it has a lot of warnings about including the wrong or unnecessary dll files. I'm a complete noob and this doesn't instill a great deal of confidence in me. I don't want our customers to run our installer and have their computers crash as a direct result.

I've been doing my own research (apologies in advance if this question has already been asked, I didn't see any relevant threads), but this is all totally virgin territory for me. What tools and instructions does this site recommend for accomplishing the things that I want? Does VB.NET come with any tools for this sort of thing, or am I pretty much on my own?

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

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

发布评论

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

评论(3

黎夕旧梦 2024-11-22 18:08:17

我会查看类似 高级安装程序 的内容,它将帮助您打包和部署应用程序。您可以设置像 .Net 4.0 这样的依赖项,以确保它在您的应用程序之前安装。 InstallShield 总是有的,但目前它的成本和功能可能有点过大了。

不幸的是,随着更好的语言、更好的 IDE、更多的开发工具的发展,安装工具似乎相当滞后。

I'd check out something like Advanced Installer It will help you package and deploy your application. You can set dependencies like .Net 4.0 that it will ensure that it is installed before your app is. There's always InstallShield, but the cost and functionality is probably overkill at this time.

Unfortunately, with all the development of better languages, better IDEs, more developer tools, it seems as if installation tools are lagging considerably.

滴情不沾 2024-11-22 18:08:17

也可以看看 WIX。我们将它用于我们的客户端安装(我们的应用程序完全是.net,但这并不重要)。

从链接页面:

Windows Installer XML (WiX) 是一个从 XML 源代码构建 Windows 安装包的工具集。该工具集支持命令行环境,开发人员可以将其集成到其构建过程中以构建 MSI 和 MSM 安装包。

Might also look at WIX. We use it for our client-installations (our app is fully .net, but it doesn't matter).

From the linked page:

The Windows Installer XML (WiX) is a toolset that builds Windows installation packages from XML source code. The toolset supports a command line environment that developers may integrate into their build processes to build MSI and MSM setup packages.

奢华的一滴泪 2024-11-22 18:08:17

更新:

我决定采取混合方法,这很恰当。我使用 inno 来构建 setup.exe,但在该安装程序中,我打包了由 P&DW 生成的安装文件。 P&DW 为我处理了所有 dll 垃圾,我们已经知道它可以工作,所以我不必担心搞砸它,而且我可以专注于使所有 .NET 部分正确安装。让一个安装程序在另一个安装程序期间运行有点愚蠢,但考虑到这实际上是一个相当小的妥协。

谢谢大家的所有提示!

UPDATE:

I decided, appropriately enough, to take a hybrid approach. I'm using inno to build the setup.exe, but inside of that setup I'm packaging the setup file that's generated by P&DW. The P&DW takes care of all the dll crap for me, we already know it works so I don't have to worry about screwing it up, and I can just focus on making all the .NET portions install properly. It is a little bit goofy having an installer run during another installer, but it's actually a pretty small compromise, considering.

Thanks for all the tips, everybody!

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