Looking for:
Microsoft.office.interop.outlook.dll 2016 free

Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search.
Does anyone know what would be the best way to detect which version of Office is installed? Plus, if there are multiple versions of Office installed, I’d like to know what versions they are. One way to check for the installed Office version would be to check the InstallRoot registry keys for the Office applications of interest.
For example, if you would like to check whether Word is installed you should check for the presence of the following Registry key:. As an aside, parallel installations of different Office versions are not officially supported by Microsoft. They do somewhat work, but you might get undesired effects and inconsistencies. That means that — even for Office — the value used in Registry keys and the value returned by Application.
Version e. For the time being, there is no documented way to distinguish the Office from Office A clue might be the file version of the winword. If you need to distinguish somehow between Office versions, e. The file version of Office is This is certainly the case for Office installed on bit Windows 7. Despite the fact that this question has been answered long time ago, I found some interesting facts to add that are related to the answers above.
You cannot distinguish among the three , , O , by seeing at the executable paths anymore. And just like he reputed himself, looking at the builds of the executable, as a mean of telling which is what, isn’t quite effective either.
After some researching, I found a feasible solution. Case 3 : if the computer has Office installed, there is a value called obussinessretail which is also a product ID along with some other values. The possible productIds are provided here. To distinguish the three, I just opened the key and see if fails. If the open fails, its Office Then I enumerate LicensingNext and try to see if any name has a prefix o , if it finds it then its O If it does not, then its Office Frankly speaking, I did not have enough time to test the logic under varying environment.
So please, note that. There you get path to executable and check version of that file. I figured out an elegant way to detect the “Microsoft Office Version” that perhaps also works, when you want to detect if you have “Office ” or “Office ” installed. I just detected the installation path of “Microsoft Office” then declared a System. The infos stored in “OfficeVersionInfo” in the code example are the infos you get when you rightclick on the “winword.
See this: Details of winword. I know the question has been asked and answered a long time ago, but this same question has kept me busy until I made this observation:. To get the build number e. On my machines, this gives the version information of the originally installed version. Written in Python 3. Stack Overflow for Teams — Start collaborating and sharing organizational knowledge. Create a free Team Why Teams? Learn more. How to detect installed version of MS-Office?
Ask Question. Asked 11 years, 11 months ago. Modified 6 months ago. Viewed k times. Mandelbrot: That only tells me which version I’m referencing Ah, good point.
My bad. Do you want to find this out using C code or from an MSI installer? Add a comment. Sorted by: Reset to default. Highest score default Date modified newest first Date created oldest first.
Replace Office – GetProcessesByName “winword”. Dirk Vollmar Dirk Vollmar k 53 53 gold badges silver badges bronze badges. Do we also need to check HKCU? Because that’s where my registry keys are located.
I’m sure it does not need to be said and is somewhat superfluous as a comment, however, the reason that there is no version between Note that if you use the Common key to check the common root for all office apps , that won’t work in version Hecksa: Is this a Click-To-Run installation? They might handle this differently. How would you check if its a 32bit version of Office or 64 bit version?
Show 7 more comments. BobL BobL 3 3 silver badges 2 2 bronze badges. This is my favorite as it avoids the Wow64 issue, and also supports the case where multiple office versions are installed and if so I believe CurVer is set to the the last version launched. Wish I saw this earlier, works a treat in Inno Setup as well.
This is a good answer, but for clarity, it only gets the internal version, e. It does not return file or registry paths. You still have to get that separately. Word also show Word. So the question is how to distinguish from version. Show 1 more comment. Hugh W 1 1 gold badge 6 6 silver badges 21 21 bronze badges.
Jason Jason 8, 9 9 gold badges 56 56 silver badges 67 67 bronze badges. Generic; using System. Text; using Microsoft. Empty; Microsoft. Application ; appVersion. This looks like the same proposed solution linked to by Longball27, except updated to handle Office There are two problems with this. The Microsoft. Word dll may not be installed even if Word is installed, for example if Word was installed before.
Net was installed or if a partial install of Office was done instead of a complete install. This is perhaps most typical for partial installs of only Outlook – the corresponding Microsoft.
Outlook dll is typically not installed until the user downloads and installs the “Primary Interop Assembly” for Outlook. The other very minor problem is that the “default” clause on the “switch” statement is saying “Too Old!
A more likely cause of that code being executed is that the version of Word or whatever is too new. This was in fact illustrated by the update made to this program to handle Office – before that update was applied the previous version of this program was saying that Office was too old! Does this code fails if Office not installed in machine?
So, my logic follows below: Case 1 : If the computer has the MSOffice installed, there is no subkeys under Licensing. StandardVolume Case 3 : if the computer has Office installed, there is a value called obussinessretail which is also a product ID along with some other values. Hope this will help whoever’s interest. Thank you. You probably saved me a lot if time! Community Bot 1 1 1 silver badge.
John Bosco John Bosco 2 2 silver badges 10 10 bronze badges. This worked for me very well and eliminated issues I had regarding x86 vs 64bit and across slightly different installation setups.
Note: when you install 2 different versions e. Excel and Excel , this always seems to point to the last recent installation i.
Fixing DLL Issues – How to Download and Repair.
Show 7 more comments. BobL BobL 3 3 silver badges 2 2 bronze badges. This is my favorite as it avoids the Wow64 issue, and also supports the case where multiple office versions are installed and if so I believe CurVer is set to the the last version launched.
Wish I saw this earlier, works a treat in Inno Setup as well. This is a good answer, but for clarity, it only gets the internal version, e. It does not return file or registry paths. You still have to get that separately. Word also show Word. So the question is how to distinguish from version. Show 1 more comment. Hugh W 1 1 gold badge 6 6 silver badges 21 21 bronze badges.
Jason Jason 8, 9 9 gold badges 56 56 silver badges 67 67 bronze badges. Generic; using System. Text; using Microsoft. Empty; Microsoft. Application ; appVersion. This looks like the same proposed solution linked to by Longball27, except updated to handle Office There are two problems with this.
The Microsoft. Word dll may not be installed even if Word is installed, for example if Word was installed before. Net was installed or if a partial install of Office was done instead of a complete install.
This is perhaps most typical for partial installs of only Outlook – the corresponding Microsoft. Outlook dll is typically not installed until the user downloads and installs the “Primary Interop Assembly” for Outlook.
The other very minor problem is that the “default” clause on the “switch” statement is saying “Too Old! A more likely cause of that code being executed is that the version of Word or whatever is too new. This was in fact illustrated by the update made to this program to handle Office – before that update was applied the previous version of this program was saying that Office was too old!
Does this code fails if Office not installed in machine? So, my logic follows below: Case 1 : If the computer has the MSOffice installed, there is no subkeys under Licensing.
StandardVolume Case 3 : if the computer has Office installed, there is a value called obussinessretail which is also a product ID along with some other values.
Hope this will help whoever’s interest. Thank you. You probably saved me a lot if time! Community Bot 1 1 1 silver badge. John Bosco John Bosco 2 2 silver badges 10 10 bronze badges. This worked for me very well and eliminated issues I had regarding x86 vs 64bit and across slightly different installation setups. Note: when you install 2 different versions e. Excel and Excel , this always seems to point to the last recent installation i. Here is the full code of a very small console application as an example: using System; using System.
IO; using System. Diagnostics; using System. FullVersionNumber ; Console. FullOfficeVersionName ; Console. Write “Press any key to end this program Path; appInstance. Print exc.
Note that if you use the Common key to check the common root for all office apps , that won’t work in version Hecksa: Is this a Click-To-Run installation? They might handle this differently. How would you check if its a 32bit version of Office or 64 bit version? Show 7 more comments. BobL BobL 3 3 silver badges 2 2 bronze badges. This is my favorite as it avoids the Wow64 issue, and also supports the case where multiple office versions are installed and if so I believe CurVer is set to the the last version launched.
Wish I saw this earlier, works a treat in Inno Setup as well. This is a good answer, but for clarity, it only gets the internal version, e. It does not return file or registry paths. You still have to get that separately. Word also show Word. So the question is how to distinguish from version.
Show 1 more comment. Hugh W 1 1 gold badge 6 6 silver badges 21 21 bronze badges. Jason Jason 8, 9 9 gold badges 56 56 silver badges 67 67 bronze badges.
Generic; using System. Text; using Microsoft. Empty; Microsoft. Application ; appVersion. This looks like the same proposed solution linked to by Longball27, except updated to handle Office There are two problems with this. The Microsoft. Word dll may not be installed even if Word is installed, for example if Word was installed before. Net was installed or if a partial install of Office was done instead of a complete install.
This is perhaps most typical for partial installs of only Outlook – the corresponding Microsoft. Outlook dll is typically not installed until the user downloads and installs the “Primary Interop Assembly” for Outlook. The other very minor problem is that the “default” clause on the “switch” statement is saying “Too Old! A more likely cause of that code being executed is that the version of Word or whatever is too new.
This was in fact illustrated by the update made to this program to handle Office – before that update was applied the previous version of this program was saying that Office was too old! Does this code fails if Office not installed in machine? So, my logic follows below: Case 1 : If the computer has the MSOffice installed, there is no subkeys under Licensing.
StandardVolume Case 3 : if the computer has Office installed, there is a value called obussinessretail which is also a product ID along with some other values. Hope this will help whoever’s interest. Thank you. You probably saved me a lot if time! Community Bot 1 1 1 silver badge.
John Bosco John Bosco 2 2 silver badges 10 10 bronze badges. This worked for me very well and eliminated issues I had regarding x86 vs 64bit and across slightly different installation setups. Note: when you install 2 different versions e. Excel and Excel , this always seems to point to the last recent installation i. Here is the full code of a very small console application as an example: using System; using System.
IO; using System. Diagnostics; using System. FullVersionNumber ; Console. Jason Jason 8, 9 9 gold badges 56 56 silver badges 67 67 bronze badges. Generic; using System. Text; using Microsoft. Empty; Microsoft. Application ; appVersion.
This looks like the same proposed solution linked to by Longball27, except updated to handle Office There are two problems with this. The Microsoft. Word dll may not be installed even if Word is installed, for example if Word was installed before. Net was installed or if a partial install of Office was done instead of a complete install. This is perhaps most typical for partial installs of only Outlook – the corresponding Microsoft. Outlook dll is typically not installed until the user downloads and installs the “Primary Interop Assembly” for Outlook.
The other very minor problem is that the “default” clause on the “switch” statement is saying “Too Old! A more likely cause of that code being executed is that the version of Word or whatever is too new. This was in fact illustrated by the update made to this program to handle Office – before that update was applied the previous version of this program was saying that Office was too old!
Does this code fails if Office not installed in machine? So, my logic follows below: Case 1 : If the computer has the MSOffice installed, there is no subkeys under Licensing. StandardVolume Case 3 : if the computer has Office installed, there is a value called obussinessretail which is also a product ID along with some other values. Hope this will help whoever’s interest.
Thank you. You probably saved me a lot if time! Community Bot 1 1 1 silver badge. John Bosco John Bosco 2 2 silver badges 10 10 bronze badges. This worked for me very well and eliminated issues I had regarding x86 vs 64bit and across slightly different installation setups.
Note: when you install 2 different versions e. Excel and Excel , this always seems to point to the last recent installation i. Here is the full code of a very small console application as an example: using System; using System. IO; using System. Diagnostics; using System. FullVersionNumber ; Console. FullOfficeVersionName ; Console. Write “Press any key to end this program Path; appInstance. Print exc. Unfortunately this is not an option.
No more information about a concreate version unfortunately. Now for me it seems a bit that Microsoft doesn’t want you to different between Office and Office Very unfortunate.
Anyways thank you for your comment. I know the question has been asked and answered a long time ago, but this same question has kept me busy until I made this observation: To get the build number e. Chris 3, 1 1 gold badge 24 24 silver badges 40 40 bronze badges. Empty; Word. Application ; switch WinWord.
On those python interpreters you might just remove typing completly Any improvements are highly welcome. Orsiris de Jong Orsiris de Jong 2, 1 1 gold badge 22 22 silver badges 41 41 bronze badges.
What is ? (id) – Your Answer
This an assembly you can use for Outlook // COM interop, generated and signed by Microsoft. This is entirely unsupported and there is no license. Download and install to fix missing or corrupted DLL errors. Free, Safe and Secure.