I am using the 3.6.0 release with SCCM 2012 R2 CU3. The toolkit will completely hang due to the 2 exceptions I have pasted below.
* It worked when I installed to a 32-bit Win7 machine with UAC Off and local admin.
* Toolkit hung on 64-bit Win7 machine with UAC On and no local admin
* Toolkit hung during an OSD of a 64-bit Win7 Machine.
The deployment is configured like this:
* Installation Behavior: Install for system
* Logon requirement: Whether or not a user is logged in
```
[Pre-Installation] :: Error Record:
-------------
Message : Exception calling "ShowDialog" with "0" argument(s): "Showing
a modal dialog box or form when the application is not
running in UserInteractive mode is not a valid operation.
Specify the ServiceNotification or DefaultDesktopOnly style
to display a notification from a service application."
InnerException : System.InvalidOperationException: Showing a modal dialog box
or form when the application is not running in
UserInteractive mode is not a valid operation. Specify the
ServiceNotification or DefaultDesktopOnly style to display a
notification from a service application.
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at CallSite.Target(Closure , CallSite , Object )
FullyQualifiedErrorId : InvalidOperationException
ScriptStackTrace : at Show-WelcomePrompt<Process>, C:\WINDOWS\ccmcache\8y\
AppDeployToolkit\AppDeployToolkitMain.ps1: line 5554
at Show-InstallationWelcome<Process>, C:\WINDOWS\ccmcac
he\8y\AppDeployToolkit\AppDeployToolkitMain.ps1: line
4921
at <ScriptBlock>,
C:\WINDOWS\ccmcache\8y\Deploy-Application.ps1: line 102
at <ScriptBlock>, <No file>: line 1
at <ScriptBlock>, <No file>: line 1
PositionMessage : At C:\WINDOWS\ccmcache\8y\AppDeployToolkit\AppDeployToolkitMa
in.ps1:5554 char:3
+ $result = $formWelcome.ShowDialog()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error Inner Exception(s):
-------------------------
Message : Showing a modal dialog box or form when the application is
not running in UserInteractive mode is not a valid operation.
Specify the ServiceNotification or DefaultDesktopOnly style
to display a notification from a service application.
InnerException :
Deploy Application 3/17/2015 3:06:16 PM 4208 (0x1070)
```
```
[Pre-Installation] :: Display Dialog Box with message: Error Record:
-------------
Message : Exception calling "ShowDialog" with "0" argument(s): "Showing
a modal dialog box or form when the application is not
running in UserInteractive mode is not a valid operation.
Specify the ServiceNotification or DefaultDesktopOnly style
to display a notification from a service application."
InnerException : System.InvalidOperationException: Showing a modal dialog box
or form when the application is not running in
UserInteractive mode is not a valid operation. Specify the
ServiceNotification or DefaultDesktopOnly style to display a
notification from a service application.
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at CallSite.Target(Closure , CallSite , Object )
FullyQualifiedErrorId : InvalidOperationException
ScriptStackTrace : at Show-WelcomePrompt<Process>, C:\WINDOWS\ccmcache\8y\
AppDeployToolkit\AppDeployToolkitMain.ps1: line 5554
at Show-InstallationWelcome<Process>, C:\WINDOWS\ccmcac
he\8y\AppDeployToolkit\AppDeployToolkitMain.ps1: line
4921
at <ScriptBlock>,
C:\WINDOWS\ccmcache\8y\Deploy-Application.ps1: line 102
at <ScriptBlock>, <No file>: line 1
at <ScriptBlock>, <No file>: line 1
PositionMessage : At C:\WINDOWS\ccmcache\8y\AppDeployToolkit\AppDeployToolkitMa
in.ps1:5554 char:3
+ $result = $formWelcome.ShowDialog()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error Inner Exception(s):
-------------------------
Message : Showing a modal dialog box or form when the application is
not running in UserInteractive mode is not a valid operation.
Specify the ServiceNotification or DefaultDesktopOnly style
to display a notification from a service application.
InnerException :
... Show-DialogBox 3/17/2015 3:06:16 PM 4208 (0x1070)
```
Comments: Just to be clear, I am not using that switch. When I tested the deployment I had only 1 Internet Explorer window open.
Here is line used.
```
Show-InstallationWelcome -CloseApps "iexplore=Internet Explorer" -CloseAppsCountdown 600 -BlockExecution
```
When I tested this with 3.6.1, the Welcome screen did not show, the application was closed and the installation continued.
In the past the PSADT would interact with the user if they were logged in.
I was testing this with the following system configuration:
OS= Windows 7 Enterprise x64
User=Standard
UAC=On
PowerShell = 4.0
If you need me to provide logs let me know.