Author Topic: General Post Script Behavior Question (Cisco AnyConnect Strategy)  (Read 601 times)

Offline Jared

  • Newbie
  • *
  • Posts: 12
    • View Profile
Hi,

I'm currently testing the Cisco AnyConnect bundle operations described in your article here.  So far this is working great for me, but large scale AnyConnect upgrades have a very high failure rate in our experience.  We've always done AnyConnect upgrades with a Task Sequence in ConfigMgr, and I'm trying to siphon the functionality from the task sequence into the Pre/Post script solution in PatchMyPC.

One of the things we do is kill all the AnyConnect processes before attempting to install the Core module.  If the Core fails, we attempt to kill the processes again, and repeat this several times.

So my question is:  Will the post script run even if the initial upgrade of the Core module fails?  If it does, that makes my solution easier since I can just attempt to kill the processes and reinstall the Core again in the post script.

If it does not, I can add a pre script to the Core upgrade to kill the AnyConnect processes.  But I think I'll only get one shot at that.  I can't run the pre script multiple times, and I probably shouldn't attempt to install the Core module from the pre script (or maybe I could, and then the actual upgrade would effectively take no action?)...

Thanks

Offline Jake Shackelford (Patch My PC)

  • Administrator
  • Newbie
  • *****
  • Posts: 26
    • View Profile
Re: General Post Script Behavior Question (Cisco AnyConnect Strategy)
« Reply #1 on: August 13, 2021, 07:24:40 AM »
A pre-script will not run if the core installation fails.

In regards to a prescript to kill the processes you can actually use our right click options for manage conflicting processes. This will let you target apps to close, more info can be found here: https://patchmypc.com/manage-conflicting-processes-when-updating-third-party-applications


You can also use this KB to get more info on the pre/post script options: https://patchmypc.com/custom-options-available-for-third-party-updates-and-applications#custom-scripts

Offline Jared

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: General Post Script Behavior Question (Cisco AnyConnect Strategy)
« Reply #2 on: August 13, 2021, 07:29:22 AM »
You mean the post-script will not run, right?

Ah, I never saw that Manage Process List button in the conflicting processes window!  Thanks.

Offline Jake Shackelford (Patch My PC)

  • Administrator
  • Newbie
  • *****
  • Posts: 26
    • View Profile
Re: General Post Script Behavior Question (Cisco AnyConnect Strategy)
« Reply #3 on: August 13, 2021, 07:29:50 AM »
If the main install fails yes it will not run!

Offline Jared

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: General Post Script Behavior Question (Cisco AnyConnect Strategy)
« Reply #4 on: August 13, 2021, 07:32:34 AM »
Does the pre-script run before or after the Manage Conflicting Processes functionality occurs?

Offline Adam Cook

  • Administrator
  • Jr. Member
  • *****
  • Posts: 68
  • Patch My PC Support
    • View Profile
Re: General Post Script Behavior Question (Cisco AnyConnect Strategy)
« Reply #5 on: August 18, 2021, 01:27:26 AM »
Hey Jared

The pre-scripts will run after managing conflicting processes functions.

Offline Jared

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: General Post Script Behavior Question (Cisco AnyConnect Strategy)
« Reply #6 on: August 18, 2021, 05:01:57 AM »
Thanks Adam!