Toolkit randomly does and doesn't prompt when it should

I use the TK to deploy software. It checks to see if any applications are open that would need to be closed for the install to run properly, prompts you to close them, you do, and it installs as it should. Simple Now, if you DON’T have anything open it should tell you there is about to be an install, click continue to run it, it installs as it should. Here’s the problem, recently when running this with no applications open that would cause an issue, it doesn’t prompt you, and goes forth with the installation as soon as you run the .exe. My thing is I HAVE to have it prompt you regardless of whether or not you have any applications open. Sometimes it does, sometimes it doesn’t.

TL:DR why when I run the .exe does it sometimes prompt that software is about to be installed, and sometimes it doesn’t prompt and starts the install.

Thanks!!

Is the experience different from one package to another, or is it more related to different experience on different clients?

What does your log files say (%WINDIR%\Logs\Software)? I’m having similar issues and suspect it has something to do with the way the toolkit detects if the installation is from OSD Task Sequence or other advertisement.

I find the following line in the log on some clients, when I know for a fact it is not true:
[Initialization] :: Successfully loaded COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script is currently running from a SCCM Task Sequence.

… which leads me to think I have clients out there which have failed during OSD and haven’t completed a proper cleanup.

Anyway, let me know if you’re experiencing the same log entries.

Every now and then I have someone report this issue but I’ve never been able to replicate it or had anyone provide enough information to figure out what the problem might be. You could be onto something with some failure during OSD. Keep in mind that the toolkit does not, by default, take any action based on whether or not it thinks it’s running in an SCCM task sequence. It’s just a boolean variable that can be used by a scripter if needed. I will look into finding a more reliable method of doing this detection if this is not 100% reliable as you say.

Oh,I was under the impression that the sccm ts detection had impact on the “silenceness” of the script, but never read it. But in my case that is the key difference between the clients that are working properly and not (found so far).

I will try and add/remove the sms ts com object from one of my client and run some tests as soon as I’m back at the office.

It doesn’t seem to be related to failed deployments for me anymore. Here’s the latest experience I have (testing with a newly deployed machine, Windows 7 SP1 x64):

Application: Adobe Flash Player 18.0.0.209

Deployment Type (Script Installer)
Programs
Installation program: “Install.bat”
%SYSTEMROOT%\System32\qprocess.exe * | find /i “explorer.exe” >nul 2>&1 && (%~dp0ServiceUIx64.exe powershell.exe -file %~dp0Deploy-Application.ps1 -DeploymentType Install -DeployMode Interactive) || (%~dp0Deploy-Application.exe Install)
User Experience
Installation behaviour: Install for system
Logon requirement: Wheter or not a user is logged on
Installation program visibility: Normal

Deployments
Deployment Settings
Action: Install
Purpose: Required
Scheduling
Installation Deadline: As soon as possible after the available time

And here’s the log file:
EDIT: I’m not friends with the code tag, so I’ve uploaded it to my onedrive:
http://1drv.ms/1M27VFn

