From: Michael Reim on
Hello

I'm trying to write an inf file for our custom device.
So far I got it working for Windows XP 32 Bit, but it doesn't work for
Windows 7 64 Bit.

If I go to device manager and right click my device, I can install the new
driver without any problems.
But if I right click the inf file and select install, the system tells me
"the inf file you selected does not support this method of installation".
Why?
What is missing in my inf file?
Or how can I find out what is wrong with my inf file?

Please see my inf file below.

TIA
Michael



[Version]

Signature="$Windows NT$"

Class=Ports

ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}

Provider=%ProviderName%

DriverVer=05/21/2010,1.00.0000.2

[Manufacturer]

%ProviderName%=DeviceList, NTamd64

[DestinationDirs]

DefaultDestDir=12

[DriverInstall.nt]

include=mdmcpq.inf

CopyFiles=DriverCopyFiles.nt

AddReg=DriverInstall.nt.AddReg

[DriverCopyFiles.nt]

usbser.sys,,,0x20

[DriverInstall.nt.AddReg]

HKR,,DevLoader,,*ntkern

HKR,,NTMPDriver,,%DRIVERFILENAME%.sys

HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[DriverInstall.nt.Services]

AddService=usbser, 0x00000002, DriverService.nt

[DriverService.nt]

DisplayName=%SERVICE%

ServiceType=1

StartType=3

ErrorControl=1

ServiceBinary=%12%\%DRIVERFILENAME%.sys


[DriverInstall.NTamd64]

include=mdmcpq.inf

CopyFiles=DriverCopyFiles.NTamd64

AddReg=DriverInstall.NTamd64.AddReg

[DriverCopyFiles.NTamd64]

%DRIVERFILENAME%.sys,,,0x20

[DriverInstall.NTamd64.AddReg]

HKR,,DevLoader,,*ntkern

HKR,,NTMPDriver,,%DRIVERFILENAME%.sys

HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[DriverInstall.NTamd64.Services]

AddService=usbser, 0x00000002, DriverService.NTamd64

[DriverService.NTamd64]

DisplayName=%SERVICE%

ServiceType=1

StartType=3

ErrorControl=1

ServiceBinary=%12%\%DRIVERFILENAME%.sys


[SourceDisksFiles]

[SourceDisksNames]

[DeviceList]

%DESCRIPTION%=DriverInstall, USB\VID_15DF&PID_0004

[DeviceList.NTamd64]

%DESCRIPTION%=DriverInstall, USB\VID_15DF&PID_0004


[Strings]

DRIVERFILENAME ="usbser"

ProviderName = "Helmut Fischer GmbH"

DESCRIPTION="USB Driver for Fischer virtual COM port"

SERVICE="USB Driver for Fischer virtual COM port"



--
Michael Reim
Michael DOT Reim AT helmut-fischer DOT de


From: Doron Holan [MSFT] on
you cannot right click install a pnp driver

d

"Michael Reim" wrote in message
news:OQpbJ4$#KHA.4308(a)TK2MSFTNGP04.phx.gbl...

Hello

I'm trying to write an inf file for our custom device.
So far I got it working for Windows XP 32 Bit, but it doesn't work for
Windows 7 64 Bit.

If I go to device manager and right click my device, I can install the new
driver without any problems.
But if I right click the inf file and select install, the system tells me
"the inf file you selected does not support this method of installation".
Why?
What is missing in my inf file?
Or how can I find out what is wrong with my inf file?

Please see my inf file below.

TIA
Michael



[Version]

Signature="$Windows NT$"

Class=Ports

ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}

Provider=%ProviderName%

DriverVer=05/21/2010,1.00.0000.2

[Manufacturer]

%ProviderName%=DeviceList, NTamd64

[DestinationDirs]

DefaultDestDir=12

[DriverInstall.nt]

include=mdmcpq.inf

CopyFiles=DriverCopyFiles.nt

AddReg=DriverInstall.nt.AddReg

[DriverCopyFiles.nt]

usbser.sys,,,0x20

[DriverInstall.nt.AddReg]

HKR,,DevLoader,,*ntkern

HKR,,NTMPDriver,,%DRIVERFILENAME%.sys

HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[DriverInstall.nt.Services]

AddService=usbser, 0x00000002, DriverService.nt

[DriverService.nt]

DisplayName=%SERVICE%

ServiceType=1

StartType=3

ErrorControl=1

ServiceBinary=%12%\%DRIVERFILENAME%.sys


[DriverInstall.NTamd64]

include=mdmcpq.inf

CopyFiles=DriverCopyFiles.NTamd64

AddReg=DriverInstall.NTamd64.AddReg

[DriverCopyFiles.NTamd64]

%DRIVERFILENAME%.sys,,,0x20

[DriverInstall.NTamd64.AddReg]

HKR,,DevLoader,,*ntkern

HKR,,NTMPDriver,,%DRIVERFILENAME%.sys

HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[DriverInstall.NTamd64.Services]

AddService=usbser, 0x00000002, DriverService.NTamd64

[DriverService.NTamd64]

DisplayName=%SERVICE%

ServiceType=1

StartType=3

ErrorControl=1

ServiceBinary=%12%\%DRIVERFILENAME%.sys


[SourceDisksFiles]

[SourceDisksNames]

[DeviceList]

%DESCRIPTION%=DriverInstall, USB\VID_15DF&PID_0004

[DeviceList.NTamd64]

%DESCRIPTION%=DriverInstall, USB\VID_15DF&PID_0004


[Strings]

DRIVERFILENAME ="usbser"

ProviderName = "Helmut Fischer GmbH"

DESCRIPTION="USB Driver for Fischer virtual COM port"

SERVICE="USB Driver for Fischer virtual COM port"



--
Michael Reim
Michael DOT Reim AT helmut-fischer DOT de

From: Michael Reim on
Thank you Doron.

It's sad to have an install menu point that is not working, but now I know
that I don't have to search for bugs in my inf file.


"Doron Holan [MSFT]" <doronh(a)online.microsoft.com> schrieb im Newsbeitrag
news:Otx71yC$KHA.5168(a)TK2MSFTNGP05.phx.gbl...
> you cannot right click install a pnp driver
>
> d
>
> "Michael Reim" wrote in message
> news:OQpbJ4$#KHA.4308(a)TK2MSFTNGP04.phx.gbl...
>
> Hello
>
> I'm trying to write an inf file for our custom device.
> So far I got it working for Windows XP 32 Bit, but it doesn't work for
> Windows 7 64 Bit.
>
> If I go to device manager and right click my device, I can install the new
> driver without any problems.
> But if I right click the inf file and select install, the system tells me
> "the inf file you selected does not support this method of installation".
> Why?
> What is missing in my inf file?
> Or how can I find out what is wrong with my inf file?
>
> Please see my inf file below.
>
> TIA
> Michael
>
>
>
> [Version]
>
> Signature="$Windows NT$"
>
> Class=Ports
>
> ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
>
> Provider=%ProviderName%
>
> DriverVer=05/21/2010,1.00.0000.2
>
> [Manufacturer]
>
> %ProviderName%=DeviceList, NTamd64
>
> [DestinationDirs]
>
> DefaultDestDir=12
>
> [DriverInstall.nt]
>
> include=mdmcpq.inf
>
> CopyFiles=DriverCopyFiles.nt
>
> AddReg=DriverInstall.nt.AddReg
>
> [DriverCopyFiles.nt]
>
> usbser.sys,,,0x20
>
> [DriverInstall.nt.AddReg]
>
> HKR,,DevLoader,,*ntkern
>
> HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
>
> HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
>
> [DriverInstall.nt.Services]
>
> AddService=usbser, 0x00000002, DriverService.nt
>
> [DriverService.nt]
>
> DisplayName=%SERVICE%
>
> ServiceType=1
>
> StartType=3
>
> ErrorControl=1
>
> ServiceBinary=%12%\%DRIVERFILENAME%.sys
>
>
> [DriverInstall.NTamd64]
>
> include=mdmcpq.inf
>
> CopyFiles=DriverCopyFiles.NTamd64
>
> AddReg=DriverInstall.NTamd64.AddReg
>
> [DriverCopyFiles.NTamd64]
>
> %DRIVERFILENAME%.sys,,,0x20
>
> [DriverInstall.NTamd64.AddReg]
>
> HKR,,DevLoader,,*ntkern
>
> HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
>
> HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
>
> [DriverInstall.NTamd64.Services]
>
> AddService=usbser, 0x00000002, DriverService.NTamd64
>
> [DriverService.NTamd64]
>
> DisplayName=%SERVICE%
>
> ServiceType=1
>
> StartType=3
>
> ErrorControl=1
>
> ServiceBinary=%12%\%DRIVERFILENAME%.sys
>
>
> [SourceDisksFiles]
>
> [SourceDisksNames]
>
> [DeviceList]
>
> %DESCRIPTION%=DriverInstall, USB\VID_15DF&PID_0004
>
> [DeviceList.NTamd64]
>
> %DESCRIPTION%=DriverInstall, USB\VID_15DF&PID_0004
>
>
> [Strings]
>
> DRIVERFILENAME ="usbser"
>
> ProviderName = "Helmut Fischer GmbH"
>
> DESCRIPTION="USB Driver for Fischer virtual COM port"
>
> SERVICE="USB Driver for Fischer virtual COM port"
>
>
>
> --
> Michael Reim
> Michael DOT Reim AT helmut-fischer DOT de
>


From: Wilhelm Noeker on
Btw., what Windows was trying to tell you: Right-click "Install"
executes an INF file's [DefaultInstall] section, and you don't have that.

Michael Reim wrote:

