FS Filter install

Hello.
I have a specific problem regarding installation of FS Filter: after successful installation on Win2003 OS gives me pop-up window to reboot the system even if reboot is not needed.
I install this filter driver as:

rundll32.exe setupapi,InstallHinfSection DefaultInstall 128 .\filter.inf

I have been read in documentation that 128 mean no reboot at all but on Win2003 this option doesn’t work.
Also, on Win2000 this option do not influence OS for reboot (I try all 5 options) - the system do not show me pop-up windows for reboot.

Can anybody help me to set installation NOT to reboot the system on Win2003 server, please?

The contents of .inf file is:
[Version]
signature = “$Windows NT$”
Class = “HSMFilter” ;This is determined by the work this filter driver does
;;ClassGuid = {2F0EA340-F772-4a83-9014-20C66C336CA6} ;This value is determined by the Class
Provider = %Provider%
DriverVer = 02/28/2003,1.0.0.1
CatalogFile = hsmfs.cat ; A CatalogFile entry is required for a WHQL signature.
; The actual catalog file will be provided by WHQL. The
; catalog file for this sample is not provided for use.
[DestinationDirs]
DefaultDestDir = 12
hsmfs.DriverFiles = 12 ;%windir%\system32\drivers

[SourceDisksNames]
1 = %Disk1%

[SourceDisksFiles]
hsmfs.sys = 1

;;
;; Default install sections
;;

[DefaultInstall]
OptionDesc = %hsmfsServiceDesc%
CopyFiles = hsmfs.DriverFiles

[DefaultInstall.Services]
AddService = %hsmfsServiceName%,hsmfs.Service
AddReg = hsmfs.AddRegistry

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = hsmfs.DriverFiles
DelReg = hsmfs.DelRegistry

[DefaultUninstall.Services]
DelService = hsmfs,0x200 ; Flags note to stop service first

;
; Services Section
;

[hsmfs.Service]
DisplayName = %hsmfsServiceName%
Description = %hsmfsServiceDesc%
ServiceBinary = %12%\hsmfs.sys ;%windir%\system32\drivers\hsmfs.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 0 ;SERVICE_BOOT_START=0x0 SERVICE_DEMAND_START=0x3
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter HSM”
AddReg = hsmfs.AddRegistry

;
; Registry Modifications
;

[hsmfs.AddRegistry]
HKLM,%hsmfsRegistry%“\Parameters”,%hsmfsFileSystem%,0x00010000,“\FileSystem\Ntfs;”

[hsmfs.DelRegistry]
HKLM,%hsmfsRegistry%“\Parameters”

;
; Copy Files
;

[hsmfs.DriverFiles]
hsmfs.sys

;;
;; String Section
;;

[Strings]
hsmfsServiceDesc = “FS Filter Driver”
hsmfsServiceName = “hsmfs”
hsmfsRegistry = “system\currentcontrolset\services\hsmfs”
hsmfsFileSystem = “FileSystem”
Disk1 = “hsmfs Source Media”

Thanks in advance.

Regards
Andrej


Get your free email from http://www.boardermail.com

Powered by Outblaze

Only FltMgr-based FS filters can be installed without reboot.
Plain old FS filters - cannot.

Also - why ever use INF file to install FS filter? Bad idea. Why not just
call CreateService for it? Any installer like InstallShield can do
CreateService.

INFs are for PnP and network stuff only.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Andrej Andrej”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, December 09, 2004 3:05 PM
Subject: [ntfsd] FS Filter install

Hello.
I have a specific problem regarding installation of FS Filter: after successful
installation on Win2003 OS gives me pop-up window to reboot the system even if
reboot is not needed.
I install this filter driver as:

rundll32.exe setupapi,InstallHinfSection DefaultInstall 128 .\filter.inf

I have been read in documentation that 128 mean no reboot at all but on Win2003
this option doesn’t work.
Also, on Win2000 this option do not influence OS for reboot (I try all 5
options) - the system do not show me pop-up windows for reboot.

Can anybody help me to set installation NOT to reboot the system on Win2003
server, please?

The contents of .inf file is:
[Version]
signature = “$Windows NT$”
Class = “HSMFilter” ;This is determined by the work this filter
driver does
;;ClassGuid = {2F0EA340-F772-4a83-9014-20C66C336CA6} ;This value is
determined by the Class
Provider = %Provider%
DriverVer = 02/28/2003,1.0.0.1
CatalogFile = hsmfs.cat ; A CatalogFile entry is required
for a WHQL signature.
; The actual catalog file will be
provided by WHQL. The
; catalog file for this sample is
not provided for use.
[DestinationDirs]
DefaultDestDir = 12
hsmfs.DriverFiles = 12 ;%windir%\system32\drivers

[SourceDisksNames]
1 = %Disk1%

[SourceDisksFiles]
hsmfs.sys = 1

;;
;; Default install sections
;;

[DefaultInstall]
OptionDesc = %hsmfsServiceDesc%
CopyFiles = hsmfs.DriverFiles