<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="10:09:56.477120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="10:09:56.477120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [Adobe_FlashPlayerPlugin_18.0.0.209_x86_EN_01] setup started.]LOG]!><time="10:09:56.579120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Script [C:\Windows\ccmcache\b\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\Windows\ccmcache\b\Deploy-Application.ps1]]LOG]!><time="10:09:56.685120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Script [C:\Windows\ccmcache\b\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\Windows\ccmcache\b\AppDeployToolkit\AppDeployToolkitMain.ps1]]LOG]!><time="10:09:56.754120" date="08-04-2015" component="PSAppDeployToolkitExt" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitExtensions.ps1">
<![LOG[[Initialization] :: [Adobe_FlashPlayerPlugin_18.0.0.209_x86_EN_01] script version is [1.0.0]]LOG]!><time="10:09:56.785120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [Deploy Application] script version is [3.6.1]]LOG]!><time="10:09:56.789120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following non-default parameters were passed to [Deploy Application]: [-DeploymentType "Install"]]LOG]!><time="10:09:56.792120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [App Deploy Toolkit Main] script version is [3.6.4]]LOG]!><time="10:09:56.795120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [App Deploy Toolkit Extensions] version is [1.5.0]]LOG]!><time="10:09:56.799120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Computer Name is [COMPUTERNAME.DOMAIN.no]]LOG]!><time="10:09:56.803120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current User is [NT-MYNDIGHET\SYSTEM]]LOG]!><time="10:09:56.806120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Version is [Microsoft Windows 7 Enterprise Service Pack 1 64-bit 6.1.7601.65536]]LOG]!><time="10:09:56.809120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Type is [Workstation]]LOG]!><time="10:09:56.812120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current Culture is [nb-NO] and UI language is [NB]]LOG]!><time="10:09:56.818120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Hardware Platform is [Physical]]LOG]!><time="10:09:56.911120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell Host is [ConsoleHost] with version [3.0]]LOG]!><time="10:09:56.924120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell Version is [3.0 x64]]LOG]!><time="10:09:56.927120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell CLR (.NET) version is [4.0.30319.1026]]LOG]!><time="10:09:56.931120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="10:09:56.934120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Display session information for all logged on users: 

NTAccount           : DOMAIN\USER
SID                 : S-1-5-21-########-########-#######-#####
UserName            : USER
DomainName          : DOMAIN
SessionId           : 1
SessionName         : Console
ConnectState        : Active
IsCurrentSession    : False
IsConsoleSession    : True
IsActiveUserSession : True
IsUserSession       : True
IsRdpSession        : False
IsLocalAdmin        : False
LogonTime           : 04.08.2015 09:54:47
IdleTime            : 00:00:00
DisconnectTime      : 
ClientName          : 
ClientProtocolType  : 
ClientDirectory     : 
ClientBuildNumber   : 0

]LOG]!><time="10:09:57.433120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following users are logged on to the system: [DOMAIN\USER].]LOG]!><time="10:09:57.439120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current process is running under a system account [NT-MYNDIGHET\SYSTEM].]LOG]!><time="10:09:57.444120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following user is the console user [DOMAIN\USER] (user with control of physical monitor, keyboard, and mouse).]LOG]!><time="10:09:57.449120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The active logged on user is [DOMAIN\USER].]LOG]!><time="10:09:57.454120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The active logged on user [DOMAIN\USER] has a primary UI language of [NB].]LOG]!><time="10:09:57.458120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following UI messages were imported from the config XML file: [UI_Messages_EN].]LOG]!><time="10:09:57.463120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The active logged on user [DOMAIN\USER] has a DPI scale factor of [125] with DPI pixels [120].]LOG]!><time="10:09:57.471120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Unable to load COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.]LOG]!><time="10:09:57.485120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [EventSystem] exists.]LOG]!><time="10:09:57.665120" date="08-04-2015" component="Test-ServiceExists" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get the service [EventSystem] startup mode.]LOG]!><time="10:09:57.696120" date="08-04-2015" component="Get-ServiceStartMode" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [EventSystem] startup mode is set to [Automatic].]LOG]!><time="10:09:57.789120" date="08-04-2015" component="Get-ServiceStartMode" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get the service object for service [EventSystem].]LOG]!><time="10:09:57.823120" date="08-04-2015" component="Start-ServiceAndDependencies" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [EventSystem] with display name [COM+ Event System] has a status of [Running].]LOG]!><time="10:09:57.861120" date="08-04-2015" component="Start-ServiceAndDependencies" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [RpcSs] exists.]LOG]!><time="10:09:57.956120" date="08-04-2015" component="Test-ServiceExists" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get the service [RpcSs] startup mode.]LOG]!><time="10:09:57.965120" date="08-04-2015" component="Get-ServiceStartMode" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [RpcSs] startup mode is set to [Automatic].]LOG]!><time="10:09:58.042120" date="08-04-2015" component="Get-ServiceStartMode" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get the service object for service [RpcSs].]LOG]!><time="10:09:58.051120" date="08-04-2015" component="Start-ServiceAndDependencies" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [RpcSs] with display name [Remote Procedure Call (RPC)] has a status of [Running].]LOG]!><time="10:09:58.056120" date="08-04-2015" component="Start-ServiceAndDependencies" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [EventLog] exists.]LOG]!><time="10:09:58.150120" date="08-04-2015" component="Test-ServiceExists" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get the service [EventLog] startup mode.]LOG]!><time="10:09:58.159120" date="08-04-2015" component="Get-ServiceStartMode" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [EventLog] startup mode is set to [Automatic].]LOG]!><time="10:09:58.237120" date="08-04-2015" component="Get-ServiceStartMode" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get the service object for service [EventLog].]LOG]!><time="10:09:58.248120" date="08-04-2015" component="Start-ServiceAndDependencies" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [EventLog] with display name [Windows Event Log] has a status of [Running].]LOG]!><time="10:09:58.253120" date="08-04-2015" component="Start-ServiceAndDependencies" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [Schedule] exists.]LOG]!><time="10:09:58.351120" date="08-04-2015" component="Test-ServiceExists" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get the service [Schedule] startup mode.]LOG]!><time="10:09:58.360120" date="08-04-2015" component="Get-ServiceStartMode" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [Schedule] startup mode is set to [Automatic].]LOG]!><time="10:09:58.438120" date="08-04-2015" component="Get-ServiceStartMode" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get the service object for service [Schedule].]LOG]!><time="10:09:58.447120" date="08-04-2015" component="Start-ServiceAndDependencies" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Service [Schedule] with display name [Task Scheduler] has a status of [Running].]LOG]!><time="10:09:58.452120" date="08-04-2015" component="Start-ServiceAndDependencies" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The task scheduler service is in a healthy state: True.]LOG]!><time="10:09:58.461120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Session 0 detected, process not running in user interactive mode; deployment mode set to [NonInteractive].]LOG]!><time="10:09:58.465120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Installation is running in [NonInteractive] mode.]LOG]!><time="10:09:58.469120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Deployment type is [Installation].]LOG]!><time="10:09:58.472120" date="08-04-2015" component="PSAppDeployToolkit" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="AppDeployToolkitMain.ps1">
<![LOG[[Pre-Installation] :: Evaluate disk space requirements.]LOG]!><time="10:09:58.494120" date="08-04-2015" component="Show-InstallationWelcome" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Retrieve free disk space for drive [C:].]LOG]!><time="10:09:58.515120" date="08-04-2015" component="Get-FreeDiskSpace" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Free disk space for drive [C:]: [209226 MB].]LOG]!><time="10:09:58.547120" date="08-04-2015" component="Get-FreeDiskSpace" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Successfully passed minimum disk space requirement check.]LOG]!><time="10:09:58.571120" date="08-04-2015" component="Show-InstallationWelcome" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Check for running application(s) [iexplore,chrome,firefox]...]LOG]!><time="10:09:58.598120" date="08-04-2015" component="Get-RunningProcesses" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: The following processes are running: [iexplore].]LOG]!><time="10:09:58.626120" date="08-04-2015" component="Get-RunningProcesses" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Resolve process descriptions...]LOG]!><time="10:09:58.630120" date="08-04-2015" component="Get-RunningProcesses" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Finished checking running application(s).]LOG]!><time="10:09:58.662120" date="08-04-2015" component="Get-RunningProcesses" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Force close application(s) [Internet Explorer] without prompting user.]LOG]!><time="10:09:58.671120" date="08-04-2015" component="Show-InstallationWelcome" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: [-BlockExecution] parameter specified.]LOG]!><time="10:10:00.719120" date="08-04-2015" component="Show-InstallationWelcome" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Pre-Installation] :: Bypassing Function [Block-AppExecution] [Mode: NonInteractive].]LOG]!><time="10:10:00.751120" date="08-04-2015" component="Block-AppExecution" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Get properties from MSI file [C:\Windows\ccmcache\b\Files\install_flash_player_18_plugin.msi] in table [Property].]LOG]!><time="10:10:04.527120" date="08-04-2015" component="Get-MsiTableProperty" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Get information for installed Product Code [{448D7DEC-36F1-4091-B419-C5487BDEB867}]...]LOG]!><time="10:10:04.712120" date="08-04-2015" component="Get-InstalledApplication" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing MSI action [Install]...]LOG]!><time="10:10:04.879120" date="08-04-2015" component="Execute-MSI" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: [msiexec.exe] successfully resolved to fully qualified path [C:\WINDOWS\system32\msiexec.exe].]LOG]!><time="10:10:04.934120" date="08-04-2015" component="Execute-Process" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Check to see if mutex [Global\_MSIExecute] is available. Wait up to [10 minute(s)] for the mutex to become available.]LOG]!><time="10:10:04.964120" date="08-04-2015" component="Test-IsMutexAvailable" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Mutex [Global\_MSIExecute] is available for an exclusive lock.]LOG]!><time="10:10:04.987120" date="08-04-2015" component="Test-IsMutexAvailable" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Working Directory is [C:\Windows\ccmcache\b\Files].]LOG]!><time="10:10:06.117120" date="08-04-2015" component="Execute-Process" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing [C:\WINDOWS\system32\msiexec.exe /i "C:\Windows\ccmcache\b\Files\install_flash_player_18_plugin.msi" TRANSFORMS="C:\Windows\ccmcache\b\Files\install_flash_player_18_plugin.mst" TRANSFORMSSECURE=1 /qn /l*v 'C:\WINDOWS\Logs\Software\flash_player_18_plugin'  /L*v "C:\WINDOWS\Logs\Software\install_flash_player_18_plugin_Install.log"]...]LOG]!><time="10:10:06.123120" date="08-04-2015" component="Execute-Process" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Execution completed successfully with exit code [0].]LOG]!><time="10:10:11.735120" date="08-04-2015" component="Execute-Process" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Get properties from MSI file [C:\Windows\ccmcache\b\Files\install_flash_player_18_active_x.msi] in table [Property].]LOG]!><time="10:10:11.753120" date="08-04-2015" component="Get-MsiTableProperty" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Get information for installed Product Code [{B3DADA45-F0ED-48FD-946E-7E82C2229D59}]...]LOG]!><time="10:10:11.839120" date="08-04-2015" component="Get-InstalledApplication" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing MSI action [Install]...]LOG]!><time="10:10:12.037120" date="08-04-2015" component="Execute-MSI" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: [msiexec.exe] successfully resolved to fully qualified path [C:\WINDOWS\system32\msiexec.exe].]LOG]!><time="10:10:12.051120" date="08-04-2015" component="Execute-Process" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Check to see if mutex [Global\_MSIExecute] is available. Wait up to [10 minute(s)] for the mutex to become available.]LOG]!><time="10:10:12.058120" date="08-04-2015" component="Test-IsMutexAvailable" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Mutex [Global\_MSIExecute] is available for an exclusive lock.]LOG]!><time="10:10:12.063120" date="08-04-2015" component="Test-IsMutexAvailable" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Working Directory is [C:\Windows\ccmcache\b\Files].]LOG]!><time="10:10:13.073120" date="08-04-2015" component="Execute-Process" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Executing [C:\WINDOWS\system32\msiexec.exe /i "C:\Windows\ccmcache\b\Files\install_flash_player_18_active_x.msi" TRANSFORMS="C:\Windows\ccmcache\b\Files\install_flash_player_18_active_x.mst" TRANSFORMSSECURE=1 /qn /l*v 'C:\WINDOWS\Logs\Software\flash_player_18_activex'  /L*v "C:\WINDOWS\Logs\Software\install_flash_player_18_active_x_Install.log"]...]LOG]!><time="10:10:13.078120" date="08-04-2015" component="Execute-Process" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Execution completed successfully with exit code [0].]LOG]!><time="10:10:19.846120" date="08-04-2015" component="Execute-Process" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Post-Installation] :: Copy file in path [C:\Windows\ccmcache\b\SupportFiles\mms.cfg] to destination [C:\WINDOWS\SysWOW64\Macromed\Flash\mms.cfg].]LOG]!><time="10:10:19.870120" date="08-04-2015" component="Copy-File" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Post-Installation] :: Copy file in path [C:\Windows\ccmcache\b\SupportFiles\mms.cfg] to destination [C:\WINDOWS\System32\Macromed\Flash\mms.cfg].]LOG]!><time="10:10:19.883120" date="08-04-2015" component="Copy-File" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Post-Installation] :: Bypassing Function [Unblock-AppExecution] [Mode: NonInteractive].]LOG]!><time="10:10:19.930120" date="08-04-2015" component="Unblock-AppExecution" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Post-Installation] :: Adobe_FlashPlayerPlugin_18.0.0.209_x86_EN_01 Installation completed with exit code [0].]LOG]!><time="10:10:19.954120" date="08-04-2015" component="Exit-Script" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">
<![LOG[[Post-Installation] :: -------------------------------------------------------------------------------]LOG]!><time="10:10:19.957120" date="08-04-2015" component="Exit-Script" context="NT-MYNDIGHET\SYSTEM" type="1" thread="960" file="Deploy-Application.ps1">

