Silent installation , only popup when program is in use

I want to install the software complete silent , only a popup should come to close the program when it is in use.
At the moment the silent switch force the app to close without userinteraction.

With is the correct switch ? I tried a few without any success…

no one any idea? i do not want a dirty close of a program when it is in use…

Hi Peter

You can use Show-InstallationWelcome function to show dialog prompt to the user with the information about installation and action to be performed. This function uses many parameters which can be helpful for you to close the running apps first and then install/uninstall application silently. Please refer AppDeployToolkitHelp.ps1 from the toolkit wrapper for more information.

Just get the running process prior to showing the “show-installationwelcome”. Something like this:

$activeProcess = Get-Process ‘Notepad’ -ErrorAction SilentlyContinue

if ($activeProcess -ne $null) { show-installationwelcome -closeapps ‘notepad’ }
else { }

2 Likes