[DefaultInstall.Services]
AddService = %hsmfsServiceName%,hsmfs.Service
AddReg = hsmfs.AddRegistry

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = hsmfs.DriverFiles
DelReg = hsmfs.DelRegistry

[DefaultUninstall.Services]
DelService = hsmfs,0x200 ; Flags note to stop service first

;
; Services Section
;

[hsmfs.Service]
DisplayName = %hsmfsServiceName%
Description = %hsmfsServiceDesc%
ServiceBinary = %12%\hsmfs.sys ;%windir%\system32\drivers\hsmfs.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 0 ;SERVICE_BOOT_START=0x0 SERVICE_DEMAND_START=0x3
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter HSM”
AddReg = hsmfs.AddRegistry

;
; Registry Modifications
;

[hsmfs.AddRegistry]
HKLM,%hsmfsRegistry%“\Parameters”,%hsmfsFileSystem%,0x00010000,“\FileSystem\Ntf
s;”

[hsmfs.DelRegistry]
HKLM,%hsmfsRegistry%“\Parameters”

;
; Copy Files
;

[hsmfs.DriverFiles]
hsmfs.sys

;;
;; String Section
;;

[Strings]
hsmfsServiceDesc = “FS Filter Driver”
hsmfsServiceName = “hsmfs”
hsmfsRegistry = “system\currentcontrolset\services\hsmfs”
hsmfsFileSystem = “FileSystem”
Disk1 = “hsmfs Source Media”

Thanks in advance.

Regards
Andrej


_______________________________________________
Get your free email from http://www.boardermail.com

Powered by Outblaze


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Huh?? I thought it was well-documented that driver installations (including
FltMgr-based filters) *require* an INF file.

For example, the DIFxApp installation mechanism uses the
DefaultInstall.Services sections in the driver’s INF file to install the
driver and the service. AFAIK, that’s the currently recommended way to
install drivers, including FS Filters.

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Thursday, December 09, 2004 7:16 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] FS Filter install

Only FltMgr-based FS filters can be installed without reboot.
Plain old FS filters - cannot.

Also - why ever use INF file to install FS filter? Bad idea. Why not
just
call CreateService for it? Any installer like InstallShield can do
CreateService.

INFs are for PnP and network stuff only.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Andrej Andrej”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, December 09, 2004 3:05 PM
Subject: [ntfsd] FS Filter install

Hello.
I have a specific problem regarding installation of FS Filter: after
successful
installation on Win2003 OS gives me pop-up window to reboot the system even
if
reboot is not needed.
I install this filter driver as:

rundll32.exe setupapi,InstallHinfSection DefaultInstall 128 .\filter.inf

I have been read in documentation that 128 mean no reboot at all but on
Win2003
this option doesn’t work.
Also, on Win2000 this option do not influence OS for reboot (I try all 5
options) - the system do not show me pop-up windows for reboot.

Can anybody help me to set installation NOT to reboot the system on Win2003
server, please?

The contents of .inf file is:
[Version]
signature = “$Windows NT$”
Class = “HSMFilter” ;This is determined by the work this
filter
driver does
;;ClassGuid = {2F0EA340-F772-4a83-9014-20C66C336CA6} ;This value is
determined by the Class
Provider = %Provider%
DriverVer = 02/28/2003,1.0.0.1
CatalogFile = hsmfs.cat ; A CatalogFile entry is
required
for a WHQL signature.
; The actual catalog file will
be
provided by WHQL. The
; catalog file for this sample
is
not provided for use.
[DestinationDirs]
DefaultDestDir = 12
hsmfs.DriverFiles = 12 ;%windir%\system32\drivers

[SourceDisksNames]
1 = %Disk1%

[SourceDisksFiles]
hsmfs.sys = 1

;;
;; Default install sections
;;

[DefaultInstall]
OptionDesc = %hsmfsServiceDesc%
CopyFiles = hsmfs.DriverFiles

[DefaultInstall.Services]
AddService = %hsmfsServiceName%,hsmfs.Service
AddReg = hsmfs.AddRegistry

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = hsmfs.DriverFiles
DelReg = hsmfs.DelRegistry

[DefaultUninstall.Services]
DelService = hsmfs,0x200 ; Flags note to stop service first

;
; Services Section
;

[hsmfs.Service]
DisplayName = %hsmfsServiceName%
Description = %hsmfsServiceDesc%
ServiceBinary = %12%\hsmfs.sys ;%windir%\system32\drivers\hsmfs.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 0 ;SERVICE_BOOT_START=0x0
SERVICE_DEMAND_START=0x3
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter HSM”
AddReg = hsmfs.AddRegistry

;
; Registry Modifications
;

[hsmfs.AddRegistry]
HKLM,%hsmfsRegistry%“\Parameters”,%hsmfsFileSystem%,0x00010000,“\FileSystem<br>Ntf
s;”

[hsmfs.DelRegistry]
HKLM,%hsmfsRegistry%“\Parameters”

;
; Copy Files
;

[hsmfs.DriverFiles]
hsmfs.sys

;;
;; String Section
;;