My show-installationwelcome is as follows:
Show-InstallationWelcome -CloseApps 'iexplore,chrome,firefox' -CloseAppsCountdown 360 -CheckDiskSpace -PersistPrompt -BlockExecution

When deploying to user and set to available instead of machine and required, I do get the GUI. So I am starting to think it’s a CM issue more than an issue with the toolkit. Any thoughts on this? Kind of stuck now.

What I’m seeing is this. You’ve set the package to install: Whether or not a user is logged on

A UI can only be shown if a user is actually logged into the machine even if you’re using ServiceUI.exe. All ServiceUI.exe does is display the UI in the session of a logged on user. Since there was a user logged into the machine at the time the machine got this push, a UI was shown. If there is no user logged into the machine, the toolkit recognizes that and will make the toolkit silent regardless of what you specified on the commandline.

If you are noticing behavior other that what I’ve described above, then there is a problem that we need to get to the bottom of.

Hi I’m seeing this intermittent issue.
I just killed my manager’s Outlook mid writing email.
CM client version 5.00.9058.1047

The application deployment type is set to “Install for system”, “Whether or not user is logged on”, “hidden”.
With the same application, if “Install” it from the software center, it displays correctly. So I don’t believe it’s a problem with these settings. PSADT pushes the GUI to the logged on user, not CM.

