『楼 主』:
[讨论]如何根据注册表检测某个软件是否安装?
使用 LLM 解释/回答一下
由于本人制作绿色软件的需要,需要检测是否安装了某个版本的程序,如我要安装ACCESS2003绿色版,则就必须知道是否系统之前是否安装过OFFICE,如果安装过又是哪个版本?然后根据不同的情况处理:如果没有安装过则可以直接设置绿色软件,如果已经安装过,设置的话就回冲突,那么就先备份注册表的相关项.
这里就提出了一个问题?如何使用批处理根据注册表来检测是否安装了某个程序.检测?这里还是有点难度的,所以建议大家讨论下(本人以前都是使用一个国外的工具叫CHECKV的工具来检测是否安装了指定程序,不过不是命令行版的,所以使用起来很麻烦,要自己提取生成的HTML中的信息.)
Due to my need to make portable software, I need to detect whether a certain version of a program is installed. For example, if I want to install the green version of ACCESS 2003, I must know whether Office has been previously installed on the system, and if so, which version it is. Then, handle it according to different situations: if it hasn't been installed, I can directly set up the portable software; if it has been installed, setting it up will cause a conflict, so I need to back up the relevant items in the registry first.
Here comes a problem? How to use batch processing to detect whether a certain program is installed according to the registry. Detection? Here it is still a bit difficult, so it is suggested that everyone discuss it (I used to use a foreign tool called CHECKV to detect whether a specified program is installed, but it is not the command-line version, so it is very troublesome to use, and I need to extract the information from the generated HTML by myself.)
|