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系统安装和卸载驱动的日志信息 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1728603716h1255485.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论