I was thinking it might be something like the user hasn’t been signed in, and signed in mid-install, but checked user had already been signed in for more than 10 minutes.

Here is the log. The most notable entries:
[Initialization] :: The following non-default parameters were passed to [Deploy Application]: [-DeployMode:‘Interactive’ -DeploymentType:‘Install’ -AllowRebootPassThru:$true] PSAppDeployToolkit 05/17/2022 8:40:03 AM 3144 (0x0C48)
[Initialization] :: The following user is the console user [mydomain\myuser] (user with control of physical monitor, keyboard, and mouse). PSAppDeployToolkit 05/17/2022 8:40:04 AM 3144 (0x0C48)
[Pre-Installation] :: Force closing application(s) [eDocs,Microsoft Outlook,Windows Explorer] without prompting user. Show-InstallationWelcome 05/17/2022 8:40:04 AM 3144 (0x0C48)


[Initialization] :: *******************************************************************************	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: *******************************************************************************	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: [OpenText_eDOCSDMExtensions_16.7.7_EN_03] setup started.	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: Script [C:\windows\ccmcache\a\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\windows\ccmcache\a\Deploy-Application.ps1]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: Script [C:\windows\ccmcache\a\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\windows\ccmcache\a\AppDeployToolkit\AppDeployToolkitMain.ps1]	PSAppDeployToolkitExt	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: [OpenText_eDOCSDMExtensions_16.7.7_EN_03] script version is [3.0.0]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: [OpenText_eDOCSDMExtensions_16.7.7_EN_03] script date is [01/24/2022]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: [OpenText_eDOCSDMExtensions_16.7.7_EN_03] script author is [perryj]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: [Deploy Application] script version is [3.8.4]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: The following non-default parameters were passed to [Deploy Application]: [-DeployMode:'Interactive' -DeploymentType:'Install' -AllowRebootPassThru:$true]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: [App Deploy Toolkit Main] script version is [3.8.4]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: [App Deploy Toolkit Extensions] version is [3.8.4]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: Computer Name is [MOB6909.my.fqdn.domain]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: Current User is [NT AUTHORITY\SYSTEM]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: OS Version is [Microsoft Windows 10 Enterprise 64-bit 10.0.19044.1645]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: OS Type is [Workstation]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: Current Culture is [en-US], language is [EN] and UI language is [EN]	PSAppDeployToolkit	05/17/2022 8:40:03 AM	3144 (0x0C48)
[Initialization] :: Hardware Platform is [Physical]	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: PowerShell Host is [ConsoleHost] with version [5.1.19041.1645]	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: PowerShell Version is [5.1.19041.1645 x64]	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: PowerShell CLR (.NET) version is [4.0.30319.42000]	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: *******************************************************************************	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: Display session information for all logged on users: 


