Printer driver installation problems

Hello

I have a problem with installation of my printer driver on Windows7/32b
It worked OK on XP 32b. I’ve built it with WDK 7600.16385.1.
Driver is not signed, and installer shows appropriate warning. Then it
shows error message box:
“Unable to install printer. Windows cannot locate a suitable printer
driver. Contact your administrator for help locating and installing a
suitable driver.”

MSPLOT WDK sample has similar problem. I have built it, and tried to
install, and got error like
“…driver can not be installed. Error code 0x0000002” (unfortunately,
don’t remember error text exactly)

Are there any significant changes in 7, that can cause such trouble?
How to make it working?

Nikolay

How about posting the .INF file?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Nikolay
Sent: Thursday, February 10, 2011 12:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Printer driver installation problems

Hello

I have a problem with installation of my printer driver on Windows7/32b
It worked OK on XP 32b. I’ve built it with WDK 7600.16385.1.
Driver is not signed, and installer shows appropriate warning. Then it
shows error message box:
“Unable to install printer. Windows cannot locate a suitable printer
driver. Contact your administrator for help locating and installing a
suitable driver.”

MSPLOT WDK sample has similar problem. I have built it, and tried to
install, and got error like
“…driver can not be installed. Error code 0x0000002” (unfortunately,
don’t remember error text exactly)

Are there any significant changes in 7, that can cause such trouble?
How to make it working?

Nikolay


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

Here is INF file

[Version]
Signature=“$Windows NT$”
Provider=“My Company”
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
DriverVer=02/08/2011, 2.1.9.135

[DestinationDirs]
DefaultDestDir=66000

; Here we name the source disk with less than 11 characters.
[SourceDisksNames]
1 = “MyPrnDrv disk”

; Here we enumerate the files on source disk by telling what ordinal
(index) number of
; the installation disk set a certain file exists on.

[SourceDisksFiles]
MyPrnDrv.DLL = 1
MyPrnDrvUI.DLL = 1

; Manufacturer Specification Section
[Manufacturer]
“My Company”=MyCompany

; Model Specifications Section
[MyCompany]
“My Print Driver” = MyPrnDrvUI.DLL

; Copy File Data
[MyPrnDrvUI.DLL]
CopyFiles=@MyPrnDrvUI.DLL,MyPrnDrvRV
DataSection=MyPrnDrv_DATA

; Driver files.
[MyPrnDrvRV]
MyPrnDrv.DLL
MyPrnDrvUI.DLL

; Data Section
[MyPrnDrv_DATA]
DriverFile=MyPrnDrv.DLL
ConfigFile=MyPrnDrvUI.DLL

[SourceDisksNames]
1=%Disk1%,“”

; Localizable Strings
[Strings]
Disk1=“MyPrnDrv Setup Disk”

On 10.02.2011 21:41, Robins, Scott wrote:

How about posting the .INF file?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Nikolay
Sent: Thursday, February 10, 2011 12:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Printer driver installation problems

Hello

I have a problem with installation of my printer driver on Windows7/32b
It worked OK on XP 32b. I’ve built it with WDK 7600.16385.1.
Driver is not signed, and installer shows appropriate warning. Then it
shows error message box:
“Unable to install printer. Windows cannot locate a suitable printer
driver. Contact your administrator for help locating and installing a
suitable driver.”

MSPLOT WDK sample has similar problem. I have built it, and tried to
install, and got error like
“…driver can not be installed. Error code 0x0000002” (unfortunately,
don’t remember error text exactly)

Are there any significant changes in 7, that can cause such trouble?
How to make it working?

Nikolay


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

You have 2 [SourceDisksNames] sections

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-440716-
xxxxx@lists.osr.com] On Behalf Of Nikolay
Sent: Friday, February 11, 2011 9:28 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Printer driver installation problems

Here is INF file

[Version]
Signature=“$Windows NT$”
Provider=“My Company”
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
DriverVer=02/08/2011, 2.1.9.135

[DestinationDirs]
DefaultDestDir=66000

; Here we name the source disk with less than 11 characters.
[SourceDisksNames]
1 = “MyPrnDrv disk”

; Here we enumerate the files on source disk by telling what ordinal
(index) number of
; the installation disk set a certain file exists on.

[SourceDisksFiles]
MyPrnDrv.DLL = 1
MyPrnDrvUI.DLL = 1

; Manufacturer Specification Section
[Manufacturer]
“My Company”=MyCompany

; Model Specifications Section
[MyCompany]
“My Print Driver” = MyPrnDrvUI.DLL

; Copy File Data
[MyPrnDrvUI.DLL]
CopyFiles=@MyPrnDrvUI.DLL,MyPrnDrvRV
DataSection=MyPrnDrv_DATA

; Driver files.
[MyPrnDrvRV]
MyPrnDrv.DLL
MyPrnDrvUI.DLL

; Data Section
[MyPrnDrv_DATA]
DriverFile=MyPrnDrv.DLL
ConfigFile=MyPrnDrvUI.DLL

[SourceDisksNames]
1=%Disk1%,“”

; Localizable Strings
[Strings]
Disk1=“MyPrnDrv Setup Disk”

On 10.02.2011 21:41, Robins, Scott wrote:
> How about posting the .INF file?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Nikolay
> Sent: Thursday, February 10, 2011 12:58 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Printer driver installation problems
>
> Hello
>
> I have a problem with installation of my printer driver on
Windows7/32b
> It worked OK on XP 32b. I’ve built it with WDK 7600.16385.1.
> Driver is not signed, and installer shows appropriate warning. Then
it
> shows error message box:
> “Unable to install printer. Windows cannot locate a suitable printer
> driver. Contact your administrator for help locating and installing
a
> suitable driver.”
>
> MSPLOT WDK sample has similar problem. I have built it, and tried to
> install, and got error like
> “…driver can not be installed. Error code 0x0000002”
(unfortunately,
> don’t remember error text exactly)
>
> Are there any significant changes in 7, that can cause such trouble?
> How to make it working?
>
> Nikolay
>
> —
> 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

Just tried this INF - the same error

[Version]
Signature=“$Windows NT$”
Provider=“My Company”
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
DriverVer=02/08/2011, 2.1.11.138

[DestinationDirs]
DefaultDestDir=66000

; Here we name the source disk with less than 11 characters.
[SourceDisksNames]
1 = “MyPrnDrv disk”

; Here we enumerate the files on source disk by telling what ordinal
(index) number of
; the installation disk set a certain file exists on.

[SourceDisksFiles]
MyPrnDrv.DLL = 1
MyPrnDrvUI.DLL = 1

; Manufacturer Specification Section
[Manufacturer]
“My Company”=MyCompany

; Model Specifications Section
[MyCompany]
“My Print Driver” = MyPrnDrvUI.DLL

; Copy File Data
[MyPrnDrvUI.DLL]
CopyFiles=@MyPrnDrvUI.DLL,MyPrnDrvRV
DataSection=MyPrnDrv_DATA

; Driver files.
[MyPrnDrvRV]
MyPrnDrv.DLL
MyPrnDrvUI.DLL

; Data Section
[MyPrnDrv_DATA]
DriverFile=MyPrnDrv.DLL
ConfigFile=MyPrnDrvUI.DLL

; Localizable Strings
[Strings]

On 11.02.2011 12:03, Christoph Lindemann wrote:

You have 2 [SourceDisksNames] sections

> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:bounce-440716-
> xxxxx@lists.osr.com] On Behalf Of Nikolay
> Sent: Friday, February 11, 2011 9:28 AM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] Printer driver installation problems
>
> Here is INF file
>
> [Version]
> Signature=“$Windows NT$”
> Provider=“My Company”
> ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
> Class=Printer
> DriverVer=02/08/2011, 2.1.9.135
>
> [DestinationDirs]
> DefaultDestDir=66000
>
> ; Here we name the source disk with less than 11 characters.
> [SourceDisksNames]
> 1 = “MyPrnDrv disk”
>
> ; Here we enumerate the files on source disk by telling what ordinal
> (index) number of
> ; the installation disk set a certain file exists on.
>
> [SourceDisksFiles]
> MyPrnDrv.DLL = 1
> MyPrnDrvUI.DLL = 1
>
> ; Manufacturer Specification Section
> [Manufacturer]
> “My Company”=MyCompany
>
> ; Model Specifications Section
> [MyCompany]
> “My Print Driver” = MyPrnDrvUI.DLL
>
> ; Copy File Data
> [MyPrnDrvUI.DLL]
> CopyFiles=@MyPrnDrvUI.DLL,MyPrnDrvRV
> DataSection=MyPrnDrv_DATA
>
> ; Driver files.
> [MyPrnDrvRV]
> MyPrnDrv.DLL
> MyPrnDrvUI.DLL
>
> ; Data Section
> [MyPrnDrv_DATA]
> DriverFile=MyPrnDrv.DLL
> ConfigFile=MyPrnDrvUI.DLL
>
> [SourceDisksNames]
> 1=%Disk1%,“”
>
> ; Localizable Strings
> [Strings]
> Disk1=“MyPrnDrv Setup Disk”
>
>
> On 10.02.2011 21:41, Robins, Scott wrote:
>> How about posting the .INF file?
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Nikolay
>> Sent: Thursday, February 10, 2011 12:58 PM
>> To: Windows System Software Devs Interest List
>> Subject: [ntdev] Printer driver installation problems
>>
>> Hello
>>
>> I have a problem with installation of my printer driver on
Windows7/32b
>> It worked OK on XP 32b. I’ve built it with WDK 7600.16385.1.
>> Driver is not signed, and installer shows appropriate warning. Then
it
>> shows error message box:
>> “Unable to install printer. Windows cannot locate a suitable printer
>> driver. Contact your administrator for help locating and installing
a
>> suitable driver.”
>>
>> MSPLOT WDK sample has similar problem. I have built it, and tried to
>> install, and got error like
>> “…driver can not be installed. Error code 0x0000002”
(unfortunately,
>> don’t remember error text exactly)
>>
>> Are there any significant changes in 7, that can cause such trouble?
>> How to make it working?
>>
>> Nikolay
>>
>> —
>> 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

