Something changed between v4.1.7 and 4.1.8 regarding the Show-ADTInstallationWelcome cmdlet. 4.1.8 runs better than 4.1.7, but still not as it should.
With 4.1.7 the install would fail completely (explained here PSADTv4.1.7 - Show-ADTInstallationWelcome Error - The Toolkit / General Discussion - PSAppDeployToolkit Community).
With 4.1.8 everything works fine if the process is running as the logged on user. Often times we must elevate processes and this is where the issue arises. If I run a simple script that looks to close Notepad, running with elevated rights (not with the Logged On User account), and I use AllowDefer = $true in the $saiwparams, the install pops the message up, but it doesn’t list the process to close.
Defer works and Install work.
If I do the exact same thing, but instead of AllowDefer = $true, I change that to AllowDeferCloseProcesses = $true, the script closes the process, but doesn’t provide the popup. When the install completes, I do see the completion popup.
This is what strikes me as strange, the log entry:
[Pre-Install] :: Force closing application(s) ['Notepad'] that the user had no permissions to close.
Why would the System account not be able to close a process running as System?
Here is the full log…
I am not pointing the finger at the Toolkit as the source of the issue. I don’t believe it is.
Does anyone have any ideas on what could be in my environment that could cause this sort of behavior? I have already removed or disabled our security tools.



