Right Click Install on Inf

I have a simple INF to install a filter driver.
I want to install it by right clicking on the INF file in explorer and clicking Install.
It works in XP and Win7, but not on Vista.

It gives the following error on Vista after showing the UAC prompt -
The INF file you selected does not support this method of installation.

The driver is a 32-bit version and so all tests are done on 32-bit OSs.

The INF file contents are as follows -

[Version]
Signature=$WINDOWS NT$
Provider=%MFGNAME%
DriverVer=02/23/2010,0.1.0.0
;CatalogFile.nt=UltFilt.cat

[DestinationDirs]
DefaultDestDir=10,system32\drivers

[SourceDisksFiles]
UltFlDrv.sys=1

[SourceDisksNames]
1=%INSTDISK%

[DefaultInstall.NT]
CopyFiles=DriverCopyFiles

[DriverCopyFiles]
UltFlDrv.sys,0x60

[DefaultInstall.NT.Services]
AddService=UltFlDrv,UltFiltService

[UltFiltService]
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%10%\system32\drivers\UltFlDrv.sys

[Strings]
MFGNAME=“UltimateFilters”
INSTDISK=“Filter Installer”

Is this a WDF driver? If it is, you will have to install the 1.9 version of
the WdfCoInstaller. Vista is version 1.5. To properly install 1.9 for what
is a non-PNP, and this looks like it is not PNP, you need to look at
src\general\ioctl\nonpnp\exe in the WDK. That application will give you the
basics to install the co-installer.

Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@ushustech.com
Sent: Monday, March 01, 2010 6:33 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Right Click Install on Inf

I have a simple INF to install a filter driver.
I want to install it by right clicking on the INF file in explorer and
clicking Install.
It works in XP and Win7, but not on Vista.

It gives the following error on Vista after showing the UAC prompt -
The INF file you selected does not support this method of installation.

The driver is a 32-bit version and so all tests are done on 32-bit OSs.

The INF file contents are as follows -

[Version]
Signature=$WINDOWS NT$
Provider=%MFGNAME%
DriverVer=02/23/2010,0.1.0.0
;CatalogFile.nt=UltFilt.cat

[DestinationDirs]
DefaultDestDir=10,system32\drivers

[SourceDisksFiles]
UltFlDrv.sys=1

[SourceDisksNames]
1=%INSTDISK%

[DefaultInstall.NT]
CopyFiles=DriverCopyFiles

[DriverCopyFiles]
UltFlDrv.sys,0x60

[DefaultInstall.NT.Services]
AddService=UltFlDrv,UltFiltService

[UltFiltService]
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%10%\system32\drivers\UltFlDrv.sys

[Strings]
MFGNAME=“UltimateFilters”
INSTDISK=“Filter Installer”


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

__________ Information from ESET Smart Security, version of virus signature
database 4905 (20100301) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature
database 4905 (20100301) __________

The message was checked by ESET Smart Security.

http://www.eset.com

This is not a WDF driver.
It’s a WDM driver.

It’s a USB filter driver that is installed as an upper filter for a specific device.
The main use is to send custom data to the control endpoint.
The rest of the stuff are just pass through.

As I said in my original post, it works perfectly on XP and Win7.
It also works on Vista, once I get it installed.

But right clicking on the INF and selecting Install only works in XP and Win7 and not in Vista.
After I manually create the registry entries and reboot my Vista box, it works perfectly.

Then I go back to my original post. Write an install app that allows you to
avoid the failure under Vista, and gives you a consistent install across all
platforms.

Also, it just occurred to me … are you “right clicking” from an elevated
explorer in Vista? In Win7 you can right click Explorer, right click it
again, and select “Run as admin”. In Vista it is not that simple. I elevate
a command line or Powershell window and then launch “explorer” from that
command shell. Once elevated, Explorer does those types of operations
better.

Look at Powershell also. You can write a script that will start/stop, add,
modify, and remove key values all from the command line. I haven’t tried it,
but I do believe you could write the complete install, including creating
the driver service key from within an elevated Powershell. But that is
speculation.

Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@ushustech.com
Sent: Monday, March 01, 2010 10:01 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Right Click Install on Inf

This is not a WDF driver.
It’s a WDM driver.

It’s a USB filter driver that is installed as an upper filter for a specific
device.
The main use is to send custom data to the control endpoint.
The rest of the stuff are just pass through.

As I said in my original post, it works perfectly on XP and Win7.
It also works on Vista, once I get it installed.

But right clicking on the INF and selecting Install only works in XP and
Win7 and not in Vista.
After I manually create the registry entries and reboot my Vista box, it
works perfectly.


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

__________ Information from ESET Smart Security, version of virus signature
database 4905 (20100301) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature
database 4905 (20100301) __________

The message was checked by ESET Smart Security.

http://www.eset.com

> The INF file you selected does not support this method of installation.