[Strings]
hsmfsServiceDesc = “FS Filter Driver”
hsmfsServiceName = “hsmfs”
hsmfsRegistry = “system\currentcontrolset\services\hsmfs”
hsmfsFileSystem = “FileSystem”
Disk1 = “hsmfs Source Media”

Thanks in advance.

Regards
Andrej


_______________________________________________
Get your free email from http://www.boardermail.com

Powered by Outblaze


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com

> Huh?? I thought it was well-documented that driver installations (including

FltMgr-based filters) *require* an INF file.

For what? CreateService is simpler.

For example, the DIFxApp installation mechanism uses the

For FS filters, no DIFxApp is necessary. Just write a half-screenful of the C
code which will call CreateService, or call CreateService from InstallShield
script.

You’re just seeking more unnecessary work for you by having INF file for FS
filter.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

Thanks for fast replay and all answers.
After all, I need information how to disable that popup window, which appears at FS filter installation. When I got this job, installation for Win2000 was already done. And now I need to port it into Win2003. Can someone help me, what I need to change?
Is there any difference regarding installing service between FS Filter (.sys file) and regular file (.exe) as service?

Thanks in advance
Regards
Andrej

----- Original Message -----
From: “Maxim S. Shatskih”
To: “Windows File Systems Devs Interest List”
Subject: Re: [ntfsd] FS Filter install
Date: Thu, 9 Dec 2004 15:15:51 +0300

>
> Only FltMgr-based FS filters can be installed without reboot.
> Plain old FS filters - cannot.
>
> Also - why ever use INF file to install FS filter? Bad idea. Why not just
> call CreateService for it? Any installer like InstallShield can do
> CreateService.
>
> INFs are for PnP and network stuff only.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Andrej Andrej”
> To: “Windows File Systems Devs Interest List”
> Sent: Thursday, December 09, 2004 3:05 PM
> Subject: [ntfsd] FS Filter install
>
>
> Hello.
> I have a specific problem regarding installation of FS Filter:
> after successful
> installation on Win2003 OS gives me pop-up window to reboot the system even if
> reboot is not needed.
> I install this filter driver as:
>
> rundll32.exe setupapi,InstallHinfSection DefaultInstall 128 .\filter.inf
>
> I have been read in documentation that 128 mean no reboot at all
> but on Win2003
> this option doesn’t work.
> Also, on Win2000 this option do not influence OS for reboot (I try all 5
> options) - the system do not show me pop-up windows for reboot.
>
> Can anybody help me to set installation NOT to reboot the system on Win2003
> server, please?
>
> The contents of .inf file is:
> [Version]
> signature = “$Windows NT$”
> Class = “HSMFilter” ;This is determined by the work this filter
> driver does
> ;;ClassGuid = {2F0EA340-F772-4a83-9014-20C66C336CA6} ;This value is
> determined by the Class
> Provider = %Provider%
> DriverVer = 02/28/2003,1.0.0.1
> CatalogFile = hsmfs.cat ; A CatalogFile entry is required
> for a WHQL signature.
> ; The actual catalog file will be
> provided by WHQL. The
> ; catalog file for this sample is
> not provided for use.
> [DestinationDirs]
> DefaultDestDir = 12
> hsmfs.DriverFiles = 12 ;%windir%\system32\drivers
>
> [SourceDisksNames]
> 1 = %Disk1%
>
> [SourceDisksFiles]
> hsmfs.sys = 1
>
> ;;
> ;; Default install sections
> ;;
>
> [DefaultInstall]
> OptionDesc = %hsmfsServiceDesc%
> CopyFiles = hsmfs.DriverFiles
>
> [DefaultInstall.Services]
> AddService = %hsmfsServiceName%,hsmfs.Service
> AddReg = hsmfs.AddRegistry
>
> ;;
> ;; Default uninstall sections
> ;;
>
> [DefaultUninstall]
> DelFiles = hsmfs.DriverFiles
> DelReg = hsmfs.DelRegistry
>
> [DefaultUninstall.Services]
> DelService = hsmfs,0x200 ; Flags note to stop service first
>
> ;
> ; Services Section
> ;
>
> [hsmfs.Service]
> DisplayName = %hsmfsServiceName%
> Description = %hsmfsServiceDesc%
> ServiceBinary = %12%\hsmfs.sys ;%windir%\system32\drivers\hsmfs.sys
> ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
> StartType = 0 ;SERVICE_BOOT_START=0x0 SERVICE_DEMAND_START=0x3
> ErrorControl = 1 ;SERVICE_ERROR_NORMAL
> LoadOrderGroup = “FSFilter HSM”
> AddReg = hsmfs.AddRegistry
>
> ;
> ; Registry Modifications
> ;
>
> [hsmfs.AddRegistry]
> HKLM,%hsmfsRegistry%“\Parameters”,%hsmfsFileSystem%,0x00010000,“\FileSystem\Ntf
> s;”
>
> [hsmfs.DelRegistry]
> HKLM,%hsmfsRegistry%“\Parameters”
>
> ;
> ; Copy Files
> ;
>
> [hsmfs.DriverFiles]
> hsmfs.sys
>
> ;;
> ;; String Section
> ;;
>
> [Strings]
> hsmfsServiceDesc = “FS Filter Driver”
> hsmfsServiceName = “hsmfs”
> hsmfsRegistry = “system\currentcontrolset\services\hsmfs”
> hsmfsFileSystem = “FileSystem”
> Disk1 = “hsmfs Source Media”
>
>
> Thanks in advance.
>
> Regards
> Andrej
>
>
>
> –
>
> Get your free email from http://www.boardermail.com
>
> Powered by Outblaze
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@boardermail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com



Get your free email from http://www.boardermail.com

Powered by Outblaze

For Win2003, simply try the sc.exe utility.

  • Vitaly

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Andrej Andrej
Sent: Thursday, December 09, 2004 11:11 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] FS Filter install

Thanks for fast replay and all answers.
After all, I need information how to disable that popup window, which
appears at FS filter installation. When I got this job, installation for
Win2000 was already done. And now I need to port it into Win2003. Can
someone help me, what I need to change? Is there any difference
regarding installing service between FS Filter (.sys file) and regular
file (.exe) as service?

Thanks in advance
Regards
Andrej

----- Original Message -----
From: “Maxim S. Shatskih”
To: “Windows File Systems Devs Interest List”
Subject: Re: [ntfsd] FS Filter install
Date: Thu, 9 Dec 2004 15:15:51 +0300

>
> Only FltMgr-based FS filters can be installed without reboot.
> Plain old FS filters - cannot.
>
> Also - why ever use INF file to install FS filter? Bad idea. Why
> not just call CreateService for it? Any installer like InstallShield
> can do CreateService.
>
> INFs are for PnP and network stuff only.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Andrej Andrej”
> To: “Windows File Systems Devs Interest List”
> Sent: Thursday, December 09, 2004 3:05 PM
> Subject: [ntfsd] FS Filter install
>
>
> Hello.
> I have a specific problem regarding installation of FS Filter:
> after successful
> installation on Win2003 OS gives me pop-up window to reboot the system
even if
> reboot is not needed.
> I install this filter driver as:
>
> rundll32.exe setupapi,InstallHinfSection DefaultInstall 128
> .\filter.inf
>
> I have been read in documentation that 128 mean no reboot at all
> but on Win2003
> this option doesn’t work.
> Also, on Win2000 this option do not influence OS for reboot (I try all
5
> options) - the system do not show me pop-up windows for reboot.
>
> Can anybody help me to set installation NOT to reboot the system on
> Win2003 server, please?
>
> The contents of .inf file is:
> [Version]
> signature = “$Windows NT$”
> Class = “HSMFilter” ;This is determined by the work this
filter
> driver does
> ;;ClassGuid = {2F0EA340-F772-4a83-9014-20C66C336CA6} ;This value
is
> determined by the Class
> Provider = %Provider%
> DriverVer = 02/28/2003,1.0.0.1
> CatalogFile = hsmfs.cat ; A CatalogFile entry is
required
> for a WHQL signature.
> ; The actual catalog file

> will be provided by WHQL. The
> ; catalog file for this
> sample is not provided for use. [DestinationDirs]
> DefaultDestDir = 12
> hsmfs.DriverFiles = 12 ;%windir%\system32\drivers
>
> [SourceDisksNames]
> 1 = %Disk1%
>
> [SourceDisksFiles]
> hsmfs.sys = 1
>
> ;;
> ;; Default install sections
> ;;
>
> [DefaultInstall]
> OptionDesc = %hsmfsServiceDesc%
> CopyFiles = hsmfs.DriverFiles
>
> [DefaultInstall.Services]
> AddService = %hsmfsServiceName%,hsmfs.Service
> AddReg = hsmfs.AddRegistry
>
> ;;
> ;; Default uninstall sections
> ;;
>
> [DefaultUninstall]
> DelFiles = hsmfs.DriverFiles
> DelReg = hsmfs.DelRegistry
>
> [DefaultUninstall.Services]
> DelService = hsmfs,0x200 ; Flags note to stop service first
>
> ;
> ; Services Section
> ;
>
> [hsmfs.Service]
> DisplayName = %hsmfsServiceName%
> Description = %hsmfsServiceDesc%
> ServiceBinary = %12%\hsmfs.sys
;%windir%\system32\drivers\hsmfs.sys
> ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
> StartType = 0 ;SERVICE_BOOT_START=0x0
SERVICE_DEMAND_START=0x3
> ErrorControl = 1 ;SERVICE_ERROR_NORMAL
> LoadOrderGroup = “FSFilter HSM”
> AddReg = hsmfs.AddRegistry
>
> ;
> ; Registry Modifications
> ;
>
> [hsmfs.AddRegistry]
> HKLM,%hsmfsRegistry%“\Parameters”,%hsmfsFileSystem%,0x00010000,“\FileS
> ystem\Ntf
> s;”
>
> [hsmfs.DelRegistry]
> HKLM,%hsmfsRegistry%“\Parameters”
>
> ;
> ; Copy Files
> ;
>
> [hsmfs.DriverFiles]
> hsmfs.sys
>
> ;;
> ;; String Section
> ;;
>
> [Strings]
> hsmfsServiceDesc = “FS Filter Driver”
> hsmfsServiceName = “hsmfs”
> hsmfsRegistry = “system\currentcontrolset\services\hsmfs”
> hsmfsFileSystem = “FileSystem”
> Disk1 = “hsmfs Source Media”
>
>
> Thanks in advance.
>
> Regards
> Andrej
>
>
>
> –
>
> Get your free email from http://www.boardermail.com
>
> Powered by Outblaze
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: unknown lmsubst tag
> argument: ‘’ To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@boardermail.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com



Get your free email from http://www.boardermail.com

Powered by Outblaze


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’ To unsubscribe send a blank email to xxxxx@lists.osr.com

Max:

At the risk of beating a dead horse, I have had no luck doing what you
suggest.

I’ve tried “sc createservice …” and also written my own program that calls
CreateService.

Creating the service works fine, but whenever it tries to start the driver,
it returns “The system cannot find the file specified.” (of course, the file
is there). I get the same results from my program or sc, regardless of
where the driver is stored.

I agree that it would be *much* easier to install a filter driver this way
than use DIFxApp (especially a FltMgr minifilter), but are you sure this can
be done? Is there some additional step required?

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Thursday, December 09, 2004 7:52 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] FS Filter install

Huh?? I thought it was well-documented that driver installations
(including
FltMgr-based filters) *require* an INF file.

For what? CreateService is simpler.

For example, the DIFxApp installation mechanism uses the

For FS filters, no DIFxApp is necessary. Just write a half-screenful of the
C
code which will call CreateService, or call CreateService from InstallShield
script.

You’re just seeking more unnecessary work for you by having INF file for FS
filter.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com

> Creating the service works fine, but whenever it tries to start the

driver,
it returns “The system cannot find the file specified.” (of course, the
file
is there). I get the same results from my program or sc, regardless of
where the driver is stored.

This is strange. I use this way quite long time and
I haven’t seen a problem. Maybe you really
giving the wrong file path to the Service Manager.
You can try the tool which is available
on OSR (I haven’t tried it out, I wrote something
myself)

L.

OK, something more is required (at least for a minifilter). I think the
“The system cannot find the file specified.” error I was getting was
actually a registry lookup failure, not a file lookup failure.

The registry entry for the driver must include a key called “Instances” with
(at least) these entries:

CurrentControlSet\Services\DriverName
± Instances
± DefaultInstance = REG_SZ “DriverName Instance”
± DriverName Instance
± Altitude = REG_SZ “”
± Flags = REG_DWORD 0

Other Instances may be needed depending on your filter if you have, for
example, instances at different altitudes. Neither sc nor the CreateService
function create this key. I suspect it’s new for minifilters.

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Friday, December 10, 2004 8:14 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] FS Filter install

Max:

At the risk of beating a dead horse, I have had no luck doing what you
suggest.

I’ve tried “sc create …” and also written my own program that calls
CreateService.

Creating the service works fine, but whenever it tries to start the driver,
it returns “The system cannot find the file specified.” (of course, the file
is there). I get the same results from my program or sc, regardless of
where the driver is stored.

I agree that it would be much easier to install a filter driver this way
than use DIFxApp (especially a FltMgr minifilter), but are you sure this can
be done? Is there some additional step required?

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Thursday, December 09, 2004 7:52 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] FS Filter install

> Huh?? I thought it was well-documented that driver installations
(including
> FltMgr-based filters) require an INF file.

For what? CreateService is simpler.

> For example, the DIFxApp installation mechanism uses the

For FS filters, no DIFxApp is necessary. Just write a half-screenful of the
C
code which will call CreateService, or call CreateService from InstallShield
script.

You’re just seeking more unnecessary work for you by having INF file for FS
filter.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com

Fortunately, the only thing SCM needs is the information on the service;
I believe the rest of that information is used by filter manager, which
reads it from the registry as part of the driver registration process.
We had an article in The NT Insider
(http://www.osronline.com/article.cfm?article=290) that discussed this
very issue.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Friday, December 10, 2004 9:30 AM
To: ntfsd redirect
Subject: RE: [ntfsd] FS Filter install

OK, something more is required (at least for a minifilter). I think the
“The system cannot find the file specified.” error I was getting was
actually a registry lookup failure, not a file lookup failure.

The registry entry for the driver must include a key called “Instances”
with
(at least) these entries:

CurrentControlSet\Services\DriverName
± Instances
± DefaultInstance = REG_SZ “DriverName Instance”
± DriverName Instance
± Altitude = REG_SZ “”
± Flags = REG_DWORD 0

Other Instances may be needed depending on your filter if you have, for
example, instances at different altitudes. Neither sc nor the
CreateService
function create this key. I suspect it’s new for minifilters.

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Friday, December 10, 2004 8:14 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] FS Filter install

Max:

At the risk of beating a dead horse, I have had no luck doing what you
suggest.

I’ve tried “sc create …” and also written my own program that calls
CreateService.

Creating the service works fine, but whenever it tries to start the
driver,
it returns “The system cannot find the file specified.” (of course, the
file
is there). I get the same results from my program or sc, regardless of
where the driver is stored.

I agree that it would be much easier to install a filter driver this
way
than use DIFxApp (especially a FltMgr minifilter), but are you sure this
can
be done? Is there some additional step required?

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
Shatskih
Sent: Thursday, December 09, 2004 7:52 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] FS Filter install

> Huh?? I thought it was well-documented that driver installations
(including
> FltMgr-based filters) require an INF file.

For what? CreateService is simpler.

> For example, the DIFxApp installation mechanism uses the

For FS filters, no DIFxApp is necessary. Just write a half-screenful of
the
C
code which will call CreateService, or call CreateService from
InstallShield
script.

You’re just seeking more unnecessary work for you by having INF file for
FS
filter.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Yep, virtually identical to what I found out independently. Nothing like
re-inventing the wheel once in a while… :-\

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Saturday, December 11, 2004 7:17 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] FS Filter install

Fortunately, the only thing SCM needs is the information on the service;
I believe the rest of that information is used by filter manager, which
reads it from the registry as part of the driver registration process.
We had an article in The NT Insider
(http://www.osronline.com/article.cfm?article=290) that discussed this
very issue.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Friday, December 10, 2004 9:30 AM
To: ntfsd redirect
Subject: RE: [ntfsd] FS Filter install

OK, something more is required (at least for a minifilter). I think the
“The system cannot find the file specified.” error I was getting was
actually a registry lookup failure, not a file lookup failure.

The registry entry for the driver must include a key called “Instances”
with
(at least) these entries:

CurrentControlSet\Services\DriverName
± Instances
± DefaultInstance = REG_SZ “DriverName Instance”
± DriverName Instance
± Altitude = REG_SZ “”
± Flags = REG_DWORD 0

Other Instances may be needed depending on your filter if you have, for
example, instances at different altitudes. Neither sc nor the
CreateService
function create this key. I suspect it’s new for minifilters.

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Friday, December 10, 2004 8:14 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] FS Filter install

Max:

At the risk of beating a dead horse, I have had no luck doing what you
suggest.

I’ve tried “sc create …” and also written my own program that calls
CreateService.

Creating the service works fine, but whenever it tries to start the
driver,
it returns “The system cannot find the file specified.” (of course, the
file
is there). I get the same results from my program or sc, regardless of
where the driver is stored.

I agree that it would be much easier to install a filter driver this
way
than use DIFxApp (especially a FltMgr minifilter), but are you sure this
can
be done? Is there some additional step required?

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
Shatskih
Sent: Thursday, December 09, 2004 7:52 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] FS Filter install

> Huh?? I thought it was well-documented that driver installations
(including
> FltMgr-based filters) require an INF file.

For what? CreateService is simpler.

> For example, the DIFxApp installation mechanism uses the

For FS filters, no DIFxApp is necessary. Just write a half-screenful of
the
C
code which will call CreateService, or call CreateService from
InstallShield
script.

You’re just seeking more unnecessary work for you by having INF file for
FS
filter.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Of course, had most of us not been at Plugfest last week, someone might
have volunteered the information more quickly. :wink:

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Saturday, December 11, 2004 8:12 AM
To: ntfsd redirect
Subject: RE: [ntfsd] FS Filter install

Yep, virtually identical to what I found out independently. Nothing
like
re-inventing the wheel once in a while… :-\

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Saturday, December 11, 2004 7:17 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] FS Filter install

Fortunately, the only thing SCM needs is the information on the service;
I believe the rest of that information is used by filter manager, which
reads it from the registry as part of the driver registration process.
We had an article in The NT Insider
(http://www.osronline.com/article.cfm?article=290) that discussed this
very issue.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Friday, December 10, 2004 9:30 AM
To: ntfsd redirect
Subject: RE: [ntfsd] FS Filter install

OK, something more is required (at least for a minifilter). I think the
“The system cannot find the file specified.” error I was getting was
actually a registry lookup failure, not a file lookup failure.

The registry entry for the driver must include a key called “Instances”
with
(at least) these entries:

CurrentControlSet\Services\DriverName
± Instances
± DefaultInstance = REG_SZ “DriverName Instance”
± DriverName Instance
± Altitude = REG_SZ “”
± Flags = REG_DWORD 0

Other Instances may be needed depending on your filter if you have, for
example, instances at different altitudes. Neither sc nor the
CreateService
function create this key. I suspect it’s new for minifilters.

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Friday, December 10, 2004 8:14 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] FS Filter install

Max:

At the risk of beating a dead horse, I have had no luck doing what you
suggest.

I’ve tried “sc create …” and also written my own program that calls
CreateService.

Creating the service works fine, but whenever it tries to start the
driver,
it returns “The system cannot find the file specified.” (of course, the
file
is there). I get the same results from my program or sc, regardless of
where the driver is stored.

I agree that it would be much easier to install a filter driver this
way
than use DIFxApp (especially a FltMgr minifilter), but are you sure this
can
be done? Is there some additional step required?

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
Shatskih
Sent: Thursday, December 09, 2004 7:52 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] FS Filter install

> Huh?? I thought it was well-documented that driver installations
(including
> FltMgr-based filters) require an INF file.

For what? CreateService is simpler.

> For example, the DIFxApp installation mechanism uses the

For FS filters, no DIFxApp is necessary. Just write a half-screenful of
the
C
code which will call CreateService, or call CreateService from
InstallShield
script.

You’re just seeking more unnecessary work for you by having INF file for
FS
filter.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Andrej,

Sorry I have been a little slow in replying we have been very busy since
the PlugFest.

First, here is a simple workaround to bypass this unfortunate feature of
.INF installs.

In your .INF file set the “start” type to something other than zero
(like 3 for manual). Then define an “addreg” section which sets the
start type to zero.

Below is an example:

[myDriver.Service]
.
.
.
StartType = 3 ;SERVICE_DEMAND_START
AddReg = myDriver.AddRegistry

;
; Registry Modifications
;

[myDriver.AddRegistry]
HKR,Start,0x00010001,0x0

This will make it so you don’t get the reboot prompt but can stillyou’re
your “startType” TO BOOT. This should work on W2K and later.

I wish to correct what Maxim said.

It is a requirement that all drivers (including file systems and file
system filters - both legacy and mini) use .INF files for installation.
This requirement is not being enforced yet, but the time is coming when
it will. It is currently a requirement for anti-virus filters to get
WHQL certification. Recent IFSKits have good examples of how to do
this.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Andrej Andrej
Sent: Thursday, December 09, 2004 8:11 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] FS Filter install

Thanks for fast replay and all answers.
After all, I need information how to disable that popup window, which
appears at FS filter installation. When I got this job, installation for
Win2000 was already done. And now I need to port it into Win2003. Can
someone help me, what I need to change?
Is there any difference regarding installing service between FS Filter
(.sys file) and regular file (.exe) as service?

Thanks in advance
Regards
Andrej

----- Original Message -----
From: “Maxim S. Shatskih”
To: “Windows File Systems Devs Interest List”
Subject: Re: [ntfsd] FS Filter install
Date: Thu, 9 Dec 2004 15:15:51 +0300

>
> Only FltMgr-based FS filters can be installed without reboot.
> Plain old FS filters - cannot.
>
> Also - why ever use INF file to install FS filter? Bad idea. Why
not just
> call CreateService for it? Any installer like InstallShield can do
> CreateService.
>
> INFs are for PnP and network stuff only.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Andrej Andrej”
> To: “Windows File Systems Devs Interest List”
> Sent: Thursday, December 09, 2004 3:05 PM
> Subject: [ntfsd] FS Filter install
>
>
> Hello.
> I have a specific problem regarding installation of FS Filter:
> after successful
> installation on Win2003 OS gives me pop-up window to reboot the system
even if
> reboot is not needed.
> I install this filter driver as:
>
> rundll32.exe setupapi,InstallHinfSection DefaultInstall 128
.\filter.inf
>
> I have been read in documentation that 128 mean no reboot at all
> but on Win2003
> this option doesn’t work.
> Also, on Win2000 this option do not influence OS for reboot (I try all
5
> options) - the system do not show me pop-up windows for reboot.
>
> Can anybody help me to set installation NOT to reboot the system on
Win2003
> server, please?
>
> The contents of .inf file is:
> [Version]
> signature = “$Windows NT$”
> Class = “HSMFilter” ;This is determined by the work this
filter
> driver does
> ;;ClassGuid = {2F0EA340-F772-4a83-9014-20C66C336CA6} ;This value
is
> determined by the Class
> Provider = %Provider%
> DriverVer = 02/28/2003,1.0.0.1
> CatalogFile = hsmfs.cat ; A CatalogFile entry is
required
> for a WHQL signature.
> ; The actual catalog file
will be
> provided by WHQL. The
> ; catalog file for this
sample is
> not provided for use.
> [DestinationDirs]
> DefaultDestDir = 12
> hsmfs.DriverFiles = 12 ;%windir%\system32\drivers
>
> [SourceDisksNames]
> 1 = %Disk1%
>
> [SourceDisksFiles]
> hsmfs.sys = 1
>
> ;;
> ;; Default install sections
> ;;
>
> [DefaultInstall]
> OptionDesc = %hsmfsServiceDesc%
> CopyFiles = hsmfs.DriverFiles
>
> [DefaultInstall.Services]
> AddService = %hsmfsServiceName%,hsmfs.Service
> AddReg = hsmfs.AddRegistry
>
> ;;
> ;; Default uninstall sections
> ;;
>
> [DefaultUninstall]
> DelFiles = hsmfs.DriverFiles
> DelReg = hsmfs.DelRegistry
>
> [DefaultUninstall.Services]
> DelService = hsmfs,0x200 ; Flags note to stop service first
>
> ;
> ; Services Section
> ;
>
> [hsmfs.Service]
> DisplayName = %hsmfsServiceName%
> Description = %hsmfsServiceDesc%
> ServiceBinary = %12%\hsmfs.sys
;%windir%\system32\drivers\hsmfs.sys
> ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
> StartType = 0 ;SERVICE_BOOT_START=0x0
SERVICE_DEMAND_START=0x3
> ErrorControl = 1 ;SERVICE_ERROR_NORMAL
> LoadOrderGroup = “FSFilter HSM”
> AddReg = hsmfs.AddRegistry
>
> ;
> ; Registry Modifications
> ;
>
> [hsmfs.AddRegistry]
>
HKLM,%hsmfsRegistry%“\Parameters”,%hsmfsFileSystem%,0x00010000,“\FileSys
tem\Ntf
> s;”
>
> [hsmfs.DelRegistry]
> HKLM,%hsmfsRegistry%“\Parameters”
>
> ;
> ; Copy Files
> ;
>
> [hsmfs.DriverFiles]
> hsmfs.sys
>
> ;;
> ;; String Section
> ;;
>
> [Strings]
> hsmfsServiceDesc = “FS Filter Driver”
> hsmfsServiceName = “hsmfs”
> hsmfsRegistry = “system\currentcontrolset\services\hsmfs”
> hsmfsFileSystem = “FileSystem”
> Disk1 = “hsmfs Source Media”
>
>
> Thanks in advance.
>
> Regards
> Andrej
>
>
>
> –
>
> Get your free email from http://www.boardermail.com
>
> Powered by Outblaze
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: unknown lmsubst tag
argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@boardermail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com



