I have a .inf file for a Video For windows codec.
To Install it manually, I copy the .inf file and the .dll to windows/system32,
copy another .dll it depends on to windows/system32.
Right Click on the .inf and press install. This works well.
If I use an Advanced installer project and put the .inf and the .dlls in windows/system in the target and set a driver pointing to these, the driver installer never runs.
If I put the .inf in Application files and the .dlls in system32, the driver installer runs but it does not properly register the controls.
The .inf does have actions to copy the files to the system directory built in (Destination Dir = 11)
If I copy all this stuff to win/sys32 and rundll.exe myinf.inf it works fine from a .bat file.
I cannot figure if the installer is puking on the .inf trying to copy a file over itself, or if it is not copying the .dlls it depends on before trying to run the .inf installer or what ?????
I really like your program, and would like to buy it and use it if I could get this to work....
; MLDB Video Codec install
[Version]
Signature = "$CHICAGO$"
Class = MEDIA
[SourceDisksNames]
1="MLDB Video Codec Install Disk",, 0001
[SourceDisksFiles]
VFWDriverMLDB.dll=1
VFWDriverMLDB.inf=1
[Installable.Drivers]
MLDB = 1:VFWDriverMLDB.dll, "vidc.MLDB", "MLDB Video Codec 1.0.0.4" , , ,
[DefaultInstall]
CopyFiles=MLDBDRV.Copy.Inf,MLDBDRV.Copy
Updateinis = MLDBDRV.Updateini
DelReg = MLDBDRV.DelConfig
addreg = MLDBDRV.AddReg,MLDBDRV.AddReg9x,MLDBDRV.DoReg
MediaType = SOFTWARE
[DefaultInstall.ntx86]
CopyFiles=MLDBDRV.Copy.Inf,MLDBDRV.Copy
DelReg = MLDBDRV.DelConfig
addreg = MLDBDRV.AddReg,MLDBDRV.AddRegNT
MediaType = SOFTWARE
[Remove_MLDB]
DelReg = MLDBDRV.DelReg
DelFiles = MLDBDRV.Copy,MLDBDRV.Copy.Inf
UpdateInis = MLDBDRV.DelIni
[MLDBDRV.Copy]
VFWDriverMLDB.dll
[MLDBDRV.Copy.Inf]
VFWDriverMLDB.inf
[MLDBDRV.UpdateIni]
system.ini, drivers32,,"vidc.MLDB=VFWDriverMLDB.dll"
[MLDBDRV.DelIni]
system.ini, drivers32,"vidc.MLDB=VFWDriverMLDB.dll",
[MLDBDRV.AddReg]
[MLDBDRV.AddReg9x]
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.MLDB,Description,,%CodecName%
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.MLDB,Driver,,VFWDriverMLDB.dll
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.MLDB,FriendlyName,,"MLDB Codec"
HKLM,%UnInstallPath%,DisplayName,,%CodecName%
[MLDBDRV.AddRegNT]
HKLM,SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc,VFWDriverMLDB.dll,,%CodecName%
HKLM,SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers32,vidc.MLDB,,VFWDriverMLDB.dll
HKLM,%UnInstallPath%,DisplayName,,%CodecName%
HKLM,%UnInstallPath%,DisplayIcon,,"%11%\VFWDriverMLDB.dll,0"
HKLM,%UnInstallPath%,Publisher,,%mfgname%
HKLM,%UnInstallPath%,HelpLink,,%Website%
HKLM,%UnInstallPath%,NoModify,%REG_DWORD%,1
HKLM,%UnInstallPath%,NoRepair,%REG_DWORD%,1
[MLDBDRV.DelReg]
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.MLDB
HKLM,SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc,VFWDriverMLDB.dll,,""
HKLM,%UnInstallPath%
[DestinationDirs]
DefaultDestDir = 11 ; LDID_SYS
MLDBDRV.Copy = 11
MLDBDRV.Copy.Inf = 17
[Strings]
CodecName="MLDB Video Codec"
InfFile="VFWDriverMLDB.inf"
UnInstallPath="Software\Microsoft\Windows\CurrentVersion\Uninstall\mldb"
MediaClassName="Media Devices"
REG_DWORD=0x00010001