rberk
Posts: 1
Joined: Fri Apr 07, 2006 6:31 am

.inf installer fails

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
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

The problem resides with the way you set up the project. The files of the driver mustn't be copied directly to the system folder. When they are deployed on the disk they must respect a layout that is given by the INF file of the driver.

The INF shows where on the disk the files of the driver are to be installed in order for the DIFx tools to find them.

In your case the INF and the DLL files must be deployed in the same folder on the target machine.

For more details on this topic please see the following following URL location:
http://www.microsoft.com/whdc/driver/in ... Fxtls.mspx

Just download and install the package and you will find a DOC file that explains how to set up a driver installation.

Please let me know if you encounter any more problems.
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”