Have a look at DPInst from Microsoft:
http://www.microsoft.com/whdc/driver/install/DPInst.mspx

xxxxx@ushustech.com wrote:

This is not a WDF driver.
It’s a WDM driver.

It’s a USB filter driver that is installed as an upper filter for a specific device.
The main use is to send custom data to the control endpoint.
The rest of the stuff are just pass through.

As I said in my original post, it works perfectly on XP and Win7.
It also works on Vista, once I get it installed.

But right clicking on the INF and selecting Install only works in XP and Win7 and not in Vista.
After I manually create the registry entries and reboot my Vista box, it works perfectly.

I’m a little confused by the INF file. All you are doing is creating
the Services entry, something you can do with the “sc” command in a
simple batch file. If you’re going to use an INF, why not create the
UpperFilters line as well? If you have another application to add the
UpperFilters line, why not create the service there? It seems silly to
have to take two steps to install this.


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

Is the file UNICODE?

wrote in message news:xxxxx@ntdev…
>I have a simple INF to install a filter driver.
> I want to install it by right clicking on the INF file in explorer and
> clicking Install.
> It works in XP and Win7, but not on Vista.
>
> It gives the following error on Vista after showing the UAC prompt -
> The INF file you selected does not support this method of installation.
>
> The driver is a 32-bit version and so all tests are done on 32-bit OSs.
>
> The INF file contents are as follows -
>
> [Version]
> Signature=$WINDOWS NT$
> Provider=%MFGNAME%
> DriverVer=02/23/2010,0.1.0.0
> ;CatalogFile.nt=UltFilt.cat
>
> [DestinationDirs]
> DefaultDestDir=10,system32\drivers
>
> [SourceDisksFiles]
> UltFlDrv.sys=1
>
> [SourceDisksNames]
> 1=%INSTDISK%
>
> [DefaultInstall.NT]
> CopyFiles=DriverCopyFiles
>
> [DriverCopyFiles]
> UltFlDrv.sys,0x60
>
> [DefaultInstall.NT.Services]
> AddService=UltFlDrv,UltFiltService
>
> [UltFiltService]
> ServiceType=1
> StartType=3
> ErrorControl=1
> ServiceBinary=%10%\system32\drivers\UltFlDrv.sys
>
> [Strings]
> MFGNAME=“UltimateFilters”
> INSTDISK=“Filter Installer”
>
>

Cannot be done - you have to install it through normal
protocol/client installation procedures - security feature.

On 2/03/2010 4:42 p.m., Alexander Grigoriev wrote: Is the file
UNICODE? wrote in message news:xxxxx@ntdev… I have a simple
INF to install a filter driver. I want to install it by right clicking on
the INF file in explorer and clicking Install. It works in XP and Win7,
but not on Vista. It gives the following error on Vista after showing the
UAC prompt - The INF file you selected does not support this method of
installation. The driver is a 32-bit version and so all tests are done on
32-bit OSs. The INF file contents are as follows - [Version]
Signature=$WINDOWS NT$ Provider=%MFGNAME%
DriverVer=02/23/2010,0.1.0.0 ;CatalogFile.nt=UltFilt.cat
[DestinationDirs] DefaultDestDir=10,system32\drivers [SourceDisksFiles]
UltFlDrv.sys=1 [SourceDisksNames] 1=%INSTDISK% [DefaultInstall.NT]
CopyFiles=DriverCopyFiles [DriverCopyFiles] UltFlDrv.sys,0x60
[DefaultInstall.NT.Services] AddService=UltFlDrv,UltFiltService
[UltFiltService] ServiceType=1 StartType=3 ErrorControl=1
ServiceBinary=%10%\system32\drivers\UltFlDrv.sys [Strings]
MFGNAME=“UltimateFilters” INSTDISK=“Filter Installer” —
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

Got it to work. The problem was in some stupid permission given to the folder in which the INF and driver resided so that it could be shared on the network. It had nothing to do with the INF file. Sorry for the confusion people and thank you all for spending (wasting) time on this. I would however like to address a few queries from you.


Then I go back to my original post. Write an install app that allows you to
avoid the failure under Vista, and gives you a consistent install across all
platforms.

[/quote]


Gary,
The final product will ultimately have an install app as you said. I created the INF just so that I could install and test the driver as it evolves.


If you’re going to use an INF, why not create the
UpperFilters line as well? If you have another application to add the
UpperFilters line, why not create the service there?

[/quote]


Tim,
As I said, the product is not yet ready. Finally it will all become one application. Created the INF as a convenience to install the driver after every build.

Thanks
-Santosh

Alexander Grigoriev wrote:

Is the file UNICODE?

That’s irrelevant.


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

Gene Soudlenkov wrote:

Cannot be done - you have to install it through normal
protocol/client installation procedures - security feature.

Nonsense. The installation procedure for filter drivers has not
changed. Right-click install works just as well as it always has, as
long as you understand its limitations.


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