有人知道 Inno Setup 的可靠 .NET Framework 2.0 安装程序脚本吗?

发布于 2024-07-05 21:26:54 字数 483 浏览 8 评论 0原文

我花了一天的大部分时间来搜索、编写并最终废弃了一个脚本,该脚本可以与我的 Inno Setup 安装脚本一起使用,该脚本将在需要时下载并安装适当的 .NET 2.0 Framework。

确实有很多示例,但它们:

  1. 想要在需要时安装 Internet Explorer,但我不敢以自动化方式安装

  2. 仅处理 x86 .NET 发行版,不支持 x64 和 IA64

  3. 需要时不安装相应的语言包-- 一个棘手的问题(当我看到不同的 x86/x64/语言组合有不同的语言包时,我认输了)

  4. 不处理获取 .NET 2.0 SP1(也许 Windows Update 会在安装 2.0 后处理这个问题?)

这似乎是一个常见问题,有人一定已经解决了它。 我发现的只是 20 个不同的帖子,全部都指向相同的两三个代码片段。

欢迎有识之士:)

I've spent a good part of the day searching, writing and finally scrapping a script that I can use with my Inno Setup install script that will download and install the appropriate .NET 2.0 Framework if needed.

There are definitely a number of examples out there, but they:

  1. Want to install Internet Explorer if needed which I wouldn't dare to in an automated way

  2. Only handle x86 .NET distributions, no x64 and IA64 support

  3. Don't install the appropriate language pack when needed -- a tough problem (when I saw there were different language packs for different x86/x64/language combos I threw in the towel)

  4. Don't handle getting the .NET 2.0 SP1 (maybe Windows Update will handle that once 2.0 is installed?)

This seems like such a common problem that someone must have solved it. All I found though were 20 different posts all pointing to the same two or three code snippets.

Insight welcomed :)

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

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

发布评论

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

评论(2

又怨 2024-07-12 21:26:54

我最近一直在研究这个问题,但没有与您相同的要求。 我还没有看到一个脚本可以完成您想要的操作,但您是否考虑过检查是否安装了 .NET 2.0,如果没有安装,则提示他们下载它。 您可以在默认浏览器中打开 URL,并让用户在安装框架后再次尝试安装。

从用户的角度来看,这不是一个理想的情况,但我认为按照您的计划,您将必须编写一些复杂的东西来处理不同的语言限制才能使其正常工作。

只是我的2分钱。

I have recently been looking into this issue but without the same requirements that you have. I haven't seen a script that does what you want but have you considered instead checking if .NET 2.0 is installed and if not then prompt them to download it. You can open a URL in the default browser and get the user to attempt the install again once the framework has been installed.

This is not an ideal situation from a user perspective but i think going with what your planning you will have to write some complex stuff to handle the different language constraints just to get it working.

Just my 2 cents.

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