To help you migrate from older MSI-based products, Click-to-Run also supports in-place upgrade when you move to Microsoft Office 2019 or Office 365. Beginning in Office 2019, Office client applications will no longer be available in MSI format. This change in deployment technology does not affect how products are licensed or supported.
Active20 days ago
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. A bonus would be if I can detect the specific version(s) of Excel that is(/are) installed.
code4lifecode4life
13.5k77 gold badges4444 silver badges7979 bronze badges
8 Answers
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 2007 is installed you should check for the presence of the following Registry key:
This entry contains the path to the executable.
Replace 12.0 (for Office 2007) with the corresponding version number:
The other applications have similar keys:
Or you can check the common root path of all applications:
Another option, without using specific Registry keys would be to query the MSI database using the
MSIEnumProducts API as described here.
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.
Update: Office 2019 and Office 365
As of Office 2019, MSI-based setup are no longer available, Click-To-Run is the only way to deploy Office now. Together with this change towards the regularly updated Office 365, also the major/minor version numbers of Office are no longer updated (at least for the time being). That means that – even for Office 2019 – the value used in Registry keys and the value returned by
Application.Version (e.g. in Word) still is 16.0 .
For the time being, there is no documented way to distinguish the Office 2016 from Office 2019. A clue might be the file version of the winword.exe; however, this version is also incremented for patched Office 2016 versions (see the comment by @antonio below).
144k4949 gold badges234234 silver badges291291 bronze badges
How about HKEY_CLASSES_ROOTWord.ApplicationCurVer?
BobL2112BobL2112
If you've installed 32-bit Office on a 64-bit machine, you may need to check for the presence of 'SOFTWAREWow6432NodeMicrosoftOffice12.0', substituting the 12.0 with the appropriate version. This is certainly the case for Office 2007 installed on 64-bit Windows 7.
Note that Office 2010 ( 14.0) is the first Office for which a 64-bit version exists.
JasonJason
6,24899 gold badges4949 silver badges6060 bronze badges
I found this CodeProject which helped me out with this very problem: http://www.codeproject.com/Articles/26520/Getting-Office-s-Version
peinearydevelopmentpeinearydevelopment
5,45544 gold badges2525 silver badges5353 bronze badges
zeezee
24011 gold badge66 silver badges1313 bronze badges
Why not check
HKLMSOFTWAREMicrosoftWindowsCurrentVersionApp Paths[office.exe] , where [office.exe] stands for particular office product exe-filename, e.g. winword.exe , excel.exe etc.There you get path to executable and check version of that file.
How to check version of the file: in C++ / in C#
Any criticism towards such approach?
Community♦
John BoscoJohn Bosco
Download gratis winzip. A bonus would be if I can detect the specific version(s) of Excel that is(/are) installed.
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.g.
15.0.4569.1506 ), probe HKLMSOFTWAREMicrosoftOffice[VER]CommonProductVersion::LastProduct , where [VER] is the major version number (12.0 for Office 2007, 14.0 for Office 2010, 15.0 for Office 2013).
On a 64-bit Windows, you need to insert
Wow6432Node between the SOFTWARE and Microsoft crumbs, irrespective of the bitness of the Office installation.
On my machines, this gives the version information of the originally installed version. For Office 2010 for instance, the numbers match the ones listed here, and they differ from the version reported in
File > Help , which reflects patches applied by hotfixes.
Download avg free offline installer. Download FREE AVG antivirus software. Get protection against viruses, malware and spyware. Easy-to-use virus scanner. Download today – free forever! Offline installer.exe. Our AVG apps update automatically. If your update has failed, please try again from within your app. If you need to update manually, use the following file. Update file.exe. Oct 12, 2016 AVG Offline Installer. Hi Guys, Is there an AVG installer that I can use offline? Most of the uploaded installers need to be connected to the internet upon installation. I need to install and scan a workstation that's not connected to the internet. Remover and Download: 1) To download AVG remover tool, please click on this link. Sep 18, 2018 Hey, so I I'm using AVG free antivirus on an offline computer. And I've been able to download the.bin files and do an manual update for a few years. Though it seems AVG have removed the option to download the stand alone updates from their site? Can anyone confirm this? AVG Offline Installer 2019 Donwald – antivirus avg 2019 gratis, 2019 avg tuneup, avg pc tuneup download 2019, free antivirus for windows 7 x64 bit, The appearance of AVG from different antivirus is LinkScanner.Use LinkScanner to check hyperlinks when browsing in cyberspace. Url Reader is effective on Mozilla Firefox and Net Traveler browser.
Chris
2,60411 gold badge1515 silver badges3232 bronze badges
bovenderbovender
Rakeshravi GRakeshravi G
Not the answer you're looking for? Browse other questions tagged c#excel.net-3.5ms-office or ask your own question.-->
We recommend that you uninstall any previous versions of Office before installing Office 365 ProPlus. To help you uninstall versions of Office that use Windows Installer (MSI) as the installation technology, you can use the Office Deployment Tool and specify the RemoveMSI element in your configuration.xml file.
There are several ways that you can use the RemoveMSI element when installing Office 365 ProPlus.
Msi Version Of Office 2016
RemoveMSI can be used to uninstall 2010, 2013, or 2016 versions of Office, Visio, or Project that were installed using Windows Installer (MSI).
Requirements for using RemoveMSI
The following are requirements for using the RemoveMSI element in your configuration.xml file:
Uninstall all Office products
To uninstall all versions of Office, including Visio and Project, that are already installed on the computer, add <RemoveMSI /> to your configuration.xml file. Language resources – for example, language packs, language interface packs, or proofing tools – will also be removed.
Here’s an example of a configuration.xml file that installs the 64-bit Monthly Channel version of Office 365 ProPlus in English from the Office Content Delivery Network (CDN) on the Internet and uninstalls any Windows Installer (MSI) versions of Office on the computer.
Install the same language resourcesMsi Version Of Office 2013
If there are language resources – for example, language packs, language interface packs, or proofing tools – already installed on the computer, you can get Click-to-Run versions of the same language resources installed when you install Office 365 ProPlus. To do this, add <Language /> to your configuration.xml file.
Here’s an example of a configuration.xml file that installs the 64-bit Semi-Annual Channel (Targeted) version of Office 365 ProPlus in English, along with any existing languages on the computer, from the Office Content Delivery Network (CDN) on the Internet and uninstalls any Windows Installer (MSI) versions of Office on the computer.
The following are some additional details about using MatchPreviousMSI in your configuration.xml file.
Windows Installer Office Edition
Important
If you’re installing Office 365 ProPlus from a location on your local network, such as a shared folder, make sure you’ve downloaded all the possible language files to that folder. If any of the languages needed to install aren't available in that folder, the installation will fail and the previous version of Office will have been removed. To avoid this situation, we recommend that you include AllowCdnFallback='True' in your configuration.xml file. This will use the Office Content Delivery Network (CDN) on the internet as a backup source from which to install the language files.
Keep some Office products and uninstall all other Office products
We recommend that you uninstall any previous versions of Office, including Visio and Project, before installing the newer version. But, in a few cases, such as for application compatibility testing, you might need to keep a previous version installed for a limited time while you transition to the new version.
To keep a particular Office product, you add an IgnoreProduct line to your configuration.xml file and you specify its product ID.
The following are examples of supported IDs for Project and Visio:
How To Get Msi Version Of Office 2016
Note
The product ID is the Setup ID that is found in the Setup.xml file in the {product}.WW folder of the installation files for your previous version of Office. For example, the Setup.xml file for Office Professional Plus 2010 is found in the ProPlus.WW folder.
The ID isn't version specific. All versions found on the computer will be kept. For example, if you specify VisPro, both Visio Professional 2016 and Visio Professional 2013 will be kept. Language resources for those versions are also kept. For example, language packs, language interface packs, or proofing tools.
Only full product removals are supported. For example, if you have Office Professional Plus 2013 installed, you can't uninstall everything except Excel. You either must keep or uninstall the entire product. You can only keep a previous installation of Excel if it was installed as a standalone product, not installed as part of an Office suite, like Office Professional Plus.
Here’s an example of a configuration.xml file that installs the 64-bit Semi-Annual Channel (Targeted) version of Office 365 ProPlus in English from the Office Content Delivery Network (CDN) on the Internet and uninstalls any Windows Installer (MSI) versions of Office, except for Visio Professional, on the computer.
Additional information about using RemoveMSI
The following are some additional details about using the RemoveMSI element in your configuration.xml file.
Related topicsComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |