2011年9月29日 星期四

DPInst說明

在Microsoft提供的DDK開發工具中,包含了一個好用的工具:驅動程式套件安裝程式 (DPInst)
DPInst是驅動程式安裝架構DIFx(Driver Install Frameworks) 所提供的工具之ㄧ,DIFx提供了基礎架構和工具來簡化開發人員和使用者的裝置與驅動程式安裝。
詳細資訊請參考官方所提供的說明:
http://support.microsoft.com/kb/910189/zh-tw

這個工具的設定,是搜尋目前的路徑、或是在指定的路徑下,嘗試安裝所有找到的驅動程式。
在搜尋相關資訊時,找到某篇部落格的文章提到如何利用InstallShield實作WDM的驅動程式安裝包,內容就是利用DPInst這個工具來實作的,寫得非常地詳盡,有需要的朋友可以拜讀一下這位賢拜的大作:
http://blog.xuite.net/kyanite0909/techshare/25750034#16530720

但是要使用該工具時,必須先將裝置接上系統

DPInst的英文參數說明:
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.




沒有留言:

張貼留言