有人知道 Inno Setup 的可靠 .NET Framework 2.0 安装程序脚本吗?
我花了一天的大部分时间来搜索、编写并最终废弃了一个脚本,该脚本可以与我的 Inno Setup 安装脚本一起使用,该脚本将在需要时下载并安装适当的 .NET 2.0 Framework。
确实有很多示例,但它们:
想要在需要时安装 Internet Explorer,但我不敢以自动化方式安装
仅处理 x86 .NET 发行版,不支持 x64 和 IA64
需要时不安装相应的语言包-- 一个棘手的问题(当我看到不同的 x86/x64/语言组合有不同的语言包时,我认输了)
不处理获取 .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:
Want to install Internet Explorer if needed which I wouldn't dare to in an automated way
Only handle x86 .NET distributions, no x64 and IA64 support
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)
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我最近一直在研究这个问题,但没有与您相同的要求。 我还没有看到一个脚本可以完成您想要的操作,但您是否考虑过检查是否安装了 .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.
InnoSetup 的 .NET Framework 1.1/2.0/3.5 安装程序
.NET Framework 1.1/2.0/3.5 Installer for InnoSetup