Can't stop Office Click-to-Run Process

I have “OfficeClickToRun” in my process list that users are asked to close, but the PSADT installation welcome pops up at least 3 times asking to close the application called “Microsoft Office Click-to-Run (SxS)”. Is there anything I can do to get it to kill this process the first time instead of the 3rd time?
image

I’ve not deployed Office C2R using PSADT…
In your Deploy-Application.ps1 script what is the name of the executable you are detecting is running called?
Can you see if there are multiple copies of this executable running at the same time? (even under different user accounts)
Maybe the Microsoft Office Click-to-Run (SxS) auto restarts if it is forced to close ? :man_shrugging:

Here is how I dealt with it years ago:

Show-InstallationWelcome -CloseApps 'lync,Winword,excel,msaccess,onenote,orgchart,outlook,powerpnt,groove,MSpub,VISIO,WINPROJ' -CheckDiskSpace -PersistPrompt -CloseAppsCountdown 300 -TopMost $true -PromptToSave

Show-InstallationWelcome -CloseApps 'OfficeC2RClient,OfficeClickToRun' -Silent #Kill without warning user because they can't kill these processes anyway

Why does this work?
The second Show-InstallationWelcome line only runs IF the first is completed.

1 Like

Thanks I will give that a try.

I should have included the app I’m installing is Kofax (soon to be Tungsten Automation) Power PDF Advanced and they strongly recommend all Office apps are closed.

I’ve found that if I don’t close all Office applications including OneDrive, then the installation will close Windows Explorer and the users will lose their task bar and sometimes it won’t re-launch.

Adrian, yes it might be auto restarting if it is closed, I’m not sure. I would like to find a way to permanently kill it so I will try adding the second line that That-Annoying-Guy shared to see if it works.

Thank you both!

1 Like