Nikolay wrote:

Just tried this INF - the same error

; Manufacturer Specification Section
[Manufacturer]
“My Company”=MyCompany

; Model Specifications Section
[MyCompany]
“My Print Driver” = MyPrnDrvUI.DLL

You aren’t specifying any PnP hardware IDs here. How is that supposed
to work? Or are there aspects of printer INFs that I do not appreciate?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Tim, you are almost right.
You can specify an empty pnp id, for virtual printers, like the xps document writer, but you should specify compatible id:

[MyCompany]
“My Print Driver” = MyPrnDrvUI.DLL,my_print_driver

Nikolai: I suggest you have a look at the plotter inf from the DDK, and read the printer installation part of the DDK docs.

/Christoph

On 11/02/2011, at 19.49, “Tim Roberts” wrote:

> Nikolay wrote:
>> Just tried this INF - the same error
>> …
>>
>> ; Manufacturer Specification Section
>> [Manufacturer]
>> “My Company”=MyCompany
>>
>> ; Model Specifications Section
>> [MyCompany]
>> “My Print Driver” = MyPrnDrvUI.DLL
>
> You aren’t specifying any PnP hardware IDs here. How is that supposed
> to work? Or are there aspects of printer INFs that I do not appreciate?
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> 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

Nikolai, you are also missing values in the data section, and copying the myprnui.dll twice (in CopyFiles and the copyfiles section)

Have you compiled you driver as a version 3 user mode driver?

Windows 7 is much more strict then XP. Check the requirements from the DDK. Chances are that your driver worked with XP, because XP did not enforce the requirements.

On Windows 7, have you actually checked the eventlog for the spooler? It might actually tell you why the driver was not accepted, with all the specifics.

/christoph

On 11/02/2011, at 20.04, “Christoph Lindemann” wrote:

> Tim, you are almost right.
> You can specify an empty pnp id, for virtual printers, like the xps document writer, but you should specify compatible id:
>
> [MyCompany]
> “My Print Driver” = MyPrnDrvUI.DLL,my_print_driver
>
> Nikolai: I suggest you have a look at the plotter inf from the DDK, and read the printer installation part of the DDK docs.
>
> /Christoph
>
> On 11/02/2011, at 19.49, “Tim Roberts” wrote:
>
>> Nikolay wrote:
>>> Just tried this INF - the same error
>>> …
>>>
>>> ; Manufacturer Specification Section
>>> [Manufacturer]
>>> “My Company”=MyCompany
>>>
>>> ; Model Specifications Section
>>> [MyCompany]
>>> “My Print Driver” = MyPrnDrvUI.DLL
>>
>> You aren’t specifying any PnP hardware IDs here. How is that supposed
>> to work? Or are there aspects of printer INFs that I do not appreciate?
>>
>> –
>> Tim Roberts, xxxxx@probo.com
>> Providenza & Boekelheide, Inc.
>>
>>
>> —
>> 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

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

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

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”, “© 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”, “© 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
>

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

And your FILESUBTYPE should be VFT2_DRV_VERSIONED_PRINTER. Check out
pdrvver.h

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-440991-
xxxxx@lists.osr.com] On Behalf Of Nikolay
Sent: Monday, February 14, 2011 1:51 PM
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

Changes in Version resource solved a problem. It is installable now.
Thanks a lot!!!

On 14.02.2011 18:41, Christoph Lindemann wrote:

And your FILESUBTYPE should be VFT2_DRV_VERSIONED_PRINTER. Check out
pdrvver.h

> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:bounce-440991-
> xxxxx@lists.osr.com] On Behalf Of Nikolay
> Sent: Monday, February 14, 2011 1:51 PM
> 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
>