查看Windows系统安装和卸载驱动的日志信息

最近在用InstallShield2010开发一个一键打包驱动的项目,需要支持安装和卸载。调试时需要知道驱动安装和卸载功能是否正确执行,可以系统盘的Windows的inf目录中查看这两个文件的信息setupapi.dev.log 文件(安装)

安装驱动:C:\\Windows\\inf\\setupapi.dev.log 文件
[Device Install Log]
     OS Version = 6.1.7601
     Service Pack = 1.0
     Suite = 0x0100
     ProductType = 1
     Architecture = x86

[BeginLog]

>>>  [SetupCopyOEMInf - C:\windows\System32\DriverStore\FileRepository\qcwwan.inf_x86_neutral_8496094248b35e28\qcwwan.inf]
>>>  Section start 2018/10/22 17:08:54.056
      cmd: "C:\Program Files\Quectel\LTE Windows USB Driver\DriverInstaller\install(32).exe" -uninstall
     inf: Opened PNF: 'C:\windows\System32\DriverStore\FileRepository\qcwwan.inf_x86_neutral_8496094248b35e28\qcwwan.inf' ([strings])
     inf: Installing catalog qcwwan.cat as: oem76.CAT
<<<  Section end 2018/10/22 17:08:54.179
<<<  [Exit status: SUCCESS]


卸载驱动:C:\\Windows\\inf\\setupapi.app.log 文件

[Device Install Log]
     OS Version = 6.1.7601
     Service Pack = 1.0
     Suite = 0x0100
     ProductType = 1
     Architecture = x86

[BeginLog]

>>>  [SetupUninstallOEMInf - oem76.inf]
>>>  Section start 2018/10/22 17:13:47.016
      cmd: "C:\Program Files\Quectel\LTE Windows USB Driver\DriverInstaller\install(32).exe" -uninstall
     sto: {Delete Driver Package: C:\windows\System32\DriverStore\FileRepository\qcwwan.inf_x86_neutral_8496094248b35e28\qcwwan.inf} 17:13:47.092
     sto:      Deleting driver package from Driver Store:
     sto:           Driver Store   = C:\windows\System32\DriverStore (Online | 6.1.7601)
     sto:           Driver Package = C:\windows\System32\DriverStore\FileRepository\qcwwan.inf_x86_neutral_8496094248b35e28\qcwwan.inf
     sto:           Flags          = 0x00000000
     pol:      {Driver package policy check} 17:13:47.301
     pol:      {Driver package policy check - exit(0x00000000)} 17:13:47.303
     sto:      {Unstage Driver Package: C:\windows\System32\DriverStore\FileRepository\qcwwan.inf_x86_neutral_8496094248b35e28\qcwwan.inf} 17:13:47.305
     sto:           Published driver package INF 'oem76.inf' was deleted.
     sto:           {Delete Directory: C:\windows\System32\DriverStore\FileRepository\qcwwan.inf_x86_neutral_8496094248b35e28} 17:13:47.616
     sto:                {Delete Directory: C:\windows\System32\DriverStore\FileRepository\qcwwan.inf_x86_neutral_8496094248b35e28\ndis} 17:13:47.619
     sto:                     {Delete Directory: C:\windows\System32\DriverStore\FileRepository\qcwwan.inf_x86_neutral_8496094248b35e28\ndis\6.2} 17:13:47.630
     sto:                          {Delete Directory: C:\windows\System32\DriverStore\FileRepository\qcwwan.inf_x86_neutral_8496094248b35e28\ndis\6.2\i386} 17:13:47.633
     sto:                          {Delete Directory: exit(0x00000000)} 17:13:47.668
     sto:                     {Delete Directory: exit(0x00000000)} 17:13:47.674
     sto:                {Delete Directory: exit(0x00000000)} 17:13:47.680
     sto:           {Delete Directory: exit(0x00000000)} 17:13:47.692
     sto:      {Unstage Driver Package: exit(0x00000000)} 17:13:47.693
     sto:      Deleted driver package from Driver Store. Time = 593 ms
     sto: {Delete Driver Package: exit(0x00000000)} 17:13:47.698
<<<  Section end 2018/10/22 17:13:47.726
<<<  [Exit status: SUCCESS]

这个oem76.inf文件是函数 SetupCopyOEMInf 执行驱动预安装时生成的预安装驱动信息文件,他们都为Windows的inf目录中。

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

法哥2012

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值