Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Right Click Install on Windows 7 64 Bit

Reply
Thread Tools Display Modes

Right Click Install on Windows 7 64 Bit

 
 
Michael Reim
Guest
Posts: n/a

 
      05-25-2010
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,SerialPortPropP ageProvider"

[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,SerialPortPropP ageProvider"

[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


 
Reply With Quote
 
 
 
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      05-25-2010
you cannot right click install a pnp driver

d

"Michael Reim" wrote in message
news:OQpbJ4$#...

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,SerialPortPropP ageProvider"

[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,SerialPortPropP ageProvider"

[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

 
Reply With Quote
 
Michael Reim
Guest
Posts: n/a

 
      05-27-2010
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]" <> schrieb im Newsbeitrag
news:Otx71yC$...
> you cannot right click install a pnp driver
>
> d
>
> "Michael Reim" wrote in message
> news:OQpbJ4$#...
>
> 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,SerialPortPropP ageProvider"
>
> [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,SerialPortPropP ageProvider"
>
> [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
>



 
Reply With Quote
 
Wilhelm Noeker
Guest
Posts: n/a

 
      05-27-2010
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]" <> schrieb im Newsbeitrag
> news:Otx71yC$...
>> you cannot right click install a pnp driver
>>
>> d
>>
>> "Michael Reim" wrote in message
>> news:OQpbJ4$#...
>>
>> 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,SerialPortPropP ageProvider"
>>
>> [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,SerialPortPropP ageProvider"
>>
>> [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
>>

>
>

 
Reply With Quote
 
kalbun
Guest
Posts: n/a

 
      06-12-2010
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...e-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


 
Reply With Quote
 
Tim Roberts
Guest
Posts: n/a

 
      06-14-2010
kalbun <> wrote:
>
>What you are saying does not seem completely correct.


No, Don is right.

>For non-signed drivers you can add the [DefaultInstall] section that allows
>you to install from right-click.


Well, I think you have cause and effect backwards.

The [DefaultInstall] thing is nothing more than a poor man's software
installer. It lets you copy files and make registry entries, explicitly.
It does not create a device node, and it has nothing to do with
plug-and-play. So, a [DefaultInstall]-based INF cannot be submitted to
WHQL. A plug-and-play INF must have a DDInstall section that matches a
plug-and-play ID, not [DefaultInstall].

>"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."


That should say "DefaultInstall", not "DDInstall".

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


Sort of. An INF with [DefaultInstall] is not PnP.
--
Tim Roberts,
Providenza & Boekelheide, Inc.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
80073715 Windows Update Error - SOLVED!!!!!! Zaneer Ahamed Windows Update 0 02-27-2010 09:48 AM
How to contact Microsoft C.B. Windows Vista Hardware 23 03-12-2008 02:06 PM
Help! Access Denied Even To The System Owner... AAD213 Windows Vista Administration 16 12-03-2007 11:02 PM
nasty oops Jason Windows Vista Administration 11 09-10-2007 01:16 AM
Vista won't boot, kernal issues Lt. Washburn Windows Vista Installation 3 03-30-2007 01:09 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59