Archive: about inf


about inf
I want to use NSIS to DIY a Install Projects.but this projects have only three files("YEN310.cat、YEN310.inf、YEN310.sys").

who can tell me ,how use NSIS to DIY a Install Projects?



YEN310.inf

;; (Combined inf for NDIS5.1 driver)
;;
;; This INF file is for YiShang YEN-310W 10/100M PCI Fast Ethernet Card
;;
;; Copyright (C) 2002 YiShang Innovation Technology Co.LTD

[version]
Signature = "$CHICAGO$"
Compatible = 1
Class = Net
ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider = %XTN% ;; for WHQL certified
CatalogFile = YEN310.cat ;; for WHQL certified
DriverVer = 07/10/2002, 1.00.0710.2002

[Manufacturer]
%XTN% = XTN

[ControlFlags]
ExcludeFromSelect = PCI\VEN_1113&DEV_1216&SUBSYS_00041113

[XTN]
%YEN310W.DeviceDesc% = YEN310W.ndi, PCI\VEN_1113&DEV_1216&SUBSYS_00041113

;;****************************************************************************
;; Windows 9x
;;****************************************************************************
[YEN310W.ndi]
DriverVer = 07/10/2002, 1.00.0710.2002
AddReg = YEN310W.id.reg, YEN310.common.reg, YEN310.win.reg, YEN310.pci.reg
CopyFiles = YEN310.CopyFiles9x

;;****************************************************************************
;; NT 5.0
;;****************************************************************************
[YEN310W.ndi.NT]
DriverVer = 07/10/2002, 1.00.0710.2002
AddReg = YEN310.common.reg, YEN310.reg, YEN310.pci.reg
Characteristics = 0x84
BusType = 5
CopyFiles = YEN310.CopyFiles

[YEN310W.ndi.NT.Services]
AddService = YEN310, 2, YEN310.Service, YEN310.EventLog


[YEN310.CopyFiles9x]
YEN310.sys,,,2

[YEN310.CopyFiles]
YEN310.sys,,,2

;;----------------------------------------------------------------------------
;; YEN310 Parameters
;;----------------------------------------------------------------------------
;;****************************************************************************
;; Windows 9x parameters
;;****************************************************************************
[YEN310W.id.reg]
HKR, Ndi, DeviceID, 0, "PCI\VEN_1113&DEV_1216&SUBSYS_00041113"


[YEN310.pci.reg]
HKR, , AdapterType, 0, "5"
HKR,,TxPacketDesc,,"160" ; 0xa0
HKR,,RxPacketDesc,,"120" ; 0x78
HKR,,TxDmaDesc,,"320" ; 0x140
HKR,,RxDmaDesc,,"40" ; 0x28
HKR,,PacketsPerTxInt,,"10" ; 0x0a
HKR,,PacketsPerRxInd,,"10" ; 0x0a
HKR,,BurstLength,,"0" ; 0 (Unlimited), 1 DW, 2 DW, 3 DW, ...

[YEN310.win.reg]
;; key,subkey,valuname,type,value
HKR, , AdapterCFID, , 12161113
HKR, , DriverDesc, 0, "YiShang YEN-310W 10/100M PCI Fast Ethernet Card"
HKR, , DevLoader, 0, *ndis
HKR, , DeviceVxDs, 0, YEN310.sys
HKR, , EnumPropPages, 0, netdi.dll, EnumPropPages

;;params
HKR, , MediaType, 0, 1
HKR, , AdapterType, 0, 5
HKR, , BusType, 0, 5

;; NDIS Info
HKR, NDIS, MajorNdisVersion, 1, 03
HKR, NDIS, MinorNdisVersion, 1, 0a
HKR, NDIS, LogDriverName, 0, "YEN310"

;; Interfaces
HKR, Ndi\Interfaces, DefLower, , "ethernet"
HKR, Ndi\Interfaces, LowerRange, , "ethernet"
HKR, Ndi\Interfaces, DefUpper, , "ndis3"
HKR, Ndi\Interfaces, UpperRange, , "ndis3"

;; Install sections
HKR, Ndi\Install, ndis3, 0, "YEN310.ndis5"

;;****************************************************************************
;; YEN310 common parameters
;;****************************************************************************
[YEN310.common.reg]
HKR, Ndi\Params\MediaType, ParamDesc, , "Media Type"
HKR, Ndi\Params\MediaType, default, , "0"
HKR, Ndi\Params\MediaType, type, , "enum"
HKR, Ndi\Params\MediaType\enum, 0, , "AutoSense"
HKR, Ndi\Params\MediaType\enum, 1, , "10BaseT"
HKR, Ndi\Params\MediaType\enum, 2, , "10BaseT Full_Duplex"
HKR, Ndi\Params\MediaType\enum, 3, , "100BaseTX"
HKR, Ndi\Params\MediaType\enum, 4, , "100BaseTX Full_Duplex"
HKR, Ndi\Params\MediaType, flag, 1, "20","00","00","00"

HKR, Ndi\Params\PowerManagement, ParamDesc, , "PME Enable"
HKR, Ndi\Params\PowerManagement, default, , "1"
HKR, Ndi\Params\PowerManagement, type, , "enum"
HKR, Ndi\Params\PowerManagement\enum, 0, , "Disabled"
HKR, Ndi\Params\PowerManagement\enum, 1, , "Enabled"
HKR, Ndi\Params\PowerManagement, flag, 1, "20","00","00","00"