NTAccount           : mydomain\myuser
SID                 : S-1-5-...-my-user-Guid...
UserName            : myuser
DomainName          : mydomain
SessionId           : 1
SessionName         : Console
ConnectState        : Active
IsCurrentSession    : False
IsConsoleSession    : True
IsActiveUserSession : True
IsUserSession       : True
IsRdpSession        : False
IsLocalAdmin        : False
LogonTime           : 5/17/2022 8:07:58 AM
IdleTime            : 00:00:00
DisconnectTime      : 
ClientName          : 
ClientProtocolType  : 
ClientDirectory     : 
ClientBuildNumber   : 0



	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: The following users are logged on to the system: [mydomain\myuser].	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: Current process is running under a system account [NT AUTHORITY\SYSTEM].	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: The following user is the console user [mydomain\myuser] (user with control of physical monitor, keyboard, and mouse).	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: The active logged on user is [mydomain\myuser].	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: The active logged on user [mydomain\myuser] has a primary UI language of [EN].	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: The following UI messages were imported from the config XML file: [UI_Messages_EN].	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: The active logged on user [mydomain\myuser] has a DPI scale factor of [100] with DPI pixels [96].	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: Unable to load COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: Service [Schedule] exists.	Test-ServiceExists	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: Getting the service [Schedule] startup mode.	Get-ServiceStartMode	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: Service [Schedule] startup mode is set to [Automatic].	Get-ServiceStartMode	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: Getting the service object for service [Schedule].	Start-ServiceAndDependencies	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: Service [Schedule] with display name [Task Scheduler] has a status of [Running].	Start-ServiceAndDependencies	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: The task scheduler service is in a healthy state: True.	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: Session 0 detected, process not running in user interactive mode; deployment mode set to [NonInteractive].	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: Installation is running in [NonInteractive] mode.	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Initialization] :: Deployment type is [Installation].	PSAppDeployToolkit	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Pre-Installation] :: Updating registry key value: [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] [AutoRestartShell = 0].	Set-RegistryKey	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Pre-Installation] :: Checking for running applications: [explorer,winword,excel,powerpnt,outlook,mspub,msaccess,visio,winproj,DM,Acrobat]	Get-RunningProcesses	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Pre-Installation] :: The following processes are running: [DM,explorer,OUTLOOK].	Get-RunningProcesses	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Pre-Installation] :: Force closing application(s) [eDocs,Microsoft Outlook,Windows Explorer] without prompting user.	Show-InstallationWelcome	05/17/2022 8:40:04 AM	3144 (0x0C48)
