Install/Uninstall minifilterdriver from service context

Hi
I have a question about the possibility of installing/uninstalling a minifilterdriver from a managed windows service.

Is this possible?
I can not find any material in the documentation on this subject.

My problem is that I must use a service for the updating of my application. The driver is a part of thet application and I would like to update it in the same fashion as the rest of my application.

All responses are greatly appreciated!

Cheers
Kristofer

Update is not install/uninstall, but just replacement of .SYS file.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntfsd…
> Hi
> I have a question about the possibility of installing/uninstalling a minifilterdriver from a managed windows service.
>
> Is this possible?
> I can not find any material in the documentation on this subject.
>
> My problem is that I must use a service for the updating of my application. The driver is a part of thet application and I would like to update it in the same fashion as the rest of my application.
>
> All responses are greatly appreciated!
>
> Cheers
> Kristofer
>

and to expand, for a minifilter, this involves unloading and re-loading the
filter for the update to take
effect. if the minifilter supports unload, then no reboot is required.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Wednesday, March 25, 2009 5:43 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Install/Uninstall minifilterdriver from service context

Update is not install/uninstall, but just replacement of .SYS file.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntfsd…
> Hi
> I have a question about the possibility of installing/uninstalling a
minifilterdriver from a managed windows service.
>
> Is this possible?
> I can not find any material in the documentation on this subject.
>
> My problem is that I must use a service for the updating of my
application. The driver is a part of thet application and I would like to
update it in the same fashion as the rest of my application.
>
> All responses are greatly appreciated!
>
> Cheers
> Kristofer
>


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) 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

Note that this will teardown and restart the contexts for all already opened files. Sometimes this is bad and reboot is still required.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

“Matt” wrote in message news:xxxxx@ntfsd…
> and to expand, for a minifilter, this involves unloading and re-loading the
> filter for the update to take
> effect. if the minifilter supports unload, then no reboot is required.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
> Sent: Wednesday, March 25, 2009 5:43 AM
> To: Windows File Systems Devs Interest List
> Subject: Re:[ntfsd] Install/Uninstall minifilterdriver from service context
>
> Update is not install/uninstall, but just replacement of .SYS file.
>
> –
> Maxim S. Shatskih
> Windows DDK MVP
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> wrote in message news:xxxxx@ntfsd…
>> Hi
>> I have a question about the possibility of installing/uninstalling a
> minifilterdriver from a managed windows service.
>>
>> Is this possible?
>> I can not find any material in the documentation on this subject.
>>
>> My problem is that I must use a service for the updating of my
> application. The driver is a part of thet application and I would like to
> update it in the same fashion as the rest of my application.
>>
>> All responses are greatly appreciated!
>>
>> Cheers
>> Kristofer
>>
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars
> (including our new fs mini-filter seminar) 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
>
>

Thank you very much!

I will try this approach, I was under the impression that simply a replacement of the sys file (once unloaded) was not the primary way of updateing the driver.

I do have a followup question to the unloading and loading of the driver. I’m currently using a C# wrapped approach, wrapping advapi32 functions OpenSCManager, OpenService,ControlService the code is based upon the one found in DDK.

My question is if I’m missing anything of imprtance in this approach?

Cheers
Kristofer