安装引导程序如何检测是否安装了先决条件?

发布于 2024-08-27 17:49:33 字数 529 浏览 2 评论 0原文

尝试解决这个问题

我想了解引导程序如何检测是否安装了先决条件(特别是 .NET 3.5)。

根据此参考,一种检测是否安装.NET的方法是检查以下注册表项:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5

使用进程监视器,我检查了引导程序 (setup.exe) 完成的注册表查询,它没有显示对此注册表项的任何访问权限。

有人知道引导程序如何确定目标系统上是否安装了先决条件吗?

Trying to solve this problem.

I would like to learn how the bootstrapper detects if prerequisites (specifically .NET 3.5) are installed.

According to this reference, a way to detect if .NET is installed is to check the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5

Using process monitor, I have inspected registry queries done by the bootstrapper (setup.exe) and it did not show any access to this registry key.

Does anybody know how the bootstrapper determines whether the prerequisites are installed on the target system?

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

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

发布评论

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

评论(1

南渊 2024-09-03 17:49:33

msbuildGenerateBootStrapper 包的必备包定义为 XML 文件。这些 XML 文件的架构记录在此处。查看“InstallChecks”元素以了解可以进行哪些类型的检查。

奇怪的是,我在 .NET 3.5 的先决条件包中找不到此类安装检查。您可以在 Windows SDK 文件夹 (C:\Program Files\Microsoft SDKs\Windows) 中找到此包以及其他预定义的引导程序包。

Prerequisite packages for the msbuild GenerateBootStrapper packages are defined as XML files. The schema of those XML files is documented here. Take a look at the "InstallChecks" element to get an idea of what sort of checks are possible.

Curiously enough, I could not find such install checks in the prerequisite package for .NET 3.5. You can find this package in the windows SDK folder (C:\Program Files\Microsoft SDKs\Windows), along with the other predefined bootstrapper packages.

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