HKR, Ndi\Params\WakeupFrame, ParamDesc, , "Wake On Ping"
HKR, Ndi\Params\WakeupFrame, default, , "1"
HKR, Ndi\Params\WakeupFrame, type, , "enum"
HKR, Ndi\Params\WakeupFrame\enum, 0, , "Disabled"
HKR, Ndi\Params\WakeupFrame\enum, 1, , "Enabled"
HKR, Ndi\Params\WakeupFrame, flag, 1, "20","00","00","00"

HKR, Ndi\Params\LinkOnChange, ParamDesc, , "Link Wakeup(Off->On)"
HKR, Ndi\Params\LinkOnChange, default, , "1"
HKR, Ndi\Params\LinkOnChange, type, , "enum"
HKR, Ndi\Params\LinkOnChange\enum, 0, , "Disabled"
HKR, Ndi\Params\LinkOnChange\enum, 1, , "Enabled"
HKR, Ndi\Params\LinkOnChange, flag, 1, "20","00","00","00"

HKR, Ndi\Params\LinkOffChange, ParamDesc, , "Link Wakeup(On->Off)"
HKR, Ndi\Params\LinkOffChange, default, , "0"
HKR, Ndi\Params\LinkOffChange, type, , "enum"
HKR, Ndi\Params\LinkOffChange\enum, 0, , "Disabled"
HKR, Ndi\Params\LinkOffChange\enum, 1, , "Enabled"
HKR, Ndi\Params\LinkOffChange, flag, 1, "20","00","00","00"

HKR, Ndi\Params\MagicPacket, ParamDesc, , "Magic Packet Wakeup"
HKR, Ndi\Params\MagicPacket, default, , "1"
HKR, Ndi\Params\MagicPacket, type, , "enum"
HKR, Ndi\Params\MagicPacket\enum, 0, , "Disabled"
HKR, Ndi\Params\MagicPacket\enum, 1, , "Enabled"
HKR, Ndi\Params\MagicPacket, flag, 1, "20","00","00","00"

HKR, Ndi\Params\FlowControl, ParamDesc, , "Flow Control"
HKR, Ndi\Params\FlowControl, default, , "1"
HKR, Ndi\Params\FlowControl, type, , "enum"
HKR, Ndi\Params\FlowControl\enum, 0, , "Disabled"
HKR, Ndi\Params\FlowControl\enum, 1, , "Enabled"
HKR, Ndi\Params\FlowControl, flag, 1, "20","00","00","00"

HKR, Ndi\Params\PriorityPacket, ParamDesc, , "Priority Packet"
HKR, Ndi\Params\PriorityPacket, default, , "0"
HKR, Ndi\Params\PriorityPacket, type, , "enum"
HKR, Ndi\Params\PriorityPacket\enum, 0, , "Disabled"
HKR, Ndi\Params\PriorityPacket\enum, 1, , "Enabled"
HKR, Ndi\Params\PriorityPacket, flag, 1, "20","00","00","00"

HKR,Ndi\params\VlanId, ParamDesc,0, "VLAN ID"
HKR,Ndi\params\VlanId, type, 0, "edit"
HKR,Ndi\params\VlanId, default, 0, "0"
HKR,Ndi\params\VlanId, LimitText,0, "4"
HKR,Ndi\params\VlanId, UpperCase,0, "1"
HKR,Ndi\params\VlanId, Optional, 0, "1"

;;****************************************************************************
;; NT 5.0 parameters
;;****************************************************************************
[YEN310.reg]
HKR, Ndi\Interfaces, UpperRange, 0, "ndis5"
HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"
HKR, Ndi, Service, 0, "YEN310"

[YEN310.Service]
DisplayName = %YEN310.Service.DispName%
ServiceType = 1 ; %SERVICE_KERNEL_DRIVER%
StartType = 3 ; %SERVICE_DEMAND_START%
ErrorControl = 1 ; %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\YEN310.SYS
LoadOrderGroup = NDIS


[YEN310.EventLog]
Addreg = YEN310.AddEventLog.reg

[YEN310.AddEventLog.reg]
HKR, , EventMessageFile, 0x00020000, %%SystemRoot%%\System32\netevent.dll
HKR, , TypesSupported, 0x00010001, 7

;;****************************************************************************
;; Destination Directory
;;****************************************************************************
[DestinationDirs]
YEN310.CopyFiles9x = 11
YEN310.CopyFiles = 12
DefaultDestDir = 11 ; LDID_SYS

;;****************************************************************************
;; Source Files
;;****************************************************************************
[SourceDisksNames]
1=%DISKNAME%,,,

[SourceDisksFiles]
YEN310.sys=1
YEN310.INF=1

;;****************************************************************************
;; Strings
;;****************************************************************************
[Strings]
XTN = "YiShang YEN-310W "

DISKNAME = "YiShang YEN-310W 10/100M PCI Fast Ethernet Card Driver Diskette"

YEN310W.DeviceDesc = "YiShang YEN-310W 10/100M PCI Fast Ethernet Card"
YEN310.Service.DispName = "YiShang YEN-310W 10/100M PCI Fast Ethernet Card Windows Driver"

Haven't test though, probably this plugin should do the job,

http://nsis.sourceforge.net/InstDrv_plug-in


Originally posted by Red Wine
Haven't test though, probably this plugin should do the job,

http://nsis.sourceforge.net/InstDrv_plug-in
I have test,but fail.:(


so I Attach file, who can write a script for me.

when i use ExecWait "rundll32.exe advpack.dll,LaunchINFSection $INSTDIR\YEN310.inf,YEN310W.ndi" to do it,this Project will make a mistake . so i don't know how to do it