> Thank you Doron.
>
> It's sad to have an install menu point that is not working, but now I know
> that I don't have to search for bugs in my inf file.
>
>
> "Doron Holan [MSFT]" <doronh(a)online.microsoft.com> schrieb im Newsbeitrag
> news:Otx71yC$KHA.5168(a)TK2MSFTNGP05.phx.gbl...
>> you cannot right click install a pnp driver
>>
>> d
>>
>> "Michael Reim" wrote in message
>> news:OQpbJ4$#KHA.4308(a)TK2MSFTNGP04.phx.gbl...
>>
>> Hello
>>
>> I'm trying to write an inf file for our custom device.
>> So far I got it working for Windows XP 32 Bit, but it doesn't work for
>> Windows 7 64 Bit.
>>
>> If I go to device manager and right click my device, I can install the new
>> driver without any problems.
>> But if I right click the inf file and select install, the system tells me
>> "the inf file you selected does not support this method of installation".
>> Why?
>> What is missing in my inf file?
>> Or how can I find out what is wrong with my inf file?
>>
>> Please see my inf file below.
>>
>> TIA
>> Michael
>>
>>
>>
>> [Version]
>>
>> Signature="$Windows NT$"
>>
>> Class=Ports
>>
>> ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
>>
>> Provider=%ProviderName%
>>
>> DriverVer=05/21/2010,1.00.0000.2
>>
>> [Manufacturer]
>>
>> %ProviderName%=DeviceList, NTamd64
>>
>> [DestinationDirs]
>>
>> DefaultDestDir=12
>>
>> [DriverInstall.nt]
>>
>> include=mdmcpq.inf
>>
>> CopyFiles=DriverCopyFiles.nt
>>
>> AddReg=DriverInstall.nt.AddReg
>>
>> [DriverCopyFiles.nt]
>>
>> usbser.sys,,,0x20
>>
>> [DriverInstall.nt.AddReg]
>>
>> HKR,,DevLoader,,*ntkern
>>
>> HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
>>
>> HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
>>
>> [DriverInstall.nt.Services]
>>
>> AddService=usbser, 0x00000002, DriverService.nt
>>
>> [DriverService.nt]
>>
>> DisplayName=%SERVICE%
>>
>> ServiceType=1
>>
>> StartType=3
>>
>> ErrorControl=1
>>
>> ServiceBinary=%12%\%DRIVERFILENAME%.sys
>>
>>
>> [DriverInstall.NTamd64]
>>
>> include=mdmcpq.inf
>>
>> CopyFiles=DriverCopyFiles.NTamd64
>>
>> AddReg=DriverInstall.NTamd64.AddReg
>>
>> [DriverCopyFiles.NTamd64]
>>
>> %DRIVERFILENAME%.sys,,,0x20
>>
>> [DriverInstall.NTamd64.AddReg]
>>
>> HKR,,DevLoader,,*ntkern
>>
>> HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
>>
>> HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
>>
>> [DriverInstall.NTamd64.Services]
>>
>> AddService=usbser, 0x00000002, DriverService.NTamd64
>>
>> [DriverService.NTamd64]
>>
>> DisplayName=%SERVICE%
>>
>> ServiceType=1
>>
>> StartType=3
>>
>> ErrorControl=1
>>
>> ServiceBinary=%12%\%DRIVERFILENAME%.sys
>>
>>
>> [SourceDisksFiles]
>>
>> [SourceDisksNames]
>>
>> [DeviceList]
>>
>> %DESCRIPTION%=DriverInstall, USB\VID_15DF&PID_0004
>>
>> [DeviceList.NTamd64]
>>
>> %DESCRIPTION%=DriverInstall, USB\VID_15DF&PID_0004
>>
>>
>> [Strings]
>>
>> DRIVERFILENAME ="usbser"
>>
>> ProviderName = "Helmut Fischer GmbH"
>>
>> DESCRIPTION="USB Driver for Fischer virtual COM port"
>>
>> SERVICE="USB Driver for Fischer virtual COM port"
>>
>>
>>
>> --
>> Michael Reim
>> Michael DOT Reim AT helmut-fischer DOT de
>>
>
>
From: kalbun on
What you are saying does not seem completely correct.
For non-signed drivers you can add the [DefaultInstall] section that allows
you to install from right-click.
Here is what MSDN says
(http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.development.device.drivers&tid=7fda430e-6cca-435f-8e03-397b3ec84026&cat=en_US_f21c06d1-a77b-4ccf-be60-a4f0a7801247&lang=en&cr=US&sloc=&p=1&mid=baafd8ac-857a-4f35-a50e-25f4df97c264)

"Providing a DefaultInstall section is optional. If an INF file does not
include a DDInstall section, selecting "Install" after right-clicking on the
file name causes an error message to be displayed."

On the other hand, it seems that if the driver package is signed you are
obliged NOT to have the DefaultInstall section.

G.

"Doron Holan [MSFT]" wrote:

> you cannot right click install a pnp driver
>
> d