Hi there,
I'm trying to troubleshoot an application created in SCCM 2012 SP1. I've created the application for SCCM 2012 Admin Console following the command line installatino procedure mentioned from this technet article, which is pretty consistent with any other resource I've seen so far.
http://technet.microsoft.com/en-us/library/gg712320.aspx#BKMK_InstallConsole
And here's the installation command I'm using:
cmd /c "consolesetup.exe" /q TargetDir="C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole" EnableSQM=0 DefaultSiteServerName=sccm.domain.local
When I deploy the application and try to install it from Software Center on a Windows 7 client, the installation fails. Looking at the AppEnforce log file, I see the error "Unmatched exit code (1) is considered an execution failure."
If I run the exact same command manually on the client machine, it works just fine. Below is the full log when it's run by SCCM. Also, the link posted above mentions that the for the uninstall command to work, "You must specify this option first when you use it with the /q option". However, it seems to the otherway just fine. Here's my command: "consolesetup.exe" /q /uninstall
What's causing the installation to fail when running the installation from Software Center? Not sure what exit code 1 is referring to.
==============================================
+++ Starting Install enforcement for App DT "Setup SCCM 2012 Console" ApplicationDeliveryType - ScopeId_AD6690A9-FF5D-4C83-B2EC-064FDAD5DD23/DeploymentType_6c85c967-be91-4f0b-8584-217615d2da79, Revision - 4, ContentPath - C:\Windows\ccmcache\8,
Execution Context - System AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
A user is logged on to the system. AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
Performing detection of app deployment type Setup SCCM 2012 Console(ScopeId_AD6690A9-FF5D-4C83-B2EC-064FDAD5DD23/DeploymentType_6c85c967-be91-4f0b-8584-217615d2da79, revision 4) for system. AppEnforce 2/28/2014 12:08:44 PM 936
(0x03A8)
+++ Application not discovered. [AppDT Id: ScopeId_AD6690A9-FF5D-4C83-B2EC-064FDAD5DD23/DeploymentType_6c85c967-be91-4f0b-8584-217615d2da79, Revision: 4] AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
App enforcement environment:
Context: Machine
Command line: cmd /c "consolesetup.exe" /q TargetDir="C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole" EnableSQM=0 DefaultSiteServerName=sccm.domain.local
Allow user interaction: No
UI mode: 0
User token: null
Session Id: 2
Content path: C:\Windows\ccmcache\8
Working directory: AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
Prepared working directory: C:\Windows\ccmcache\8 AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
Found executable file cmd with complete path C:\Windows\system32\cmd.exe AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
Prepared command line: "C:\Windows\system32\cmd.exe" /c "consolesetup.exe" /q TargetDir="C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole" EnableSQM=0 DefaultSiteServerName=hcvwpscmapp1.aegoncanada.local AppEnforce 2/28/2014
12:08:44 PM 936 (0x03A8)
Executing Command line: "C:\Windows\system32\cmd.exe" /c "consolesetup.exe" /q TargetDir="C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole" EnableSQM=0 DefaultSiteServerName=sccm.domain.local
with user context AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
Working directory C:\Windows\ccmcache\8 AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
Post install behavior is BasedOnExitCode AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
Waiting for process 6848 to finish. Timeout = 120 minutes. AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
Process 6848 terminated with exitcode: 1 AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
Looking for exit code 1 in exit codes table... AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
Unmatched exit code (1) is considered an execution failure. AppEnforce 2/28/2014 12:08:44 PM 936 (0x03A8)
++++++ App enforcement completed (0 seconds) for App DT "Setup SCCM 2012 Console" [ScopeId_AD6690A9-FF5D-4C83-B2EC-064FDAD5DD23/DeploymentType_6c85c967-be91-4f0b-8584-217615d2da79], Revision: 4, User SID: ] ++++++ AppEnforce 2/28/2014
12:08:44 PM 936 (0x03A8)