用于检查软件先决条件的通用工具
您是否知道可用于检查本地计算机上的自定义软件硬件先决条件的通用工具?我的意思是,我想要一个可以轻松配置的工具来检查机器是否有 .NET 版本,是否安装了 SQL Server 2005,是否安装了 IIS 6 或更高版本等。将其发送给某人,他将启动该工具并立即知道机器是否满足所有定义的条件。
我想象这种工具有无限的插件可能性:检查 python、java、ruby、php、所有组件、应用程序服务器、数据库服务器等。它可以进行基本检查(例如,仅查找是否安装了 Python 2.5)或更高级的检查(如果已安装 - 检查它是否以这种方式配置)。然后它可以检查硬件先决条件,如 CPU、内存、硬盘等。
我说的是“工具”,但这可能是一些具有记录方法的低级 C 或 C++ 库。可以围绕它构建更高级别的工具,在安装向导等中使用它。有类似的东西吗?会很好,有时可以节省很多精力。
Do you know any generic tool that can be used to check custom software-hardware prerequisites on a local machine? I mean, I'd like to have a tool which I can easily configure to check if the machine has, say .NET version this and this, and if SQL server 2005 is installed, and if IIS 6 or later is installed etc. then send it to somebody and he would start the tool and immediately know if a machine meets all defined conditions.
I imagine endless plugin possibilities for such tool: checking for python, java, ruby, php, all components, app servers, database servers, etc. It could do basic checks (e.g. only find if say Python 2.5 is installed) or more advanced (if installed - check if it's configured in this and this way). It could then check for hardware prerequisites like CPU, memory, hard drives, etc.
I'm saying 'tool' but this could be some low-level C or C++ library with documented methods. It would be possible to build higher-level tools around it, use it in the installation wizards etc etc. Is there anything like this out there? Would be nice and saved a lot of effort sometimes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太确定这是否是您所需要的,但您可能想看看 NSIS (它是一个安装程序框架)。
已经为其编写了许多插件和脚本来检查此类先决条件,甚至提供了一种将这些插件和脚本与您的应用程序一起安装的方法。
I'm not quite sure it is what you need, but you might want to take a look at NSIS (it's an installer framework).
There is a number of plugins and scripts already written for it that check for such prerequisites, and even offer a way to install those with your application.