简体   繁体   English

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

[英]Anyone know of a solid .NET Framework 2.0 installer script for Inno Setup?

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. 我花了大部分时间搜索,编写并最终删除了可以与Inno Setup安装脚本一起使用的脚本,该脚本将在需要时下载并安装适当的.NET 2.0 Framework。

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 想要安装Internet Explorer(如果需要),我不敢以自动化方式进行安装

  2. Only handle x86 .NET distributions, no x64 and IA64 support 仅处理x86 .NET发行版,不支持x64和IA64

  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) 不需要在需要时安装适当的语言包-一个棘手的问题(当我看到我用毛巾将不同的x86 / x64 /语言组合使用不同的语言包时)

  4. Don't handle getting the .NET 2.0 SP1 (maybe Windows Update will handle that once 2.0 is installed?) 不要处理获取.NET 2.0 SP1的问题(也许Windows Update将在安装2.0后处理该问题?)

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. 我所发现的只是20个不同的帖子,它们都指向相同的两个或三个代码段。

Insight welcomed :) 欢迎有识之士:)

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. 我还没有看到可以满足您要求的脚本,但是您是否考虑过检查是否安装了.NET 2.0,如果没有,则提示他们下载。 You can open a URL in the default browser and get the user to attempt the install again once the framework has been installed. 您可以在默认浏览器中打开URL,并在安装框架后让用户再次尝试安装。

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. 只是我的2美分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM