{"action":"opened","issue":{"url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/35","labels_url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/35/comments","events_url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/35/events","html_url":"https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/issues/35","id":78697701,"number":35,"title":"TopMost option from Show-InstallationWelcome not working ","user":{"login":"dersonc","id":12057635,"avatar_url":"https://avatars.githubusercontent.com/u/12057635?v=3","gravatar_id":"","url":"https://api.github.com/users/dersonc","html_url":"https://github.com/dersonc","followers_url":"https://api.github.com/users/dersonc/followers","following_url":"https://api.github.com/users/dersonc/following{/other_user}","gists_url":"https://api.github.com/users/dersonc/gists{/gist_id}","starred_url":"https://api.github.com/users/dersonc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dersonc/subscriptions","organizations_url":"https://api.github.com/users/dersonc/orgs","repos_url":"https://api.github.com/users/dersonc/repos","events_url":"https://api.github.com/users/dersonc/events{/privacy}","received_events_url":"https://api.github.com/users/dersonc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-20T21:07:55Z","updated_at":"2015-05-20T21:07:55Z","closed_at":null,"body":"I have the installation script set with the following parameters for Show-InstallationWelcome:\r\n```\r\nShow-InstallationWelcome -CloseApps 'iexplore,winword,notepad' -PromptToSave -AllowDeferCloseApps -ForceCloseAppsCountdown 3600 -BlockExecution -DeferTimes 2 -DeferDays 7 -PersistPrompt -TopMost 0\r\n```\r\n\r\nI also tried setting -TopMost to $false but I got the same results.\r\n\r\nBut when I run the installation the InstallationWelcome window is always forced to be on top of the other windows even if there are deferrals left.\r\n\r\nThis is the log from the execution:\r\n```\r\n[Initialization] :: *******************************************************************************\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: *******************************************************************************\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: [.NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001] setup started.\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: Script [C:\\Users\\yyyyyyyy.zzzz\\Desktop\\AppDeployToolkit\\AppDeployToolkitMain.ps1] dot-source invoked by [C:\\Users\\yyyyyyyy.zzzz\\Desktop\\Deploy-Application.ps1]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: Script [C:\\Users\\yyyyyyyy.zzzz\\Desktop\\AppDeployToolkit\\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\\Users\\yyyyyyyy.zzzz\\Desktop\\AppDeployToolkit\\AppDeployToolkitMain.ps1]\tPSAppDeployToolkitExt\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: [.NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001] script version is [1.0.0]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: [Deploy Application] script version is [3.6.1]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: [App Deploy Toolkit Main] script version is [3.6.5]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: [App Deploy Toolkit Extensions] version is [1.5.0]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: Computer Name is [nnnnnnnnnn.zzzz.xxxxxxxxxxxxx.com]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: Current User is [zzzz\\yyyyyyyy]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: OS Version is [Microsoft Windows 7 Enterprise Service Pack 1 64-bit 6.1.7601.65536]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: OS Type is [Workstation]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: Current Culture is [en-US] and UI language is [EN]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: Hardware Platform is [Virtual:VMWare]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: PowerShell Host is [ConsoleHost] with version [2.0]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: PowerShell Version is [2.0 x64]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: PowerShell CLR (.NET) version is [2.0.50727.5485]\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: *******************************************************************************\tPSAppDeployToolkit\t5/20/2015 3:58:00 PM\t7976 (0x1F28)\r\n[Initialization] :: Display session information for all logged on users: \r\n\r\n\r\nNTAccount           : zzzz\\yyyyyyyy\r\nSID                 : S-1-5-21-1454471165-2077806209-1801674531-7103031\r\nUserName            : yyyyyyyy\r\nDomainName          : zzzz\r\nSessionId           : 1\r\nSessionName         : Console\r\nConnectState        : Active\r\nIsCurrentSession    : True\r\nIsConsoleSession    : True\r\nIsActiveUserSession : True\r\nIsUserSession       : True\r\nIsRdpSession        : False\r\nIsLocalAdmin        : False\r\nLogonTime           : 3/23/2015 1:19:06 PM\r\nIdleTime            : 00:00:00\r\nDisconnectTime      : \r\nClientName          : \r\nClientProtocolType  : \r\nClientDirectory     : \r\nClientBuildNumber   : 0\r\n\r\n\r\n\r\n\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Initialization] :: The following users are logged on to the system: [zzzz\\yyyyyyyy].\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Initialization] :: Current process is running with user account [zzzz\\yyyyyyyy] under logged in user session for [zzzz\\yyyyyyyy].\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Initialization] :: The following user is the console user [zzzz\\yyyyyyyy] (user with control of physical monitor, keyboard, and mouse).\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Initialization] :: The active logged on user is [zzzz\\yyyyyyyy].\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Initialization] :: The active logged on user [zzzz\\yyyyyyyy] has a primary UI language of [EN].\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Initialization] :: The following UI messages were imported from the config XML file: [UI_Messages_EN].\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Initialization] :: The active logged on user [zzzz\\yyyyyyyy] has a DPI scale factor of [100] with DPI pixels [96].\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Initialization] :: Unable to load COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Initialization] :: 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.\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Initialization] :: Session 0 not detected.\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Initialization] :: Installation is running in [Interactive] mode.\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Initialization] :: Deployment type is [Installation].\tPSAppDeployToolkit\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Get deferral history...\tGet-DeferHistory\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\xxxx xx xxxxxxx\\Packages\\PSAppDeployToolkit\\DeferHistory\\.NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001].\tConvert-RegistryPath\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Get registry key [Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\xxxx xx xxxxxxx\\Packages\\PSAppDeployToolkit\\DeferHistory\\.NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001] and all property values.\tGet-RegistryKey\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Defer history shows [2] deferrals remaining.\tShow-InstallationWelcome\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: User has [1] deferrals remaining.\tShow-InstallationWelcome\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Defer history shows a deadline date of [2015-05-27 15:50:22Z].\tShow-InstallationWelcome\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Convert the date [05/27/2015 15:50:22] to a universal sortable date time pattern based on the current culture [en-US].\tGet-UniversalDate\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: User has until [2015-05-27 15:50:22Z] before deferral expires.\tShow-InstallationWelcome\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Convert the date [05/20/2015 15:58:02] to a universal sortable date time pattern based on the current culture [en-US].\tGet-UniversalDate\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Check for running application(s) [iexplore,winword,notepad]...\tGet-RunningProcesses\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: The following processes are running: [iexplore,notepad].\tGet-RunningProcesses\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Resolve process descriptions...\tGet-RunningProcesses\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Finished checking running application(s).\tGet-RunningProcesses\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Prompt user to close application(s) [Internet Explorer,Notepad]...\tShow-WelcomePrompt\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: User has the option to defer.\tShow-WelcomePrompt\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Close applications countdown has [3600] seconds remaining.\tShow-WelcomePrompt\t5/20/2015 3:58:02 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Check for running application(s) [iexplore,winword,notepad]...\tGet-RunningProcesses\t5/20/2015 3:58:14 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: The following processes are running: [iexplore,notepad].\tGet-RunningProcesses\t5/20/2015 3:58:14 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Resolve process descriptions...\tGet-RunningProcesses\t5/20/2015 3:58:14 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Finished checking running application(s).\tGet-RunningProcesses\t5/20/2015 3:58:14 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Prompt user to close application(s) [Internet Explorer,Notepad]...\tShow-WelcomePrompt\t5/20/2015 3:58:14 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: User has the option to defer.\tShow-WelcomePrompt\t5/20/2015 3:58:14 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Close applications countdown has [3588] seconds remaining.\tShow-WelcomePrompt\t5/20/2015 3:58:14 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Installation deferred by the user.\tShow-InstallationWelcome\t5/20/2015 3:58:18 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Set deferral history: [DeferTimesRemaining = 1].\tSet-DeferHistory\t5/20/2015 3:58:18 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\xxxx xx xxxxxxx\\Packages\\PSAppDeployToolkit\\DeferHistory\\.NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001].\tConvert-RegistryPath\t5/20/2015 3:58:18 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Update registry key value: [Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\xxxx xx xxxxxxx\\Packages\\PSAppDeployToolkit\\DeferHistory\\.NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001] [DeferTimesRemaining = 1].\tSet-RegistryKey\t5/20/2015 3:58:18 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Set deferral history: [DeferDeadline = 2015-05-27 15:50:22Z].\tSet-DeferHistory\t5/20/2015 3:58:18 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\xxxx xx xxxxxxx\\Packages\\PSAppDeployToolkit\\DeferHistory\\.NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001].\tConvert-RegistryPath\t5/20/2015 3:58:18 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: Update registry key value: [Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\xxxx xx xxxxxxx\\Packages\\PSAppDeployToolkit\\DeferHistory\\.NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001] [DeferDeadline = 2015-05-27 15:50:22Z].\tSet-RegistryKey\t5/20/2015 3:58:18 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: .NET.Framework.4.5.2.Multi-Targeting.Pack_4.5.51651_001 Installation completed with exit code [65000].\tExit-Script\t5/20/2015 3:58:18 PM\t7976 (0x1F28)\r\n[Pre-Installation] :: -------------------------------------------------------------------------------\tExit-Script\t5/20/2015 3:58:18 PM\t7976 (0x1F28)\r\n```"}}