Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用批处理文件将 Apache Tomcat 8.5.11 静默安装到特定目录。
我试过下面的命令:
apache-tomcat-8.5.11.exe /S /D="D:\softwares\Tomcat"
安装以静默方式进行,但它安装到 C:\Program Files\ 而不是使用 /D 选项提供的位置。
是否需要任何其他配置?
通过删除路径中的双引号解决了这个问题例如,这有效:
apache-tomcat-8.5.11.exe /S /D=D:\softwares\Tomcat
也适用于带空格的目录名称。