Software Center

We have a SCCM 2012 SP1 environment setup ready and configured. I am trying to deploy an application to clients. When i do it, the application is deployed successfully and can be seen in the Software center console in the client machine. But the installation is not starting and even if i manually try to install it wont start and throws an error : The software change returned error code 0x80070005(-2147024891).

AppDiscovery.log

ActionType - Install will use Content Id: Content_6b2ca798-8bb8-4345-9df1-b102c3272070 + Content Version: 1 for AppDT " - Script Installer" [ScopeId_1E80E7E4-EBB3-43A3-99FC-C75CD2DA06C8/DeploymentType_f6fe06fd-60a4-4cdf-adae-1e2256e3ef2f], Revision - 1

Entering ExecQueryAsync for query "select * from CCM_AppDeliveryType where (AppDeliveryTypeId = "ScopeId_1E80E7E4-EBB3-43A3-99FC-C75CD2DA06C8/DeploymentType_f6fe06fd-60a4-4cdf-adae-1e2256e3ef2f" AND Revision = 1)"

Performing detection of app deployment type  - Script Installer(ScopeId_1E80E7E4-EBB3-43A3-99FC-C75CD2DA06C8/DeploymentType_f6fe06fd-60a4-4cdf-adae-1e2256e3ef2f, revision 1) for system.

+++ Application not discovered with script detection. [AppDT Id: ScopeId_1E80E7E4-EBB3-43A3-99FC-C75CD2DA06C8/DeploymentType_f6fe06fd-60a4-4cdf-adae-1e2256e3ef2f, Revision: 1]

+++ Did not detect app deployment type  - Script Installer(ScopeId_1E80E7E4-EBB3-43A3-99FC-C75CD2DA06C8/DeploymentType_f6fe06fd-60a4-4cdf-adae-1e2256e3ef2f, revision 1) for system.

AppEnforce.log

Invalid executable file Install.bat

ScriptHandler::EnforceApp failed (0x87d01106).

AppProvider::EnforceApp - Failed to invoke EnforceApp on Application handler(0x87d01106).

CommenceEnforcement failed with error 0x87d01106.

Method CommenceEnforcement failed with error code 87D01106

++++++ Failed to enforce app. Error 0x87d01106. ++++++

Can anyone help me with

September 9th, 2015 10:00am

0x87d01106 = Failed to verify the executable file is valid or to construct the associated command line.

Does Install.bat exists in the Content Loc

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 10:09am

What deployment type is being used? How does the command line look like?
September 9th, 2015 10:11am

Hi Torsten,

Deployment type is Script Installer and we are using a powershell script ,

[String]$displayName = "Adobe Digital"
[String]$displayVersion = "3.0"
$Uninstallx64 = Get-ChildItem -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" -Recurse -ErrorAction SilentlyContinue
$Uninstallx86 = Get-ChildItem -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" -Recurse -ErrorAction SilentlyContinue
foreach ($regKey in $Uninstallx64) { if ( $regKey.GetValue("DisplayName") -match $displayName -and $regKey.GetValue("DisplayVersion") -match $displayVersion ) { $true } }
foreach ($regKey in $Uninstallx64) { if ( $regKey.GetValue("DisplayName") -match $displayName -and $regKey.GetValue("DisplayVersion") -match $displayVersion ) { $true } }

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 10:18am

Hi Simon,

I don't see an install.bat file in the DP, but i can see a "Application.tar" file in the location

September 9th, 2015 10:19am

Deployment type is Script Installer and we are using a powershell script ,


... but you are using install.cmd: "Invalid executable file Install.bat". Does install.cmd call a powershell script?
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 10:23am

What have you specified as Installation program on the Deployment type?
September 9th, 2015 10:23am

I specified Install.bat 
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 10:33am

Sorry, the command line shows as "Install.bat" right next to Installation program 

September 9th, 2015 10:36am

And does Install.bat exists in your Content Location? If not you need to create it or Change the Installation Programm to a Script File that actually e

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 10:38am

Content location means, the client location? or the distribution point location?
September 9th, 2015 10:41am

The Location where your original Content is stored. See Tab "Content" -> "Content Location" on your Deployment type.

That Content is beeing distributed to the DPs. If your script that you set in "Installation program" does not exist in that location, then you found your Pr

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 10:43am

I can see my DP in that content location. And as i have mentioned in my DP , i can only see the .tar file but no .bat file. So i should either be creating that install.bat file or should check why the application is not deployed to the dp correctly. right?? 

I will try this and update..thanks for your help Simon

September 9th, 2015 10:48am

When SCCM performs the install, it downloads the entire directory to the local CMCache directory then runs whatever script you specify form there.

With that in mind,  make sure your bat file that "does the work" is referencing the current directory and is not using some hard-coded. 

Sample PowerShell:

#Set Install Variables
$Application = 'setup.exe'
$Arguments = '/silent'

#If PSVersion is too early, generate $PSScriptRoot variable
If (!$PSScriptRoot) {
	$PSSCriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
    }

#Try the Install and return results
Try {
    $AppFullPath = $PSScriptRoot+'\'+$Application
    start-process -FilePath $AppFullPath -ArgumentList $Arguments -wait
    }
Catch {
    Write-Error -Message $_
    Exit 1
    }
Exit 0

Notice the use of $PSScriptRoot to ensure the path always includes appropriate local path of the package regardless of where it was downloaded.  If you prefer a batch file, you can use the variable %~dp0 instead.

Side note:  the script you linked looks like little more than a detection script, I don't see any install calls in it.

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 10:50am

i can only see the .tar file but no .bat

September 9th, 2015 10:54am

Thanks for the response Justin,

The problem is I just saw in my DP that when ever i deploy an application  , its is showing as successfully deployed in the console, but i can only see XXX.tar file in the DP. Do you have any guess of what could be wrong?

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 11:22am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics