安装引导程序如何检测是否安装了先决条件?
尝试解决这个问题。
我想了解引导程序如何检测是否安装了先决条件(特别是 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.