[Pre-Installation] :: Resolving product code to a publisher, application name, and version.	Execute-MSI	05/17/2022 8:40:06 AM	3144 (0x0C48)
[Pre-Installation] :: Getting information for installed Product Code [{1E54463D-A7B7-4A87-8692-CB0593A427FA}]...	Get-InstalledApplication	05/17/2022 8:40:06 AM	3144 (0x0C48)
[Pre-Installation] :: Skipped 0 entries while searching, because they were considered Microsoft updates.	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Found no application based on the supplied parameters.	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Getting information for installed Product Code [{1E54463D-A7B7-4A87-8692-CB0593A427FA}]...	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Skipped 0 entries while searching, because they were considered Microsoft updates.	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Found no application based on the supplied parameters.	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: The MSI is not installed on this system. Skipping action [Uninstall]...	Execute-MSI	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Resolving product code to a publisher, application name, and version.	Execute-MSI	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Getting information for installed Product Code [{83DF02A1-851B-42FA-80BA-35549A82C92B}]...	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Skipped 0 entries while searching, because they were considered Microsoft updates.	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Found no application based on the supplied parameters.	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Getting information for installed Product Code [{83DF02A1-851B-42FA-80BA-35549A82C92B}]...	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Skipped 0 entries while searching, because they were considered Microsoft updates.	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Found no application based on the supplied parameters.	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: The MSI is not installed on this system. Skipping action [Uninstall]...	Execute-MSI	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Bypassing Show-InstallationProgress [Mode: NonInteractive]. Status message:Installation in progress. Please wait...	Show-InstallationProgress	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Getting information for installed Product Code [{43AC981F-BDD2-4655-A62E-64310DAABB10}]...	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Found installed application [OpenText eDOCS DM 16.7 Extensions (x64)] version [16.70.971] matching product code [{43AC981F-BDD2-4655-A62E-64310DAABB10}].	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: Skipped 0 entries while searching, because they were considered Microsoft updates.	Get-InstalledApplication	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Pre-Installation] :: OpenText eDOCS DM Extensions 16.7.7 detected as already installed as @{InstallSource=C:\windows\ccmcache\3\Files\; UninstallString=MsiExec.exe /I{43AC981F-BDD2-4655-A62E-64310DAABB10}; UninstallSubkey={43AC981F-BDD2-4655-A62E-64310DAABB10}; InstallLocation=; ProductCode={43AC981F-BDD2-4655-A62E-64310DAABB10}; Is64BitApplication=True; Publisher=Open Text Corporation; InstallDate=20220329; DisplayVersion=16.70.971; DisplayName=OpenText eDOCS DM 16.7 Extensions (x64)}	Deploy Application	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Patching] :: Getting version info for file [C:\Program Files (x86)\Open Text\DM Extensions\DM.exe].	Get-FileVersion	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Patching] :: File version is [16.7.7.446].	Get-FileVersion	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Patching] :: Current version: 16.7.7.446 targetVersion:  RequiredUpgrade: False	Deploy Application	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Patching] :: Copying file in path [C:\windows\ccmcache\a\SupportFiles\eDocs.lnk] to destination [C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Open Text\DM Extensions\].	Copy-File	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Patching] :: File copy completed successfully.	Copy-File	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Post-Installation] :: Updating registry key value: [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] [AutoRestartShell = 1].	Set-RegistryKey	05/17/2022 8:40:07 AM	3144 (0x0C48)
[Post-Installation] :: Creating [C:\windows\TEMP\PSAppDeployToolkit\ExecuteAsUser].	Execute-ProcessAsUs

I think I found the solution:
Tick the checkbox for “Allow user to view and interact with the program installation”, yet keep program installation visibility as hidden. I swear this combination of settings wasn’t possible with old SCCM versions.

The behavior I’m seeing:
With it unchecked: If the user launches the install from software center, they are tagged as the IsCurrenSession:True. If the install happens at a scheduled time/app enforcement no GUI is displayed.
With it checked: As long as deployment mode is interactive, the GUI to close apps is displayed to the user.

Those are my initial findings.