In theory, Shell should wait, but often on silent installs does not. I abhor McAfee, choosing to use NAV (SAV) instead, so cannot vouch for the behavoir of the install. Sometimes, Start /W may aid in that.

From what I know about McAfee, EPO is the way to go.

What is $appsPath? Is it a mapped path or a UNC?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.