loger94
驱动牛犊
驱动牛犊
  • 注册日期2009-02-03
  • 最后登录2010-12-03
  • 粉丝0
  • 关注0
  • 积分41分
  • 威望341点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2075回复:0

有关虚拟装置的问题

楼主#
更多 发布于:2009-02-03 16:56
;;security
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;  Version information
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Version]
Signature = "$Windows NT$"
;Class=Unknown
;Class=ControlCard
;ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b}
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%MFGNAME%

DriverVer=01/10/2009,1.0.0.0


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;  standard INF sections
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;top level section for device installation. contains the list of
;;devices for which this INF file is meant
[Manufacturer]                          
%MFGNAME%=DeviceList

;;identify the source disks of the installation package
[SourceDisksNames]
1=%INST_DISK_NAME%

;;identify the files that are included in the installation package
[SourceDisksFiles]                              
security.sys=1,,
security.dll=1,,
WdfCoinstaller01005.dll=1,,

;;specifiy the destination folder for the different CopyFiles sections.
;;all file actions that do not have a key in the DecstinationDirs section
;;will be done in to DefaultDestDir
;;WDM and WDF drivers have to go into %windir%\system32\drivers
;;%windir% has number 10. %windir%\system32 has number 11
[DestinationDirs]
JSwdmCopyFiles=10,System32\drivers
JSdllCopyFiles=10,System            
ClassInstall32_CopyFiles=11
CoInstaller_CopyFiles = 11
                            
;;Specify the list of devices that are
;;supported by our driver.
[DeviceList]
; DisplayName        Section           DeviceId
; -----------       -------           --------
; PCI hardware IDs use the form
;   PCI\VEN_aaaa&DEV_bbbb&SUBSYS_cccccccc&REV_dd
;PCI\VEN_1573&DEV_0100&SUBSYS_00486936
%DEV_DESCRIPTION%=   DriverInstall,root\Security
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;  Class installation
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[ClassInstall32]
AddReg=ClassInstall32_AddReg
CopyFiles=ClassInstall32_CopyFiles

[ClassInstall32_AddReg]
HKR,,,,%DeviceClassName%
HKR,,Icon,,"-5"

[ClassInstall32_CopyFiles]    

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;  device installation
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;specify that this is the installation
;;for nt based systems.
[DriverInstall.ntx86]
DriverVer=09/21/2008,2.0.0.0
CopyFiles=JSwdmCopyFiles,JSdllCopyFiles

[JSwdmCopyFiles]
security.sys,,,2

[JSdllCopyFiles]
security.dll,,,2

;;tell the PNP manager which file contains the entry point, and
;;how it has to start.
[DriverInstall.ntx86.Services]
AddService=security,2,DriverService

[DriverService]
ServiceType=1                           ;;kernel mode driver
StartType=3                             ;;start on demand
ErrorControl=1                          ;;normal error handling.
ServiceBinary=%10%\system32\drivers\security.sys

[DriverInstall.ntx86.hw]
AddReg=DriverHwAddReg

[DriverHwAddReg]
HKR,,JS Control Card,,"security"

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;  WDF Coinstaller installation
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[DriverInstall.ntx86.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
WdfCoinstaller01005.dll,,,2

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoinstaller01005.dll,WdfCoInstaller"

[DriverInstall.ntx86.Wdf]
KmdfService = security, security_wdfsect

[security_wdfsect]
KmdfLibraryVersion = 1.5

[Strings]
ClassName = "Security"
MFGNAME="JS Automation Corp."
DeviceClassName="JS Control Card"
;; shown in ClassID view
INSTDISK=" Installation Disc"
DEV_DESCRIPTION="security"
INST_DISK_NAME="security installation disk"

//*************************************
以上是我写的inf档~~直接挂载可以挂
但是~用Install Shield 打包这~辞装不起来~~那是什麽原因?
Install Shield 安装完会出现Please attach your device to this computer any time after the installation has finished.
虽然装完了但装置管理员沟看到我挂的虚拟装直~真苦恼~有谁帮帮我!
游客

返回顶部