Support Forum: Get Support for Patch My PC Products and Services

Microsoft Configuration Manager and Intune (Enterprises/Paid) => Support and General Questions (Enterprises Using ConfigMgr and Intune) => Topic started by: Jared on August 13, 2021, 07:04:06 AM

Title: General Post Script Behavior Question (Cisco AnyConnect Strategy)
Post by: Jared on August 13, 2021, 07:04:06 AM
Hi,

I'm currently testing the Cisco AnyConnect bundle operations described in your article here (https://patchmypc.com/how-to-bundle-cisco-anyconnect-modules-to-install-in-a-specific-order).  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
Title: Re: General Post Script Behavior Question (Cisco AnyConnect Strategy)
Post by: Jake Shackelford (Patch My PC) 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
Title: Re: General Post Script Behavior Question (Cisco AnyConnect Strategy)
Post by: Jared 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.
Title: Re: General Post Script Behavior Question (Cisco AnyConnect Strategy)
Post by: Jake Shackelford (Patch My PC) on August 13, 2021, 07:29:50 AM
If the main install fails yes it will not run!
Title: Re: General Post Script Behavior Question (Cisco AnyConnect Strategy)
Post by: Jared on August 13, 2021, 07:32:34 AM
Does the pre-script run before or after the Manage Conflicting Processes functionality occurs?
Title: Re: General Post Script Behavior Question (Cisco AnyConnect Strategy)
Post by: Adam Cook (Patch My PC) on August 18, 2021, 01:27:26 AM
Hey Jared

The pre-scripts will run after managing conflicting processes functions.
Title: Re: General Post Script Behavior Question (Cisco AnyConnect Strategy)
Post by: Jared on August 18, 2021, 05:01:57 AM
Thanks Adam!