【发布时间】:2015-06-13 12:37:22
【问题描述】:
我正在无人参与的脚本中安装一组驱动程序。其中一个驱动程序(英特尔 USB3 驱动程序)在完成后启动 Windows Driver Finder 应用程序(“drvinst.exe”)。然后,当 nVidia 驱动程序尝试运行时,它们会取消,因为该向导仍在后台运行。
我目前的解决方案是这样的,但不是很优雅:
:INSTALLLAPTOP79
.\ELAN\Touchpad\Setup.exe /s /a /s
.\Intel\Chipset\Setup.exe -s -norestart
.\Intel\Graphics\Setup.exe -s
.\Intel\MEI\Setup.exe -s
.\Intel\USB3\Setup.exe -s
.\Realtek\Audio\Setup.exe /s
.\Realtek\CardReader\Setup.exe /s
TIMEOUT 180
.\nVidia\Graphics\Setup.exe -n -s
GOTO :INSTALLLAPTOPWIFI
基本上,如果系统比“正常”慢,它会失败,因为 180 秒是不够的。我可以增加这个值,但这对我来说很乱。
我基本上是在寻找一种方法来“检查”以查看“drvinst.exe”是否仍在运行,如果是,请等待一段时间 - 然后再次检查.
有什么想法吗?
【问题讨论】:
标签: windows batch-file command-line-interface command-line-arguments