Problem while installing the driver
Hi all,
I have an NSIS installer for installing the driver. In the installer, first of all I am copying all the driver files i.e. '.inf' and '.sys' files in "$WINDIR\System32\driver" after that I have called setupapi.dll and passing the driver's .inf file from the location to which I copied before.[$WINDIR\System32\driver] The setupapi.dll delets the passed .inf file and creates its own defined oem*.inf file inside "$WINDIR\inf" folder.
When the installer runs it needs the corresponding .sys file.
I have located the .sys file to be taken from the Install directory thru the [SourceDiskNames] and [SourceFilesNames]sections of the .inf file. But the installer fails to locate the .sys and prompts for the path everytime. What could be wrong?
I have an Installshield script that works without asking for the .sys file with same .inf file settings.
Can anyone tell me what may be wrong or point me to any driver NSIS-installer example.
Kind Regards.
Venu.