admin 管理员组

文章数量: 887007

最近在用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目录中。

本文标签: 系统安装 信息 日志 Windows