Jump to content


Vini

Application install fails, but actually installs ok?

Recommended Posts

We have some applications that are 'failing' to install successfully according to Software Center, however, given time they actually do install ok.

 

As far as I can tell the installer we're running is completing with a 0 code, but... the actually installer triggers further installations, which can take time... as such the detection fails, and this (I believe) is causing the app to fail.

 

The AppEnforce logs,

 

 

+++ Starting Install enforcement for App DT "SDL Trados Studio 2014" ApplicationDeliveryType - ScopeId_7D13EABB-7CC3-441D-9BE5-E67F3D61EB3D/DeploymentType_1347cc8f-2a02-409b-bc89-23c10aeef4f2, Revision - 9, ContentPath - C:\Windows\ccmcache\1o, Execution Context - User AppEnforce 01/06/2015 17:24:52 5604 (0x15E4)
A user is logged on to the system. AppEnforce 01/06/2015 17:24:52 5604 (0x15E4)
Performing detection of app deployment type SDL Trados Studio 2014(ScopeId_7D13EABB-7CC3-441D-9BE5-E67F3D61EB3D/DeploymentType_1347cc8f-2a02-409b-bc89-23c10aeef4f2, revision 9) for user. AppEnforce 01/06/2015 17:24:52 5604 (0x15E4)
+++ Application not discovered. [AppDT Id: ScopeId_7D13EABB-7CC3-441D-9BE5-E67F3D61EB3D/DeploymentType_1347cc8f-2a02-409b-bc89-23c10aeef4f2, Revision: 9] AppEnforce 01/06/2015 17:24:52 5604 (0x15E4)
App enforcement environment:
Context: User
Command line: "SDLTradosStudio2014_SP2_4322_Silent.exe"
Allow user interaction: Yes
UI mode: 1
User token: not null
Session Id: 4
Content path: C:\Windows\ccmcache\1o
Working directory: AppEnforce 01/06/2015 17:24:52 5604 (0x15E4)
Prepared working directory: C:\Windows\ccmcache\1o AppEnforce 01/06/2015 17:24:52 5604 (0x15E4)
Prepared command line: "C:\Windows\ccmcache\1o\SDLTradosStudio2014_SP2_4322_Silent.exe" AppEnforce 01/06/2015 17:24:52 5604 (0x15E4)
Post install behavior is BasedOnExitCode AppEnforce 01/06/2015 17:24:53 5604 (0x15E4)
Waiting for process 3220 to finish. Timeout = 45 minutes. AppEnforce 01/06/2015 17:24:53 5604 (0x15E4)
Process 3220 terminated with exitcode: 0 AppEnforce 01/06/2015 17:25:21 5604 (0x15E4)
Looking for exit code 0 in exit codes table... AppEnforce 01/06/2015 17:25:21 5604 (0x15E4)
Matched exit code 0 to a Success entry in exit codes table. AppEnforce 01/06/2015 17:25:21 5604 (0x15E4)
Performing detection of app deployment type SDL Trados Studio 2014(ScopeId_7D13EABB-7CC3-441D-9BE5-E67F3D61EB3D/DeploymentType_1347cc8f-2a02-409b-bc89-23c10aeef4f2, revision 9) for user. AppEnforce 01/06/2015 17:25:21 5604 (0x15E4)
+++ Application not discovered. [AppDT Id: ScopeId_7D13EABB-7CC3-441D-9BE5-E67F3D61EB3D/DeploymentType_1347cc8f-2a02-409b-bc89-23c10aeef4f2, Revision: 9] AppEnforce 01/06/2015 17:25:21 5604 (0x15E4)
++++++ App enforcement completed (29 seconds) for App DT "SDL Trados Studio 2014" [scopeId_7D13EABB-7CC3-441D-9BE5-E67F3D61EB3D/DeploymentType_1347cc8f-2a02-409b-bc89-23c10aeef4f2], Revision: 9, User SID: S-1-5-21-1121926686-1728410050-2465709820-74610] ++++++ AppEnforce 01/06/2015 17:25:21 5604 (0x15E4)

 

 

What could be done about this?

 

Cheers,

James

 

Share this post


Link to post
Share on other sites

The issue is your detection rule is wrong. fix your detection rule and everything will be good.

 

I was checking for a file - which I presumed would be the easiest?...but have switched to MSI and Reg, will see how that goes - thanks.

Share this post


Link to post
Share on other sites

MSI still resulted in the same, so I've been toying with Script Detection. My scripting skills are zero, I'm usually capable of ripping scripts, and altering to make them work, however, in this situation I'm struggling.

 

For this application, I've enabled Script detection. The script is as follows;

 

 

$File = "${env:ProgramFiles(x86)}\SDL\SDL Trados Studio\Studio3\SDLTradosStudio.exe"

$UpdatedVersion = "11.0.0.0"
$CurrentVersion = [system.diagnostics.fileversioninfo]::GetVersionInfo($File)
if ($CurrentVersion.ProductVersion -like $UpdatedVersion) {
write-host "Software Installed"
}

 

When the above script is saved as a .ps1 and run locally on a machine which has the software installed, it results in 'Software Installed' being displayed. If I change the version to something that is incorrect, it does not display anything. Which suggests to me that the script is working.

 

However, when enabling this in SCCM, the Application disappears from Software Center, and AppDiscover.log shows;

 

 

<![LOG[Failed to perform detection of app deployment type SDL Trados Studio 2014(SDL Trados Studio 2014, revision 21) for user. Error 0x87d00329]LOG]!><time="10:38:28.087-60" date="06-12-2015" component="AppDiscovery" context="" type="3" thread="5060" file="appprovider.cpp:545">

<![LOG[Entering ExecQueryAsync for query "select * from CCM_AppDeliveryType where (AppDeliveryTypeId = "ScopeId_7D13EABB-7CC3-441D-9BE5-E67F3D61EB3D/DeploymentType_1347cc8f-2a02-409b-bc89-23c10aeef4f2" AND Revision = 21)"]LOG]!><time="10:38:30.629-60" date="06-12-2015" component="AppDiscovery" context="" type="1" thread="5060" file="appprovider.cpp:406">
<![LOG[ Performing detection of app deployment type SDL Trados Studio 2014(ScopeId_7D13EABB-7CC3-441D-9BE5-E67F3D61EB3D/DeploymentType_1347cc8f-2a02-409b-bc89-23c10aeef4f2, revision 21) for user.]LOG]!><time="10:38:30.639-60" date="06-12-2015" component="AppDiscovery" context="" type="1" thread="5060" file="appprovider.cpp:2148">
<![LOG[ In-line script returned error output: Exception calling "GetVersionInfo" with "1" argument(s): "C:\Program Files (x86
)\SDL\SDL Trados Studio\Studio3\SDLTradosStudio.exe"
At C:\WINDOWS\CCM\SystemTemp\6a0acbc1-a735-45e0-99d9-3ad8e9ebe145.ps1:4 char:71
+ $CurrentVersion = [system.diagnostics.fileversioninfo]::GetVersionInfo <<<< (
$File)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
]LOG]!><time="10:38:31.446-60" date="06-12-2015" component="AppDiscovery" context="" type="2" thread="5060" file="appexcnlib.cpp:1020">
<![LOG[A script execution error has occurred. The script has no output in stdout and an error message in stderr.]LOG]!><time="10:38:31.447-60" date="06-12-2015" component="AppDiscovery" context="" type="3" thread="5060" file="appexcnlib.cpp:1030">
<![LOG[script Execution returned error message: Exception calling "GetVersionInfo" with "1" argument(s): "C:\Program Files (x86
)\SDL\SDL Trados Studio\Studio3\SDLTradosStudio.exe"
At C:\WINDOWS\CCM\SystemTemp\6a0acbc1-a735-45e0-99d9-3ad8e9ebe145.ps1:4 char:71
+ $CurrentVersion = [system.diagnostics.fileversioninfo]::GetVersionInfo <<<< (
$File)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
, ExitCode: 4294967295]LOG]!><time="10:38:31.448-60" date="06-12-2015" component="AppDiscovery" context="" type="2" thread="5060" file="scripthandler.cpp:473">
<![LOG[ Script Execution Returned :4294967295, Error Message: Exception calling "GetVersionInfo" with "1" argument(s): "C:\Program Files (x86
)\SDL\SDL Trados Studio\Studio3\SDLTradosStudio.exe"
At C:\WINDOWS\CCM\SystemTemp\6a0acbc1-a735-45e0-99d9-3ad8e9ebe145.ps1:4 char:71
+ $CurrentVersion = [system.diagnostics.fileversioninfo]::GetVersionInfo <<<< (
$File)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
. [AppDT Id: ScopeId_7D13EABB-7CC3-441D-9BE5-E67F3D61EB3D/DeploymentType_1347cc8f-2a02-409b-bc89-23c10aeef4f2, Revision: 21]]LOG]!><time="10:38:31.449-60" date="06-12-2015" component="AppDiscovery" context="" type="3" thread="5060" file="scripthandler.cpp:506">
<![LOG[CScriptHandler::DiscoverApp failed (0x87d00329).]LOG]!><time="10:38:31.455-60" date="06-12-2015" component="AppDiscovery" context="" type="3" thread="5060" file="scripthandler.cpp:546">
<![LOG[Deployment type detection failed with error 0x87d00329.]LOG]!><time="10:38:31.456-60" date="06-12-2015" component="AppDiscovery" context="" type="3" thread="5060" file="appprovider.cpp:2203">
<![LOG[Failed to perform detection of app deployment type SDL Trados Studio 2014(SDL Trados Studio 2014, revision 21) for user. Error 0x87d00329]LOG]!><time="10:38:31.457-60" date="06-12-2015" component="AppDiscovery" context="" type="3" thread="5060" file="appprovider.cpp:545">

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.