Dectection Method for Office 365 ProPlus installer in ConfigMgr CB 1803

%3CLINGO-SUB%20id%3D%22lingo-sub-242689%22%20slang%3D%22en-US%22%3EDectection%20Method%20for%20Office%20365%20ProPlus%20installer%20in%20ConfigMgr%20CB%201803%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242689%22%20slang%3D%22en-US%22%3E%3CP%3EHello.%3CBR%20%2F%3EI%20have%20been%20playing%20around%20with%20the%20Office%20365%20Client%20Management%20in%20ConfigMgr.%3CBR%20%2F%3EWhen%20I%20look%20at%20the%20detection%20methods%20configured%20for%20the%20Office%20365%20Installer%20I%20can%20see%20that%20its%20based%20on%20the%20following%20registry%20setting.%3CBR%20%2F%3EHKLM%3A%5CSoftware%5CMicrosoft%5COffice%5CClickToRun%5CConfiguration%5C%3CBR%20%2F%3EVersionToReport%20%3D%2016.0.XXXX.XXXX%3CBR%20%2F%3ESo%20far%20so%20good%2C%20but%20here%20is%20the%20thing.%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3ELet's%20say%20that%20you%20create%20a%20Office%20365%20ProPlus%20installer%20for%20a%20newer%20version%20and%20deploy%20it%20to%20a%20computer%20that%20have%20an%20older%20version%20installed%20where%20a%20user%20is%20signed%20in%20and%20running%20one%20or%20more%20Office%20apps%2C%20then%20the%20deployment%20will%20fail%20(ofc).%3CBR%20%2F%3EFrom%20what%20I%20can%20see%2C%20the%20execution%20of%20the%20installer%20updates%20the%20VersionToReport%20value%20before%20the%20installation%20fails%2C%20therefor%20the%20new%20version%20will%20never%20be%20installed%20since%20the%20ConfigMgr%20client%20will%20evaluate%20the%20deployment%20as%20installed%20during%20next%20AppEval%2C%20but%20still%20the%20computer%20is%20running%20the%20old%20version.%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3ETo%20me%20this%20is%20very%20bad%20behavour.%20Or%20have%20I%20done%20something%20wrong%20here%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-242689%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%20ProPlus%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-310461%22%20slang%3D%22en-US%22%3ERe%3A%20Dectection%20Method%20for%20Office%20365%20ProPlus%20installer%20in%20ConfigMgr%20CB%201803%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-310461%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Daniel%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20agree%20the%20Version%20To%20Report%20key%20is%20going%20to%20cause%20issues%20especially%20after%20a%20few%20updates%20to%20Office.%20I%20think%20a%20better%20approach%20is%26nbsp%3B%20to%20change%20the%20detection%20logic%26nbsp%3B%20to%20search%20for%20the%20following%20key.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CFONT%3EHKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CWindows%5CCurrentVersion%5CUninstall%5CO365ProPlusRetail%20-%20en-us%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%3EIf%20this%20key%20is%20present%20then%20Office%20365%20ProPlus%20is%20installed.%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%3EAny%20questions%20or%20concerns%20let%20me%20know.%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hello.
I have been playing around with the Office 365 Client Management in ConfigMgr.
When I look at the detection methods configured for the Office 365 Installer I can see that its based on the following registry setting.
HKLM:\Software\Microsoft\Office\ClickToRun\Configuration\
VersionToReport = 16.0.XXXX.XXXX
So far so good, but here is the thing.
 
Let's say that you create a Office 365 ProPlus installer for a newer version and deploy it to a computer that have an older version installed where a user is signed in and running one or more Office apps, then the deployment will fail (ofc).
From what I can see, the execution of the installer updates the VersionToReport value before the installation fails, therefor the new version will never be installed since the ConfigMgr client will evaluate the deployment as installed during next AppEval, but still the computer is running the old version.
 
To me this is very bad behavour. Or have I done something wrong here?

1 Reply
Highlighted

Hello Daniel,

 

I agree the Version To Report key is going to cause issues especially after a few updates to Office. I think a better approach is  to change the detection logic  to search for the following key.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\O365ProPlusRetail - en-us

 

If this key is present then Office 365 ProPlus is installed. 

 

Any questions or concerns let me know.