问题描述
尝试解决.
我想学习引导程序如何检测是否已安装必备软件(特别是.NET 3.5).
I would like to learn how the bootstrapper detects if prerequisites (specifically .NET 3.5) are installed.
根据此引用,这是一种检测是否为的方法.安装NET的目的是检查以下注册表项:
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安装程序\ NDP \ v3.5
使用进程监视器,我检查了引导程序(setup.exe)完成的注册表查询,但没有显示对该注册表项的任何访问权限.
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.
有人知道引导程序如何确定目标系统上是否已安装必备软件吗?
推荐答案
msbuild GenerateBootStrapper软件包的必备软件包定义为XML文件.在此处一个>.查看"InstallChecks"元素,以了解可以进行哪些检查.
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.
很奇怪,我在.NET 3.5的必备软件包中找不到这种安装检查.您可以在Windows SDK文件夹(C:\ Program Files \ Microsoft SDKs \ Windows)中找到此程序包,以及其他预定义的引导程序程序包.
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.
这篇关于安装程序引导程序如何检测是否已安装必备软件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!