关于Windows平台的驱动安装问题

目前对于大量手机连接PC,存在诸多问题,连接不上,大部分原因是缺少改机型的驱动文件所致,故需要安装驱动,目前手动安装驱动,网络文章成千上万,不再赘述

码农使用程序安装驱动显得专业些,下面简单介绍下DPInst.exe进行驱动文件安装过程。

dpinst.exe -help得到帮助:

DPInst.exe: installs and uninstalls driver packages.
By default, the tools searches the current directory and tries to install
all driver packages found.

Usage: DPInst.exe [/U INF-file][/S | /Q][/LM][/P][/F][/SH][/SA][/A][/PATH Path][
/EL][/L LanguageID][/C][/D][/LogTitle Title][/SW][/? | /h | /help]

  /U path to INF file
            Uninstall a driver package (INF-file).
  /S | /Q   Silent (Quiet) mode. Suppresses the Device Installation
            Wizard and any dialogs popped-up by the operating system.
  /LM       Legacy mode. Accepts unsigned driver packages and packages with
            missing files. These packages won't install on the latest
            version of Windows.
  /P        Prompt if the driver package to be installed is not better
            than the current one.
  /F        Force install inf the driver package is not better than the
            current one.
  /SH       Scans hardware for matching devices and only copies and installs
            those drivers for which a device is present. Only valid for
            Plug and Play drivers.
  /SA       Suppress the Add/Remove Programs entry normally created for
            each driver package.
  /A        Install all or none.
  /PATH Path
            Search for driver packages under the given path.
  /EL       Enables all languages not explicitly listed in the XML file.
  /L LanguageID
            Tries to use the given language in all UI.
            Useful for localization tests.
  /SE       Suppress the EULA.
  /C        Dump logging output to attached Console (Windows XP and above).
  /D        Delete driver binaries on uninstall.
  /SW       Suppresses the Device Installation Wizard, the operating system
            might still pop-up user dialogs.
  /? | /h | /help
            Shows this help.

如果无重大选择,只需要使用参数/Path + filePath 进行有界面的安装操作,也可以选择默认安装/Q or /S等,具体的需要 具体分析参考以上help

DPInst.exe: installs and uninstalls driver packages. DPInst.exe: 安装及删除驱动程序包。 By default, the tools searches the current directory and tries to install all driver packages found. 默认情况下,此工具会搜索当前目录并尝试安装找到的驱动程序包。 Usage: DPInst.exe [/U INF-file][/S | /Q][/LM][/P][/F][/SH][/SA][/A][/PATH Path][/EL][/L LanguageID][/C][/D][/LogTitle Title][/SW][/? | /h | /help] 用法:DPInst.exe [/U INF-file][/S | /Q][/LM][/P][/F][/SH][/SA][/A][/PATH Path][/EL][/L LanguageID][/C][/D][/LogTitle Title][/SW][/? | /h | /help] /U path to INF file Uninstall a driver package (INF-file). /U 指定 INF 文件 删除一个驱动程序包(INF-文件)。 /S | /Q Silent (Quiet) mode. Suppresses the Device Installation Wizard and any dialogs popped-up by the operating system. /LM Legacy mode. Accepts unsigned driver packages and packages with missing files. These packages won't install on the latest version of Windows. /LM 传统模式。接受未签名的驱动包(缺少.cat文件)以及包中有文件丢失。 /P Prompt if the driver package to be installed is not better than the current one. /P 如果驱动包已经安装以及比当前使用的版本要旧就发出提示。 /F Force install inf the driver package is not better than the current one. /F 强制安装比当前使用的版本要旧的驱动包。 /SH Scans hardware for matching devices and only copies and installs those drivers for which a device is present. Only valid for Plug and Play drivers. /SH 仅仅对已插入的匹配的硬件设备进行扫描。 /SA Suppress the Add/Remove Programs entry normally created for each driver package. /SA 禁止“添加或删除程序”创建卸载项。 /A Install all or none. /PATH Path Search for driver packages under the given path. /PATH 路径 在指定的路径下搜索驱动程序包。 /EL Enables all languages not explicitly listed in the XML file. /L LanguageID Tries to use the given language in all UI. Useful for localization tests. /SE Suppress the EULA. /SE 禁止最终用户许可协议。 /C Dump logging output to attached Console (Windows XP and above). /C 转存日志文件输出到附加控
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值