Get your free email from http://www.boardermail.com

Powered by Outblaze


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Neal:

“It is a requirement that all drivers (including file systems and file
system filters - both legacy and mini) use .INF files for installation.”

That’s disappointing. Mini-filters seem to work very nicely using
CreateService(), and is *much* easier to install than an INF file. Windows
Installer doesn’t support it very well (I’ve been struggling with DIFxAPP
stuff since its initial release – very painful, and I abandoned it
completely once I determined that CreateService() does just as well).

Out of curiosity: Why?

Thanks,
Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Neal Christiansen
Sent: Saturday, January 08, 2005 8:36 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] FS Filter install

Andrej,

Sorry I have been a little slow in replying we have been very busy since
the PlugFest.

First, here is a simple workaround to bypass this unfortunate feature of
.INF installs.

In your .INF file set the “start” type to something other than zero
(like 3 for manual). Then define an “addreg” section which sets the
start type to zero.

Below is an example:

[myDriver.Service]
.
.
.
StartType = 3 ;SERVICE_DEMAND_START
AddReg = myDriver.AddRegistry

;
; Registry Modifications
;

[myDriver.AddRegistry]
HKR,Start,0x00010001,0x0

This will make it so you don’t get the reboot prompt but can stillyou’re
your “startType” TO BOOT. This should work on W2K and later.

I wish to correct what Maxim said.

It is a requirement that all drivers (including file systems and file
system filters - both legacy and mini) use .INF files for installation.
This requirement is not being enforced yet, but the time is coming when
it will. It is currently a requirement for anti-virus filters to get
WHQL certification. Recent IFSKits have good examples of how to do
this.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights

Ken,

The reason why has to do with driver verification. When you install a
driver via a .INF file it validates that it is properly signed. If you
install it any other way this validation is not performed. To guarantee
a drivers validity we need to only allow .INF installations.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Sunday, January 09, 2005 6:13 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] FS Filter install

Neal:

“It is a requirement that all drivers (including file systems and file
system filters - both legacy and mini) use .INF files for installation.”

That’s disappointing. Mini-filters seem to work very nicely using
CreateService(), and is *much* easier to install than an INF file.
Windows
Installer doesn’t support it very well (I’ve been struggling with
DIFxAPP
stuff since its initial release – very painful, and I abandoned it
completely once I determined that CreateService() does just as well).

Out of curiosity: Why?

Thanks,
Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Neal
Christiansen
Sent: Saturday, January 08, 2005 8:36 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] FS Filter install

Andrej,

Sorry I have been a little slow in replying we have been very busy since
the PlugFest.

First, here is a simple workaround to bypass this unfortunate feature of
.INF installs.

In your .INF file set the “start” type to something other than zero
(like 3 for manual). Then define an “addreg” section which sets the
start type to zero.

Below is an example:

[myDriver.Service]
.
.
.
StartType = 3 ;SERVICE_DEMAND_START
AddReg = myDriver.AddRegistry

;
; Registry Modifications
;

[myDriver.AddRegistry]
HKR,Start,0x00010001,0x0

This will make it so you don’t get the reboot prompt but can stillyou’re
your “startType” TO BOOT. This should work on W2K and later.

I wish to correct what Maxim said.

It is a requirement that all drivers (including file systems and file
system filters - both legacy and mini) use .INF files for installation.
This requirement is not being enforced yet, but the time is coming when
it will. It is currently a requirement for anti-virus filters to get
WHQL certification. Recent IFSKits have good examples of how to do
this.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com