Hi Tim Roberts,
Thank you very much for your support.
Now it is copying file but i need to copy SYS and DLL files for both 2003 and 2008 in different location.
At the time 2008 OS installation it is taking always 2003 folder SYS and DLL files.
how to differentiate 2003 and 2008 [SourceDisksNames] for 2003 [SourceDisksNames.x86] and 2008 [SourceDisksNames.???].
Is there any other way to differentiate please help me.
Here with i added entire INF File:
[Version]
Signature = “$Windows NT$”
Class = NetTrans
ClassGUID = {4D36E975-E325-11CE-BFC1-08002BE10318}
Provider = %mux%
DriverVer = 05/25/2009,1.0.0.5
;Manufacturer section:
[Manufacturer]
%mux% = mux,NTx86,NTx86.6.0,NTamd64,NTamd64.6.0
;For XP and later
[mux.NTx86]
%MVlanP_Desc% = MVlanP.NTx86, mux_mvlanp
[mux.NTx86.6.0]
%MVlanP_Desc% = MVlanP.NTx86.6.0, mux_mvlanp
[mux.NTamd64]
%MVlanP_Desc% = MVlanP.NTamd64, mux_mvlanp
[mux.NTamd64.6.0]
%MVlanP_Desc% = MVlanP.NTamd64.6.0, mux_mvlanp
; Note:
; 1. The NCF_* flags are defined in netcfgx.h
; 2. NCF_HAS_UI (0x80) is required for custom property pages.
;
;Copying files and adding registry for NTx86
;-------------------------------------------------------------------
[MVlanP.NTx86]
AddReg = MVlanP.ndi.AddReg
Characteristics = 0x80 ; NCF_HAS_UI
copyfiles = MVlanP.CopyFiles.DLL, MVlanP.CopyFiles.sys
CopyInf = MVlanMP.inf
[SourceDisksNames.x86]
1 = %DiskDescription%,\W2k3\x86
[SourceDisksFiles.x86]
MVlan.sys = 1
MVlan.dll = 1
;--------------------------------------------------------------------
;Copying files and adding registry for NTx86.6.0
;--------------------------------------------------------------------
[MVlanP.NTx86.6.0]
AddReg = MVlanP.ndi.AddReg
Characteristics = 0x80 ; NCF_HAS_UI
copyfiles = MVlanP.CopyFiles.DLL, MVlanP.CopyFiles.sys
CopyInf = MVlanMP.inf
[SourceDisksNames.x86.6.0]
1= %DiskDescription%,\W2K8\x86
[SourceDisksFiles.x86.6.0]
MVlan.sys = 1
MVlan.dll = 1
;---------------------------------------------------------------------
;Copying files and adding registry for NTamd64
;---------------------------------------------------------------------
[MVlanP.NTamd64]
AddReg = MVlanP.ndi.AddReg
Characteristics = 0x80 ; NCF_HAS_UI
copyfiles = MVlanP.CopyFiles.DLL, MVlanP.CopyFiles.sys
CopyInf = MVlanMP.inf
[SourceDisksNames.amd64]
1=%DiskDescription%,\W2K3\x64
[SourceDisksFiles.amd64]
MVlan.sys = 1
MVlan.dll = 1
;--------------------------------------------------------------------
;Copying files and adding registry for NTamd64.6.0
;--------------------------------------------------------------------
[MVlanP.NTamd64.6.0]
AddReg = MVlanP.ndi.AddReg
Characteristics = 0x80 ; NCF_HAS_UI
copyfiles = MVlanP.CopyFiles.DLL, MVlanP.CopyFiles.sys
CopyInf = MVlanMP.inf
[SourceDisksNames.amd64.6.0]
1= %DiskDescription%,\W2K8\x64
[SourceDisksFiles.amd64.6.0]
MVlan.sys = 1
MVlan.dll = 1
;---------------------------------------------------------------------
[DestinationDirs]
DefaultDestDir = 12
MVlanP.CopyFiles.DLL = 11 ; %windir%\System32
MVlanP.CopyFiles.Sys = 12 ; %windir%\System32\drivers
[MVlanP.CopyFiles.Sys]
MVlan.sys,2
[MVlanP.CopyFiles.DLL]
MVlan.dll,2
;---------------------------------------------------------------------
; Install parameters
;---------------------------------------------------------------------
;Install parameters for all platforms
;---------------------------------------------------------------------
[MVlanP.ndi.AddReg]
HKR, Ndi, ClsID, 0, {96802279-34a5-4d62-9545-2757f7f4e4e7}
HKR, Ndi, ComponentDll, , MVlan.dll
HKR, Ndi, HelpText, 0, “%MVlanP_HELP%”
HKR, Ndi, Service, 0, “mvlanp”
HKR, Ndi\Interfaces, UpperRange, 0, “noupper”
HKR, Ndi\Interfaces, LowerRange, 0, “ndis5”
[MVlanP.ndi.Services]
AddService = MVlanP, , MVlanP.AddService, MVlanP.AddEventLog
;----------------------------------------------------------------------
[MVlanP.AddService]
DisplayName = %MVlanP_Desc%
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\MVlan.sys
Description = %MVlanP_Desc%
[MVlanP.AddEventLog]
AddReg = MVlanP.AddEventLog.AddReg
[MVlanP.AddEventLog.AddReg]
HKR, , EventMessageFile, 0x20000, “%%SystemRoot%%\System32\netevent.dll”
HKR, , TypesSupported, 0x10001, 7
;-----------------------------------------------------------------------
; Removing services
;-----------------------------------------------------------------------
;Removing services and files for all platform
;-----------------------------------------------------------------------
[MVlanP.ndi.Remove.Services]
DelService = MVlanP
[MVlanP.ndi.Remove]
DelFiles = MVlanP.CopyFiles.DLL, MVlanP.CopyFiles.sys
once again Thanks Roberts,
Suresh.S