Force Closing a process

Hello All,

So I am new to PSADT, and slowly learning. There is a program that I am trying to test with it right now. It has a changing application name based on the version of the program installed, but the EXE is always the same.

In order to update the version it needs to be closed this is what I put in to try and get it stop Show-InstallationWelcome -Stop-Process ‘etech.exe’ but it keeps erroring out. I am still reading stuff but figured I would post here cause it may be faster.

Thank you.

hi,

try only etech and not etech.exe

Greg

1 Like

You may want to have a look at the PSADT reference for the Show-InstallationWelcome function: Show-InstallationWelcome · PSAppDeployToolkit

The app you wish to close is done by the process name not the executable name (so in thius case drop the .exe from the end)
You probably want:
Show-InstallationWelcome -CloseApps 'etech’

1 Like

I concur with Adrian, this approach will work, just wanted to add, check EventViewer for the running process\name.

1 Like