RvdH Posted April 4, 2006 Share Posted April 4, 2006 Anyone knows a way to stop/kill a service within auto-it app that can't be triggered with normal; RunWait(@ComSpec & " /c " & 'net stop "<MyServive>"',"",@SW_HIDE)SERVICE_NAME: <MyService> TYPE : 10 WIN32_OWN_PROCESS STATE : 4 RUNNING (NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0thx Link to comment Share on other sites More sharing options...
nfwu Posted April 4, 2006 Share Posted April 4, 2006 Looks like this service is one of those services that have their own handlers instead of the default handlers. (Think they are called SIGINT handlers?) Sorry, no help here. #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
PartyPooper Posted April 4, 2006 Share Posted April 4, 2006 What service is it? Link to comment Share on other sites More sharing options...
forger Posted April 4, 2006 Share Posted April 4, 2006 (edited) *cleared my post* Edited April 7, 2006 by forger Link to comment Share on other sites More sharing options...
RvdH Posted April 4, 2006 Author Share Posted April 4, 2006 (edited) I'm talking about the "F-Prot Antivirus Update Monitor" its a little program which runs in the background and queries F-Prot server to check if new definitions are available ; uninstall/stop service $servicename = "F-Prot Antivirus Update Monitor" ;ProcessClose("fpavupdm.exe") ;RunWait(@ScriptDir & '\F-Prot\fpavupdm.exe /uninstall') ;RunWait(@ComSpec & " /c " & 'net stop' & $servicename, "", @SW_HIDE) RunWait(@SystemDir & "\sc.exe stop " & $servicename, "", @SW_HIDE) RunWait(@SystemDir & "\sc.exe delete " & $servicename, "", @SW_HIDE) none of the above seem to work, if i use sysinternals pskill, like: RunWait(@ScriptDir & "\pskill -t fpavupdm", "", @SW_HIDE) it works instantly... although i prefer to do everything from within auto-it my guess is that is the only method on how it succesfully can be done Edited April 4, 2006 by RvdH Link to comment Share on other sites More sharing options...
Confuzzled Posted April 7, 2006 Share Posted April 7, 2006 I'm talking about the "F-Prot Antivirus Update Monitor" its a little program which runs in the background and queries F-Prot server to check if new definitions are available If you post your final code here, I'm sure F-Prot will add AutoIT to the list of nasties and everybody will lose their compiled files once again.You sure this is for a legitimate need? Approach F-Prot and ask them what the correct command to uninstall/stop their software is. Link to comment Share on other sites More sharing options...
forger Posted April 7, 2006 Share Posted April 7, 2006 Why on earth would you want to stop/delete a program that keeps your antivirus updated? If the reason you want is what I think it is, then I'm sorry I even posted the solution. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now