Office click-ro-run and OLE automation

According to this post a few years ago http://stackoverflow.com/questions/3372394/is-it-possible-to-automate-a-click-to-run-application, Office installed via click-to-run does not support ole automation.

Now a few years have passed, I wonder if Office 2016/Office 365 installed via click-to-run now supports OLE-Automation.

One of our software failed with click-to-run installed office. Process Monitor suggest that it is looking for HKCR\Typelib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.8\0\win32 in the registry and failed to find mso.dll. Office itself found in registry HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\Classes\TypeLib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.8\0\win32\(Default). Maybe a traditional OLE automation client does not know the new location?

|

Hi,

Since the query is regarding OLE (Object Linking and Embedding) automation in Office, Please post your query in the Microsoft Development community forum for further assistance.

https://social.msdn.microsoft.com/Forums/en-US/home?forum=officegeneral&filter=alltypes&sort=lastpostdesc

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly. They can either share their knowledge or learn from your interaction with us.

Thank you.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

According to this post a few years ago http://stackoverflow.com/questions/3372394/is-it-possible-to-automate-a-click-to-run-application, Office installed via click-to-run does not support ole automation.

Now a few years have passed, I wonder if Office 2016/Office 365 installed via click-to-run now supports OLE-Automation.

One of our software failed with click-to-run installed office. Process Monitor suggest that it is looking for HKCR\Typelib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.8\0\win32 in the registry and failed to find mso.dll. Office itself found in registry HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\Classes\TypeLib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.8\0\win32\(Default). Maybe a traditional OLE automation client does not know the new location?

I have found the solution myself. With click-to-run, Office installation does not register typelibs in HKCR\Typelib. Instead, it registers typelibs in HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\SOFTWARE\Classes\TypeLib. VBAs running in Office is aware of the location and runs fine. External application is not aware of the location. So the solution is to run regtlib.exe on mso.dll to register Office typelibs in HKCR\Typelib so that external applications can run OLE Automation correctly.

lc

4 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated February 26, 2021 Views 3,559 Applies to: