Close app before update it

BatchPatch Forums Home Forums BatchPatch Support Forum Close app before update it

  • This topic has 2 replies, 2 voices, and was last updated 5 years ago by kigor.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12070
    kigor
    Participant

    Hello,
    it is possible to close app before update it?
    For example, if Mozilla Firefox is open and I send remote deplayment it will install new version, but old one will stay.
    Of course, I can ever reboot PC, but will be more simple just send command to close app like Firefox and Thunderbird when I see a problem with “double” install app.
    Btw I am looking solution to do this two action with task scheduler and when detecting target computer is online

    • This topic was modified 5 years ago by kigor.
    #12073
    doug
    Moderator

    You can create a custom remote command in BatchPatch ( how-to-hard-code-your-own-custom-commands-in-the-batchpatch-actions-menu ) with the following syntax:

    taskkill /IM notepad.exe

    Then create a job queue that executes this remote command in the step before your deployment is executed. Then when you execute the job queue it will first run the taskkill command to kill your app (maybe firefox.exe or whatever), and then it will run the deployment.

    using-the-job-queue-in-batchpatch-for-multi-step-execution

    I hope this helps.

    -Doug

    #12076
    kigor
    Participant

    Thanks!
    This is it, and it work great

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.