Forum Discussion
Office Applications Closing/Crashing at Random
Jon Ostroushko, according to Microsoft, this is a known bug within MECM and it was introduced when upgrading to release 2111 (but it could have been introduced in release 2107, which we never went to) -- my organization upgraded in March of 2022 to release 2111, and we began receiving reports of running applications just closing (not just Office apps)...we finally tracked down the Event Details you describe, and ultimately reproduced the problem on-demand...unfortunately, once we opened a case with Microsoft, they didn't have good news for us; they acknowledged the issue to be a bug with no ETA on when they'd be able to fix...only that it would be fixed in a future release. So to battle this, we had to change all of our "Required" deployments with executables listed under "Install Behavior" to only install when no user is logged in.
Fast forward to November of 2022, we decided to see if upgrading to release 2207 would resolve the problem; but that only made things worse -- with this release, now any superseded application that was configured in the current application you were deploying, if installed on targeted PC; any executables listed under "Install Behavior" would force close, even if you had only install when no user is logged on...the PC wasn't even attempting to install the new application, it was attempting to uninstall anything superseded by the new app -- so now we have to take another drastic approach, and unconfigure any "Install Behavior" executables in all currently deployed applications if Supersedence is configured for said app as well. Thankfully, I modified a SQL query I found to pull up to 6 executables configured under "Install Behavior" for all applications in our database (below).
This second case we opened is still going, I'm not letting Microsoft close it until they give me an ETA on when the bug is going to be fixed.
SQL Query to preserve any executables configured under "Install Behavior"
---------------------------
;WITH XMLNAMESPACES ( DEFAULT 'http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/06/14/Rules', 'http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest' as p1)
SELECT
A.[App Name],max(A.[DT Name])[DT Title],A.Type,A.InstBehavior1,A.InstBehavior2,A.InstBehavior3,A.InstBehavior4,InstBehavior5,InstBehavior6,A.PostInst
,A.ContentLocation ,A.InstallCommandLine,A.UninstallCommandLine,A.ExecutionContext,A.RequiresLogOn
,A.UserInteractionMode,A.OnFastNetwork,A.OnSlowNetwork,A.DetectAction
from (
SELECT LPC.DisplayName [App Name]
,(LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Title)[1]', 'nvarchar(max)')) AS [DT Name]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/@Technology)[1]', 'nvarchar(max)') AS [Type]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:CustomData/p1:InstallProcessDetection/p1:ProcessList/p1:ProcessInformation/@Name)[1]', 'nvarchar(max)') AS [InstBehavior1]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:CustomData/p1:InstallProcessDetection/p1:ProcessList/p1:ProcessInformation/@Name)[2]', 'nvarchar(max)') AS [InstBehavior2]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:CustomData/p1:InstallProcessDetection/p1:ProcessList/p1:ProcessInformation/@Name)[3]', 'nvarchar(max)') AS [InstBehavior3]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:CustomData/p1:InstallProcessDetection/p1:ProcessList/p1:ProcessInformation/@Name)[4]', 'nvarchar(max)') AS [InstBehavior4]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:CustomData/p1:InstallProcessDetection/p1:ProcessList/p1:ProcessInformation/@Name)[5]', 'nvarchar(max)') AS [InstBehavior5]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:CustomData/p1:InstallProcessDetection/p1:ProcessList/p1:ProcessInformation/@Name)[6]', 'nvarchar(max)') AS [InstBehavior6]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:CustomData/p1:PostInstallBehavior)[1]', 'nvarchar(max)') AS [PostInst]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:Contents/p1:Content/p1:Location)[1]', 'nvarchar(max)') AS [ContentLocation]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:InstallAction/p1:Args/p1:Arg)[1]', 'nvarchar(max)') AS [InstallCommandLine]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:UninstallAction/p1:Args/p1:Arg)[1]', 'nvarchar(max)') AS [UninstallCommandLine]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:InstallAction/p1:Args/p1:Arg)[3]', 'nvarchar(max)') AS [ExecutionContext]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:InstallAction/p1:Args/p1:Arg)[4]', 'nvarchar(max)') AS [RequiresLogOn]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:InstallAction/p1:Args/p1:Arg)[8]', 'nvarchar(max)') AS [UserInteractionMode]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:Contents/p1:Content/p1:OnFastNetwork)[1]', 'nvarchar(max)') AS [OnFastNetwork]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:Contents/p1:Content/p1:OnSlowNetwork)[1]', 'nvarchar(max)') AS [OnSlowNetwork]
,LDT.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:DetectAction/p1:Provider)[1]', 'nvarchar(max)') AS DetectAction
FROM
dbo.fn_ListApplicationCIs(1033) LPC
RIGHT Join fn_ListDeploymentTypeCIs(1033) LDT ON LDT.AppModelName = LPC.ModelName
--where LDT.CIType_ID = 21 AND LDT.IsLatest = 1 AND LDT.DisplayName like 'dpw office 365 templates%'
where LDT.CIType_ID = 21 AND LDT.IsLatest = 1
) A
GROUP BY A.[App Name],A.Type,A.InstBehavior1,A.InstBehavior2,A.InstBehavior3,A.InstBehavior4,InstBehavior5,InstBehavior6,A.PostInst,A.ContentLocation,A.InstallCommandLine,A.UninstallCommandLine,A.ExecutionContext,A.RequiresLogOn,A.UserInteractionMode,
A.OnFastNetwork,A.OnSlowNetwork,A.DetectAction
ORDER BY A.InstBehavior1 DESC
--ORDER BY A.[App Name]