MSFN Forum: Why wont taskkill work? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Why wont taskkill work? Rate Topic: -----

#1 User is offline   svortevik 

  • Newbie
  • Group: Members
  • Posts: 27
  • Joined: 31-May 05

Posted 18 June 2005 - 06:40 AM

When installing some of my programs I need taskkill to run, but it wont.

Can anyone look over my commands and tell med whats wrong?

REG ADD %KEY%\009 /VE /D "BulletProof FTP Server" /f
REG ADD %KEY%\009 /V 1 /D "%PP%ftpsetup.exe /verysilent" /f
REG ADD %KEY%\009 /V 2 /D "taskkill.exe /IM bpftpserver.exe" /f
REG ADD %KEY%\009 /V 3 /D "%PP%bpftpserver.exe" /f


REG ADD %KEY%\016 /VE /D "DVD Identifier" /f
REG ADD %KEY%\016 /V 1 /D "%PP%DVDIdentifier3.6.3.1.exe /VERYSILENT" /f
REG ADD %KEY%\016 /V 2 /D "taskkill.exe /IM "DVD Identifier.exe"" /f


REG ADD %KEY%\038 /VE /D "Opera Search ini editor" /f
REG ADD %KEY%\038 /V 1 /D "%PP%OperaSearchIni\opsedsetup123.exe /SILENT" /f
REG ADD %KEY%\038 /V 2 /D "taskkill.exe /IM opsed.exe" /f


REG ADD %KEY%\052 /VE /D "TuneXp 1.5" /f
REG ADD %KEY%\052 /V 1 /D "%PP%TuneXP15.exe /VERYSILENT /SP-" /f
REG ADD %KEY%\052 /V 2 /D "%PP%Sleep.exe 10" /f
REG ADD %KEY%\052 /V 3 /D "taskkill.exe /IM tunexp.exe" /f



#2 User is offline   Achdine 

  • Junior
  • Pip
  • Group: Members
  • Posts: 97
  • Joined: 11-May 05

Posted 18 June 2005 - 05:39 PM

Try adding the /F switch to "forcefully terminate the process(es)."
You could also try using PsKill or NirCMD.

#3 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,615
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2005 - 05:48 PM

Pretty sure usin Taskill in Runonceex like that will cause the executeable to run first then execute taskill next not really servin the purpose. I generally script it through Autoit.

#4 User is offline   DonDamm 

  • Member
  • PipPip
  • Group: Members
  • Posts: 284
  • Joined: 24-May 05

Posted 19 June 2005 - 03:42 PM

svortevik, I don't know what your %pp% expands to, but at first glance I noticed that for the first two you might have a problem with the quotes. With RunOnceEx if you need more quotes you will need to preced them with a "\" to get them to transfer properly.

So, your line

REG ADD %KEY%\016 /V 2 /D "taskkill.exe /IM "DVD Identifier.exe"" /f


should be...
REG ADD %KEY%\016 /V 2 /D "taskkill.exe /IM \"DVD Identifier.exe\"" /f



If you expansion variable includes any spaces when expanded, then you'll have the same problem (I know as I learned the hard way!).

Your first line has the executable being executed just after you've killed it!!!

The other two I'm not too familiar with, so I can only ask why use sleep.exe and then taskill?? You might be able to wrap them in a Winrar sfx file or use 7zip for a silent install, but others here can better advise you.

#5 User is offline   svortevik 

  • Newbie
  • Group: Members
  • Posts: 27
  • Joined: 31-May 05

Posted 20 June 2005 - 03:04 AM

PP=%cdrom%\Install\

I`ll try to use "\" and see if that helps.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy