简体   繁体   English

如何从批处理文件检查是否已安装程序?

[英]From a batch file how can I check if a program is installed?

I'm writing a batch script that needs to install Microsoft Lync if the user does not already have it installed. 我正在编写一个批处理脚本,如果用户尚未安装它,则需要安装Microsoft Lync。 Then, it will install my custom Lync UI after that. 然后,它将在那之后安装我的自定义Lync UI。 What is the best way to check if Lync is installed considering: 考虑以下因素,检查Lync是否已安装的最佳方法是什么?

  1. This will run at user logon and should be fast 这将在用户登录时运行,并且应该很快
  2. The user could be using a 32bit or 64bit Windows (XP or 7) 用户可能使用的是32位或64位Windows(XP或7)

检查文件是否存在于程序文件或程序文件中(x86)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何根据已安装程序的最新版本在Windows批处理文件中执行不同的操作 - How can I perform different actions in windows batch file based on most recent version of installed program 如何检查某个产品是否与批处理文件一起安装 - How to check if some product is installed with batch file 程序启动后,如何在不打开控制台的情况下从批处理文件运行程序? - How can I run a program from a batch file without leaving the console open after the program starts? 如果安装了任意程序,如何从 python 检查 - How to check from python, if an arbitrary program is installed 如何使用批处理程序检查文件是否存在 - How to check file existence with Batch Program 用于检查 Python 是否安装的批处理文件 - batch file to check if Python is installed 在程序启动之前如何执行批处理文件? - How can I execute a batch file before a program starts? 如何对64位操作系统以及已安装的库和应用程序进行批处理文件检查? - How do I have a batch file check for 64-bit OS and an installed library and application? 检查是否安装了 WMIC,将数据从批处理文件写入文件 - Check if WMIC is installed, writing data into files from batch file 如何检查是否从 web 浏览器安装了应用程序? - How can I check whether an application is installed from a web browser?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM