That’s your problem, the version number is incorrect. FILEVERSION for
rendering DLLs have to be 0,3,xxx.
http://msdn.microsoft.com/en-us/library/ff561054(VS.85).aspx
ScottR
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Nikolay
Sent: Monday, February 14, 2011 7:51 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Printer driver installation problems
I checked EventViewer - nothing interesting.
Set the most verbose mode for setupapi.app.log and setupapi.dev.log, and
they show nothing strange.
Below is INF file and piece of RC with Version
Am I miss something?
[Version]
Signature=“$Windows NT$”
Provider=“My Company”
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
DriverVer=02/08/2011, 2.1.16.146
[DestinationDirs]
DefaultDestDir=66000
[Manufacturer]
“My Company”=MyCompany
[MyCompany]
“My Print Driver” = MyPrnDrvUI.DLL,my_print_driver
[MyPrnDrvUI.DLL]
CopyFiles=@MyPrnDrvUI.DLL,MyPrnDrvRV
DataSection=MyPrnDrv_DATA
[MyPrnDrvRV]
MyPrnDrv.DLL
MyPrnDrvUI.DLL
[MyPrnDrv_DATA]
DriverFile=MyPrnDrv.DLL
ConfigFile=MyPrnDrvUI.DLL
[SourceDisksNames]
1 = “MyPrnDrv disk”
[SourceDisksFiles]
MyPrnDrv.DLL = 1
MyPrnDrvUI.DLL = 1
[Strings]
VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,1,16,146
PRODUCTVERSION 6,1,7600,16385
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x9L
#else
FILEFLAGS 0x8L
#endif
FILEOS 0x40004L
FILETYPE 0x2L
FILESUBTYPE 0x1L
BEGIN
BLOCK “StringFileInfo”
BEGIN
BLOCK “040904b0”
BEGIN
VALUE “CompanyName”, “My Company”
VALUE “FileDescription”, “Print Driver DLL”
VALUE “FileVersion”, “2.1.16.146”
VALUE “InternalName”, “MyPrnDrv.DLLL”
VALUE “LegalCopyright”, “(c) 2011 My Company, Inc”
VALUE “OriginalFilename”, “MyPrnDrv.DLL”
VALUE “ProductName”, “My Print Driver for Windows 7”
VALUE “ProductVersion”, “6.1.7600.16385”
END
END
BLOCK “VarFileInfo”
BEGIN
VALUE “Translation”, 0x409, 1200
END
END
VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,1,16,146
PRODUCTVERSION 6,1,7600,16385
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK “StringFileInfo”
BEGIN
BLOCK “040904b0”
BEGIN
VALUE “CompanyName”, “My Company”
VALUE “FileDescription”, "User Interface DLL for My Print
Driver "
VALUE “FileVersion”, “2.1.16.146”
VALUE “InternalName”, “MyPrnDrvUI.DLL”
VALUE “LegalCopyright”, “(c) 2011 My Company, Inc”
VALUE “OriginalFilename”, “MyPrnDrvUI.DLL”
VALUE “ProductName”, “My Print Driver for Windows 7”
VALUE “ProductVersion”, “6.1.7600.16385”
END
END
BLOCK “VarFileInfo”
BEGIN
VALUE “Translation”, 0x409, 1200
END
END
On 12.02.2011 22:19, Christoph Lindemann wrote:
And a correct version info resource? They are special for printer
drivers.
Maybe post your version info rc here
On 12/02/2011, at 09.55, “xxxxx@pisem.net” wrote:
>
>> Thanks a lot!
>> Yes, it is virtual printer driver like XPS-Writer.
>> I will your suggestions about INF
>>
>> Christoph,
>> I already tried with plotter sample, and it shows similar error on
Win7.
>>> Have you compiled you driver as a version 3 user mode driver?
>> I compiled it as regular DLL : TARGETTYPE=DYNLINK
>>
>>
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
>
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer