Comments (19)
Can you please point out where the toolkit suggests that selecting "Continue" will close apps? Because this is incorrect and should be fixed. Continue does not close apps. Continue is an option available to the user if they closed the applications on their own and now want to Continue with the install. The script will at time verify if the applications were actually closed and then bring the window back if they were not close.
from psappdeploytoolkit.
Log shows that processes are detected but there is no prompt telling the EU to close the detected processes. only shows defer and continue button. Clicking Continue just opens the same window because the processes are still running, but there is no Dialog to close the running processes.
from psappdeploytoolkit.
I just updated one of my installations with this version, and I get the prompts as one should.
If the program isn't an active process from closing it manually the close button won't appear, though, which is also intended.
from psappdeploytoolkit.
Can you share your log file? I am not able to replicate the issue. If a program is open, I am getting the correct dialog window like the user above.
from psappdeploytoolkit.
Console Output Since LogFile does not show errors. As you can see in the picture does not show processes to close using Show-InstallationWelcome -CloseApps 'iexplore,AcroRd32,cidaemon' -AllowDefer -DeferTimes 3
PS C:\Workbench\Adobe_Reader> C:\Workbench\Adobe_Reader\Deploy-Application.ps1
[04-14-2015 18:36:31.978] [Initialization] [PSAppDeployToolkit] :: ***************************************************************************
****
[04-14-2015 18:36:31.978] [Initialization] [PSAppDeployToolkit] :: ***************************************************************************
****
[04-14-2015 18:36:32.038] [Initialization] [PSAppDeployToolkit] :: [Adobe_Reader_11.0.09_EN_01] setup started.
[04-14-2015 18:36:32.111] [Initialization] [PSAppDeployToolkit] :: Script [C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1
] dot-source invoked by [C:\Workbench\Adobe_Reader\Deploy-Application.ps1]
[04-14-2015 18:36:32.119] [Initialization] [PSAppDeployToolkitExt] :: Script [C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitExten
sions.ps1] dot-source invoked by [C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1]
[04-14-2015 18:36:32.129] [Initialization] [PSAppDeployToolkit] :: [Adobe_Reader_11.0.09_EN_01] script version is [1.0.0]
[04-14-2015 18:36:32.135] [Initialization] [PSAppDeployToolkit] :: [Deploy Application] script version is [3.6.1]
[04-14-2015 18:36:32.143] [Initialization] [PSAppDeployToolkit] :: [App Deploy Toolkit Main] script version is [3.6.2]
[04-14-2015 18:36:32.158] [Initialization] [PSAppDeployToolkit] :: [App Deploy Toolkit Extensions] version is [1.5.0]
[04-14-2015 18:36:32.172] [Initialization] [PSAppDeployToolkit] :: Computer Name is [HX68XZ1.txaus.ds.sjhs.com]
[04-14-2015 18:36:32.178] [Initialization] [PSAppDeployToolkit] :: Current User is [TXAUS\rsorensen]
[04-14-2015 18:36:32.193] [Initialization] [PSAppDeployToolkit] :: OS Version is [Microsoft Windows 7 Professional Service Pack 1 64-bit 6.1.7
601.65536]
[04-14-2015 18:36:32.199] [Initialization] [PSAppDeployToolkit] :: OS Type is [Workstation]
[04-14-2015 18:36:32.206] [Initialization] [PSAppDeployToolkit] :: Current Culture is [en-US] and UI language is [EN]
[04-14-2015 18:36:32.219] [Initialization] [Get-HardwarePlatform] :: Retrieve hardware platform information.
[04-14-2015 18:36:32.262] [Initialization] [PSAppDeployToolkit] :: Hardware Platform is [Physical]
[04-14-2015 18:36:32.269] [Initialization] [PSAppDeployToolkit] :: PowerShell Host is [Windows PowerShell ISE Host] with version [2.0]
[04-14-2015 18:36:32.275] [Initialization] [PSAppDeployToolkit] :: PowerShell Version is [2.0 x64]
[04-14-2015 18:36:32.280] [Initialization] [PSAppDeployToolkit] :: PowerShell CLR (.NET) version is [2.0.50727.5485]
[04-14-2015 18:36:32.286] [Initialization] [PSAppDeployToolkit] :: ***************************************************************************
****
Split-Path : Cannot find drive. A drive with the name '
[psobject[]]$LoggedOnUserSessions = Get-LoggedOnUser
[string[]]$usersLoggedOn = $LoggedOnUserSessions | ForEach-Object { $_.NTAccount }
[psobject]$RunAsActiveUser = $null
If ($usersLoggedOn) {
# Get account and session details for the current process if it is running as a logged in user
[psobject]$CurrentLoggedOnUserSession = $LoggedOnUserSessions | Where-Object { $_.IsCurrentSession }
# Get account and session details for the account running as the console user (user with control of the physical monitor, keyboard,
and mouse)
[psobject]$CurrentConsoleUserSession = $LoggedOnUserSessions | Where-Object { $_.IsConsoleSession }
# Determine the account that will be used to execute commands in the user session when toolkit is running under the SYSTEM account
# One liner to get this info' does not exist.
At C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1:552 char:176
+ If ($script:MyInvocation.Value.ScriptName) { [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf }
Else { [string]$ScriptSource = Split-Path <<<< -Path $script:MyInvocation.MyCommand.Definition -Leaf }
+ CategoryInfo : ObjectNotFound: (
[psobject[]]...o get this info:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitPathCommand
Split-Path : Cannot find drive. A drive with the name '
[psobject[]]$LoggedOnUserSessions = Get-LoggedOnUser
[string[]]$usersLoggedOn = $LoggedOnUserSessions | ForEach-Object { $_.NTAccount }
[psobject]$RunAsActiveUser = $null
If ($usersLoggedOn) {
# Get account and session details for the current process if it is running as a logged in user
[psobject]$CurrentLoggedOnUserSession = $LoggedOnUserSessions | Where-Object { $_.IsCurrentSession }
# Get account and session details for the account running as the console user (user with control of the physical monitor, keyboard,
and mouse)
[psobject]$CurrentConsoleUserSession = $LoggedOnUserSessions | Where-Object { $_.IsConsoleSession }
# Determine the account that will be used to execute commands in the user session when toolkit is running under the SYSTEM account
# One liner to get this info' does not exist.
At C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1:552 char:176
+ If ($script:MyInvocation.Value.ScriptName) { [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf }
Else { [string]$ScriptSource = Split-Path <<<< -Path $script:MyInvocation.MyCommand.Definition -Leaf }
+ CategoryInfo : ObjectNotFound: (
[psobject[]]...o get this info:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitPathCommand
Split-Path : Cannot find drive. A drive with the name '
[psobject[]]$LoggedOnUserSessions = Get-LoggedOnUser
[string[]]$usersLoggedOn = $LoggedOnUserSessions | ForEach-Object { $_.NTAccount }
[psobject]$RunAsActiveUser = $null
If ($usersLoggedOn) {
# Get account and session details for the current process if it is running as a logged in user
[psobject]$CurrentLoggedOnUserSession = $LoggedOnUserSessions | Where-Object { $_.IsCurrentSession }
# Get account and session details for the account running as the console user (user with control of the physical monitor, keyboard,
and mouse)
[psobject]$CurrentConsoleUserSession = $LoggedOnUserSessions | Where-Object { $_.IsConsoleSession }
# Determine the account that will be used to execute commands in the user session when toolkit is running under the SYSTEM account
# One liner to get this info' does not exist.
At C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1:552 char:176
+ If ($script:MyInvocation.Value.ScriptName) { [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf }
Else { [string]$ScriptSource = Split-Path <<<< -Path $script:MyInvocation.MyCommand.Definition -Leaf }
+ CategoryInfo : ObjectNotFound: (
[psobject[]]...o get this info:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitPathCommand
[04-14-2015 18:36:32.377] [Initialization] [Get-LoggedOnUser] :: Get session information for all logged on users.
Split-Path : Cannot find drive. A drive with the name '
[psobject[]]$LoggedOnUserSessions = Get-LoggedOnUser
[string[]]$usersLoggedOn = $LoggedOnUserSessions | ForEach-Object { $_.NTAccount }
[psobject]$RunAsActiveUser = $null
If ($usersLoggedOn) {
# Get account and session details for the current process if it is running as a logged in user
[psobject]$CurrentLoggedOnUserSession = $LoggedOnUserSessions | Where-Object { $_.IsCurrentSession }
# Get account and session details for the account running as the console user (user with control of the physical monitor, keyboard,
and mouse)
[psobject]$CurrentConsoleUserSession = $LoggedOnUserSessions | Where-Object { $_.IsConsoleSession }
# Determine the account that will be used to execute commands in the user session when toolkit is running under the SYSTEM account
# One liner to get this info' does not exist.
At C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1:552 char:176
+ If ($script:MyInvocation.Value.ScriptName) { [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf }
Else { [string]$ScriptSource = Split-Path <<<< -Path $script:MyInvocation.MyCommand.Definition -Leaf }
+ CategoryInfo : ObjectNotFound: (
[psobject[]]...o get this info:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitPathCommand
[04-14-2015 18:36:33.070] [Initialization] [Convert-RegistryPath] :: Return fully qualified registry key path [Registry::HKEY_USERS\S-1-5-21-3
278330371-3405667261-149073299-9931\Control Panel\International\User Profile]
[04-14-2015 18:36:33.077] [Initialization] [Get-RegistryKey] :: Registry key [Registry::HKEY_USERS\S-1-5-21-3278330371-3405667261-149073299-99
31\Control Panel\International\User Profile] does not exist
[04-14-2015 18:36:33.120] [Initialization] [Convert-RegistryPath] :: Return fully qualified registry key path [Registry::HKEY_USERS\S-1-5-21-3
278330371-3405667261-149073299-9931\Control Panel\Desktop]
[04-14-2015 18:36:33.127] [Initialization] [Get-RegistryKey] :: Get registry key [Registry::HKEY_USERS\S-1-5-21-3278330371-3405667261-14907329
9-9931\Control Panel\Desktop] value [PrefferedUILanguages]
[04-14-2015 18:36:33.156] [Initialization] [Convert-RegistryPath] :: Return fully qualified registry key path [Registry::HKEY_USERS\S-1-5-21-3
278330371-3405667261-149073299-9931\Control Panel\Desktop\MuiCached]
[04-14-2015 18:36:33.166] [Initialization] [Get-RegistryKey] :: Get registry key [Registry::HKEY_USERS\S-1-5-21-3278330371-3405667261-14907329
9-9931\Control Panel\Desktop\MuiCached] value [MachinePreferredUILanguages]
Split-Path : Cannot find drive. A drive with the name '
# If a user is logged on, then get display scale factor for logged on user (even if running in session 0)
[boolean]$UserDisplayScaleFactor = $false
If ($RunAsActiveUser) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop\WindowMetrics' -Value 'AppliedDPI' -SID $RunAsActiveUser.SID
If (-not ([string]$dpiPixels)) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop' -Value 'LogPixels' -SID $RunAsActiveUser.SID
}
[boolean]$UserDisplayScaleFactor = $true
}
If (-not ([string]$dpiPixels)) {
# This registry setting only exists if system scale factor has been changed at least once
[int32]$dpiPixels = Get-RegistryKey -Key 'HKLM' does not exist.
At C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1:552 char:176
+ If ($script:MyInvocation.Value.ScriptName) { [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf }
Else { [string]$ScriptSource = Split-Path <<<< -Path $script:MyInvocation.MyCommand.Definition -Leaf }
+ CategoryInfo : ObjectNotFound: (
# If a user...yKey -Key 'HKLM:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitPathCommand
Split-Path : Cannot find drive. A drive with the name '
# If a user is logged on, then get display scale factor for logged on user (even if running in session 0)
[boolean]$UserDisplayScaleFactor = $false
If ($RunAsActiveUser) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop\WindowMetrics' -Value 'AppliedDPI' -SID $RunAsActiveUser.SID
If (-not ([string]$dpiPixels)) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop' -Value 'LogPixels' -SID $RunAsActiveUser.SID
}
[boolean]$UserDisplayScaleFactor = $true
}
If (-not ([string]$dpiPixels)) {
# This registry setting only exists if system scale factor has been changed at least once
[int32]$dpiPixels = Get-RegistryKey -Key 'HKLM' does not exist.
At C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1:552 char:176
+ If ($script:MyInvocation.Value.ScriptName) { [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf }
Else { [string]$ScriptSource = Split-Path <<<< -Path $script:MyInvocation.MyCommand.Definition -Leaf }
+ CategoryInfo : ObjectNotFound: (
# If a user...yKey -Key 'HKLM:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitPathCommand
Split-Path : Cannot find drive. A drive with the name '
# If a user is logged on, then get display scale factor for logged on user (even if running in session 0)
[boolean]$UserDisplayScaleFactor = $false
If ($RunAsActiveUser) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop\WindowMetrics' -Value 'AppliedDPI' -SID $RunAsActiveUser.SID
If (-not ([string]$dpiPixels)) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop' -Value 'LogPixels' -SID $RunAsActiveUser.SID
}
[boolean]$UserDisplayScaleFactor = $true
}
If (-not ([string]$dpiPixels)) {
# This registry setting only exists if system scale factor has been changed at least once
[int32]$dpiPixels = Get-RegistryKey -Key 'HKLM' does not exist.
At C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1:552 char:176
+ If ($script:MyInvocation.Value.ScriptName) { [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf }
Else { [string]$ScriptSource = Split-Path <<<< -Path $script:MyInvocation.MyCommand.Definition -Leaf }
+ CategoryInfo : ObjectNotFound: (
# If a user...yKey -Key 'HKLM:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitPathCommand
Split-Path : Cannot find drive. A drive with the name '
# If a user is logged on, then get display scale factor for logged on user (even if running in session 0)
[boolean]$UserDisplayScaleFactor = $false
If ($RunAsActiveUser) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop\WindowMetrics' -Value 'AppliedDPI' -SID $RunAsActiveUser.SID
If (-not ([string]$dpiPixels)) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop' -Value 'LogPixels' -SID $RunAsActiveUser.SID
}
[boolean]$UserDisplayScaleFactor = $true
}
If (-not ([string]$dpiPixels)) {
# This registry setting only exists if system scale factor has been changed at least once
[int32]$dpiPixels = Get-RegistryKey -Key 'HKLM' does not exist.
At C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1:552 char:176
+ If ($script:MyInvocation.Value.ScriptName) { [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf }
Else { [string]$ScriptSource = Split-Path <<<< -Path $script:MyInvocation.MyCommand.Definition -Leaf }
+ CategoryInfo : ObjectNotFound: (
# If a user...yKey -Key 'HKLM:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitPathCommand
Split-Path : Cannot find drive. A drive with the name '
# If a user is logged on, then get display scale factor for logged on user (even if running in session 0)
[boolean]$UserDisplayScaleFactor = $false
If ($RunAsActiveUser) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop\WindowMetrics' -Value 'AppliedDPI' -SID $RunAsActiveUser.SID
If (-not ([string]$dpiPixels)) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop' -Value 'LogPixels' -SID $RunAsActiveUser.SID
}
[boolean]$UserDisplayScaleFactor = $true
}
If (-not ([string]$dpiPixels)) {
# This registry setting only exists if system scale factor has been changed at least once
[int32]$dpiPixels = Get-RegistryKey -Key 'HKLM' does not exist.
At C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1:552 char:176
+ If ($script:MyInvocation.Value.ScriptName) { [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf }
Else { [string]$ScriptSource = Split-Path <<<< -Path $script:MyInvocation.MyCommand.Definition -Leaf }
+ CategoryInfo : ObjectNotFound: (
# If a user...yKey -Key 'HKLM:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitPathCommand
[04-14-2015 18:36:33.240] [Initialization] [Convert-RegistryPath] :: Return fully qualified registry key path [Registry::HKEY_USERS\S-1-5-21-3
278330371-3405667261-149073299-9931\Control Panel\Desktop\WindowMetrics]
Split-Path : Cannot find drive. A drive with the name '
# If a user is logged on, then get display scale factor for logged on user (even if running in session 0)
[boolean]$UserDisplayScaleFactor = $false
If ($RunAsActiveUser) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop\WindowMetrics' -Value 'AppliedDPI' -SID $RunAsActiveUser.SID
If (-not ([string]$dpiPixels)) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop' -Value 'LogPixels' -SID $RunAsActiveUser.SID
}
[boolean]$UserDisplayScaleFactor = $true
}
If (-not ([string]$dpiPixels)) {
# This registry setting only exists if system scale factor has been changed at least once
[int32]$dpiPixels = Get-RegistryKey -Key 'HKLM' does not exist.
At C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1:552 char:176
+ If ($script:MyInvocation.Value.ScriptName) { [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf }
Else { [string]$ScriptSource = Split-Path <<<< -Path $script:MyInvocation.MyCommand.Definition -Leaf }
+ CategoryInfo : ObjectNotFound: (
# If a user...yKey -Key 'HKLM:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitPathCommand
Split-Path : Cannot find drive. A drive with the name '
# If a user is logged on, then get display scale factor for logged on user (even if running in session 0)
[boolean]$UserDisplayScaleFactor = $false
If ($RunAsActiveUser) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop\WindowMetrics' -Value 'AppliedDPI' -SID $RunAsActiveUser.SID
If (-not ([string]$dpiPixels)) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop' -Value 'LogPixels' -SID $RunAsActiveUser.SID
}
[boolean]$UserDisplayScaleFactor = $true
}
If (-not ([string]$dpiPixels)) {
# This registry setting only exists if system scale factor has been changed at least once
[int32]$dpiPixels = Get-RegistryKey -Key 'HKLM' does not exist.
At C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1:552 char:176
+ If ($script:MyInvocation.Value.ScriptName) { [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf }
Else { [string]$ScriptSource = Split-Path <<<< -Path $script:MyInvocation.MyCommand.Definition -Leaf }
+ CategoryInfo : ObjectNotFound: (
# If a user...yKey -Key 'HKLM:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitPathCommand
[04-14-2015 18:36:33.272] [Initialization] [Get-RegistryKey] :: Get registry key [Registry::HKEY_USERS\S-1-5-21-3278330371-3405667261-14907329
9-9931\Control Panel\Desktop\WindowMetrics] value [AppliedDPI]
Split-Path : Cannot find drive. A drive with the name '
# If a user is logged on, then get display scale factor for logged on user (even if running in session 0)
[boolean]$UserDisplayScaleFactor = $false
If ($RunAsActiveUser) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop\WindowMetrics' -Value 'AppliedDPI' -SID $RunAsActiveUser.SID
If (-not ([string]$dpiPixels)) {
[int32]$dpiPixels = Get-RegistryKey -Key 'HKCU\Control Panel\Desktop' -Value 'LogPixels' -SID $RunAsActiveUser.SID
}
[boolean]$UserDisplayScaleFactor = $true
}
If (-not ([string]$dpiPixels)) {
# This registry setting only exists if system scale factor has been changed at least once
[int32]$dpiPixels = Get-RegistryKey -Key 'HKLM' does not exist.
At C:\Workbench\Adobe_Reader\AppDeployToolkit\AppDeployToolkitMain.ps1:552 char:176
+ If ($script:MyInvocation.Value.ScriptName) { [string]$ScriptSource = Split-Path -Path $script:MyInvocation.Value.ScriptName -Leaf }
Else { [string]$ScriptSource = Split-Path <<<< -Path $script:MyInvocation.MyCommand.Definition -Leaf }
+ CategoryInfo : ObjectNotFound: (
# If a user...yKey -Key 'HKLM:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitPathCommand
[04-14-2015 18:36:33.313] [Initialization] [PSAppDeployToolkit] :: Display session information for all logged on users:
NTAccount : TXAUS\rsorensen
SID : S-1-5-21-3278330371-3405667261-149073299-9931
UserName : rsorensen
DomainName : TXAUS
SessionId : 2
SessionName : Console
ConnectState : Active
IsCurrentSession : True
IsConsoleSession : True
IsUserSession : True
IsLocalAdmin : False
LogonTime : 4/7/2015 9:30:43 AM
IdleTime : 00:00:00
DisconnectTime :
ClientName :
ClientProtocolType :
ClientDirectory :
ClientBuildNumber : 0
[04-14-2015 18:36:33.323] [Initialization] [PSAppDeployToolkit] :: The following users are logged on to the system: TXAUS\rsorensen
[04-14-2015 18:36:33.329] [Initialization] [PSAppDeployToolkit] :: Current process is running under a user account [TXAUS\rsorensen]
[04-14-2015 18:36:33.334] [Initialization] [PSAppDeployToolkit] :: The following user is the console user [TXAUS\rsorensen] (user with control
of physical monitor, keyboard, and mouse).
[04-14-2015 18:36:33.341] [Initialization] [PSAppDeployToolkit] :: The active logged on user is [TXAUS\rsorensen]
[04-14-2015 18:36:33.346] [Initialization] [PSAppDeployToolkit] :: The active logged on user [TXAUS\rsorensen] has a primary UI language of [E
N].
[04-14-2015 18:36:33.353] [Initialization] [PSAppDeployToolkit] :: The active logged on user [TXAUS\rsorensen] has a DPI scale factor of [100]
with DPI pixels [96].
[04-14-2015 18:36:33.379] [Initialization] [PSAppDeployToolkit] :: The process is running in a terminal server session: [False].
[04-14-2015 18:36:33.408] [Initialization] [PSAppDeployToolkit] :: Unable to load COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script
is not currently running from a SCCM Task Sequence.
[04-14-2015 18:36:33.414] [Initialization] [PSAppDeployToolkit] :: Skipping attempt to check for and make the task scheduler services healthy
because the App Deployment Toolkit is not running under the [NT AUTHORITY\SYSTEM] account.
[04-14-2015 18:36:33.419] [Initialization] [PSAppDeployToolkit] :: Session 0 not detected.
[04-14-2015 18:36:33.424] [Initialization] [PSAppDeployToolkit] :: Installation is running in [Interactive] mode.
[04-14-2015 18:36:33.429] [Initialization] [PSAppDeployToolkit] :: Deployment type is [Installation]
[04-14-2015 18:36:33.458] [Pre-Installation] [Get-DeferHistory] :: Get deferral history...
[04-14-2015 18:36:33.478] [Pre-Installation] [Convert-RegistryPath] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\
SOFTWARE\PSAppDeployToolkit\DeferHistory\]
[04-14-2015 18:36:33.491] [Pre-Installation] [Get-RegistryKey] :: Registry key [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit\Defer
History\] does not exist
[04-14-2015 18:36:33.504] [Pre-Installation] [Show-InstallationWelcome] :: User has [2] deferrals remaining.
[04-14-2015 18:36:33.519] [Pre-Installation] [Get-RunningProcesses] :: Check for running application(s) [iexplore,AcroRd32,cidaemon]...
[04-14-2015 18:36:33.560] [Pre-Installation] [Get-RunningProcesses] :: The following processes are running: [iexplore]
[04-14-2015 18:36:33.568] [Pre-Installation] [Get-RunningProcesses] :: Resolve process descriptions...
[04-14-2015 18:36:33.634] [Pre-Installation] [Get-RunningProcesses] :: Finished checking running application(s).
[04-14-2015 18:36:33.651] [Pre-Installation] [Show-WelcomePrompt] :: User has the option to defer.
[04-14-2015 18:37:56.475] [Pre-Installation] [Show-InstallationWelcome] :: Installation deferred by the user.
[04-14-2015 18:37:56.493] [Pre-Installation] [Set-DeferHistory] :: Set deferral history: [DeferTimesRemaining = 2]
[04-14-2015 18:37:56.515] [Pre-Installation] [Convert-RegistryPath] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\
SOFTWARE\PSAppDeployToolkit\DeferHistory\]
[04-14-2015 18:37:56.527] [Pre-Installation] [Set-RegistryKey] :: Create registry key [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolki
t\DeferHistory\].
[04-14-2015 18:37:56.537] [Pre-Installation] [Set-RegistryKey] :: Set registry key value: [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployTo
olkit\DeferHistory\] [DeferTimesRemaining = 2]
[04-14-2015 18:37:56.562] [Pre-Installation] [Exit-Script] :: Adobe_Reader_11.0.09_EN_01 Installation completed with exit code [5000].
[04-14-2015 18:37:56.613] [Pre-Installation] [Show-BalloonTip] :: Display balloon tip notification asyhchronously with message [Installation n
ot complete.]
[04-14-2015 18:37:56.639] [Pre-Installation] [Execute-Process] :: [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe] is a valid fully
qualified path, continue.
[04-14-2015 18:37:56.677] [Pre-Installation] [Execute-Process] :: Working Directory is [C:\Windows\System32\WindowsPowerShell\v1.0]
[04-14-2015 18:37:56.686] [Pre-Installation] [Execute-Process] :: Executing [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe [PowerS
hell ScriptBlock]]...
[04-14-2015 18:37:56.709] [Pre-Installation] [Execute-Process] :: NoWait parameter specified. Continuing without waiting for exit code...
[04-14-2015 18:37:56.738] [Pre-Installation] [Exit-Script] :: -------------------------------------------------------------------------------
from psappdeploytoolkit.
So the issue seems to be only present on windows 7. The above screenshot is from the same script running on Windows 8.1 Pro
from psappdeploytoolkit.
Yes, I can confirm.
This is issue with script on Windows 7
from psappdeploytoolkit.
With Windows 7, I don't even get the InstallationWelcome prompt. Instead, when looking through the logs, it will detect the running processes, apply a regkey to block them from running, but starts right away with running the following steps afterwards.
Here's what I'm running:
Show-InstallationWelcome -CloseApps 'iexplore,firefox' -BlockExecution -AllowDeferCloseApps -DeferTimes 5 -PersistPrompt
Here's a snippet of the log, copied using cmtrace.exe.
[Initialization] :: Installation is running in [Interactive] mode. PSAppDeployToolkit 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Initialization] :: Deployment type is [Installation] PSAppDeployToolkit 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Pre-Installation] :: Get deferral history... Get-DeferHistory 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Pre-Installation] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit\DeferHistory\] Convert-RegistryPath 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Pre-Installation] :: Registry key [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\PSAppDeployToolkit\DeferHistory\] does not exist Get-RegistryKey 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Pre-Installation] :: User has [4] deferrals remaining. Show-InstallationWelcome 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Pre-Installation] :: Check for running application(s) [iexplore,firefox]... Get-RunningProcesses 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Pre-Installation] :: The following processes are running: [firefox] Get-RunningProcesses 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Pre-Installation] :: Resolve process descriptions... Get-RunningProcesses 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Pre-Installation] :: Finished checking running application(s). Get-RunningProcesses 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Pre-Installation] :: [-BlockExecution] parameter specified. Show-InstallationWelcome 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Pre-Installation] :: Create scheduled task to cleanup blocked applications in case installation is interrupted. Block-AppExecution 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Pre-Installation] :: Retrieve Scheduled Tasks Get-ScheduledTask 4/15/2015 10:22:39 AM 12224 (0x2FC0)
[Pre-Installation] :: [C:\WINDOWS\System32\schtasks.exe] is a valid fully qualified path, continue. Execute-Process 4/15/2015 10:22:41 AM 12224 (0x2FC0)
[Pre-Installation] :: Working Directory is [C:\WINDOWS\System32] Execute-Process 4/15/2015 10:22:41 AM 12224 (0x2FC0)
[Pre-Installation] :: Executing [C:\WINDOWS\System32\schtasks.exe /create /f /tn SVM_FirefoxSoftwareBundle_31.6.0_EN_01_BlockedApps /xml "C:\Users\Public\PSAppDeployToolkit\SchTaskUnBlockApps.xml"]... Execute-Process 4/15/2015 10:22:41 AM 12224 (0x2FC0)
[Pre-Installation] :: Execution completed with exit code [0] Execute-Process 4/15/2015 10:22:42 AM 12224 (0x2FC0)
[Pre-Installation] :: Set the Image File Execution Option registry key to block execution of [iexplore.exe]. Block-AppExecution 4/15/2015 10:22:42 AM 12224 (0x2FC0)
[Pre-Installation] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.exe] Convert-RegistryPath 4/15/2015 10:22:42 AM 12224 (0x2FC0)
[Pre-Installation] :: Set registry key value: [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.exe] [Debugger = wscript.exe "C:\Users\Public\PSAppDeployToolkit\AppDeployToolkit_BlockAppExecutionMessage.vbs"] Set-RegistryKey 4/15/2015 10:22:42 AM 12224 (0x2FC0)
[Pre-Installation] :: Set the Image File Execution Option registry key to block execution of [firefox.exe]. Block-AppExecution 4/15/2015 10:22:42 AM 12224 (0x2FC0)
[Pre-Installation] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\firefox.exe] Convert-RegistryPath 4/15/2015 10:22:42 AM 12224 (0x2FC0)
[Pre-Installation] :: Set registry key value: [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\firefox.exe] [Debugger = wscript.exe "C:\Users\Public\PSAppDeployToolkit\AppDeployToolkit_BlockAppExecutionMessage.vbs"] Set-RegistryKey 4/15/2015 10:22:42 AM 12224 (0x2FC0)
from psappdeploytoolkit.
I am having the same issue as YayILikePie where, on Windows 7 with PowerShell v2, the InstallationWelcome prompt never appears. On another Windows 7 machine with PS v4, it appears.
from psappdeploytoolkit.
Nice Catch Agetronairb. So it appears if we want to use 3.6.2 for windows 7, we are going to have first update all windows 7 devices to PS V4. Since 8.1 ships with PS V4 it works out of the box.
from psappdeploytoolkit.
Can one of you seeing this issue share what your Deploy-Application.exe.config file looks like?
from psappdeploytoolkit.
from psappdeploytoolkit.
Ok, that looks correct. Not sure what else could be causing it to fail to show on Win 7/PS 2. I'll see if I can replicate the issue. Let me know if anyone is able to discover anything in their own troubleshooting.
from psappdeploytoolkit.
Can you do another test on a Win 7/PS2 machine by using the latest Deploy-Application.exe file from here?: https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/blob/master/Toolkit/Deploy-Application.exe
I realized that there was an invalid embedded manifest file in the exe that should not have been there. Not sure when it got in there but the latest file has removed the manifest so hopefully this was the root cause.
from psappdeploytoolkit.
I just tried, no difference. however, before trying the new exe, from the original discovery of the issue, the behavior is shown when either running the script via Deploy-Application.exe and Deploy-Application.ps1
Something else to consider. If you can reproduce the behavior in windows 7 PS2 run the same script from both win7 PS2 and PS4 using ISE and look at the console output. There are errors shown in PS2 that are not shown in PS4.
from psappdeploytoolkit.
I think I've figured out what the problem was. The issue was in the Get-RunningProcesses function. This function adds a ProcessDescription property to the list of processes detected as running but which need to be closed. In PowerShell 2.0, Add-Member adds members only to the PSObject wrapper of objects, not to the object. We have to use -PassThru to create an output object for any object that has a PSObject wrapper.
Anyway, please test again with the latest 3.6.3 beta and let me know if the problem has been resolved:
https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/blob/master/Toolkit/AppDeployToolkit/AppDeployToolkitMain.ps1
from psappdeploytoolkit.
Success. the 3.6.3 beta successfully shows the close programs on windows 7 with PS2. Thank you.
from psappdeploytoolkit.
That fixed it for me as well, thanks!
from psappdeploytoolkit.
Hi
I tried the 3.6.3 version and that didn't do anything good for me.
As with the 3.6.1 version when I run it.. nothing happens. it launches dep-app.exe for a few seconds then closes down again.
from psappdeploytoolkit.
Related Issues (20)
- [Bug] Function code examples do not work correctly with Get-Help HOT 1
- [Bug] Logs created during user context execution are not allowed to be altered by other users HOT 1
- Execution failed HOT 3
- Execute-ProcessAsUser throws terminating error when no users are logged on and ContinueOnError=$true (i.e. the default)
- Async operations (e.g. Show-InstallationPrompt) triggers rotation of a new log file when <Toolkit_LogAppend> is set to False
- Test-ServiceExists failes on Sandbox - Get-WmiObject : Provider load failure HOT 7
- [Bug] Show-InstallationWelcome -PersistPrompt not working HOT 1
- [Bug] Function Block-AppExecution not working if.. HOT 2
- [Bug] Robocopy /IM parameter not supported on older operating systems HOT 2
- [Feature] Functions Documentation on Website lacks Version Information HOT 2
- [Bug] .vscode\PSScriptAnalyzerSettings.psd1 contains a spelling error
- [Feature] Configurable prefix for LogFileName HOT 3
- [Bug] Error setting directory attributes when using Copy-File with Robocopy HOT 1
- [Bug] Deploy-Application.exe hides PowerShell Exit Code on Script Execution Failure
- Show-InstallationProgress Error "You cannot call a method on a null-valued expression" HOT 4
- [Feature] Download from Url HOT 5
- [Bug] Since the introduction of $labelDeferDeadline, the defer message options are no more cumulative
- [Bug] When using the function 'Execute-ProcessAsUser' there is a problem with the RunHidden.vbs HOT 1
- [Bug] Using ServiceUI.exe from Microsoft Deployment Kit (MDT) removes the user right to create symbolic links in Windows HOT 1
- [Bug] Copy-File can fail for some added robocopy options due to order of cmd line args
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psappdeploytoolkit.