Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - WMIPRVSE.exe locks a file

Reply
 
Old 02-09-2009   #1 (permalink)
Aviator


 
 

WMIPRVSE.exe locks a file

Dear All,

I am having a Service Wrapper exe written using C++ (VS 6 Env) utilizing
NTService in one of my products. Its job is to register and deregister s
batch file as service as and when required. I am having two machine both
running Windows 2003 Enterprise edition. Let’s assume the machines as A and B.

Now this is my question. When I install my service, everything works fine;
it starts, stops and functionality is as expected. But when I am removing the
service and after that, deleting this exe file (which was written as a
service wrapper), it is getting deleted in Machine A and not in machine B. If
I use Process Explorer and search for a handle it points to wmiprvse.exe in B.
After restarting or after killing wmiprvse.exe, I am able to delete that file.

I just want to know whether this is an expected behavior and the exact patch
number which changed the exe after SP2 (since timestamp is different).

Some details regarding the machines.
Machine A:
SP2 installed.
Automatic Updates NOT enabled.
Wmiprvse.exe has timestamp 2/17/2007 4:09 AM and size 203 KB

Machine B:
SP2 installed
Automatic Updates Enabled.
Wmiprvse.exe has timestamp 02/17/2007 7:34 pm and size 203 KB


Just a Gist of what am doing with my product:-
A Wrapper, say ServiceWrapper.exe, written using NTService.
A batch file ABC.bat
ServiceWrapper.exe registers ABC.bat as service and then it can be
started/stopped using SCM
When removing the service, this ServiceWrapper stops the service if its
running, attempts to close open service handles and then delete service. The
entry is getting removed from SCM. I can see that. But this is part of
uninstall procedure, so after doing service removal, if I try to delete this
ServiceWrapper.exe it is throwing error in one of the machines explained
above.

Also, this is not happening is any XP machines!

Please help and guide me in right direction!
Thanks a lot in advance!

Regards
Prasanna Ram


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
DComLaunch and WmiPrvSE.exe, DComLaunch and WmiPrvSE.exe makes CPU running high Software
Easy transfer locks on a file name and won't finish on Vista compu Vista installation & setup
Computer screen locks up when trying to set file sharing Vista networking & sharing
Wmiprvse Vista performance & maintenance
[Reflection.Assembly]::LoadFile locks file PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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