none
Office 2013 - Win8, check registry if installed

    Question

  • I had raised this question over here, and was redirected to here, where I was redirected to this forum :)

    Here is the issue i am facing.

    I am trying to detect if office is installed through registry. (Basically a registry check before installing our office add-in)
    I am able to search for Office 2007 and 2010, in both Win 7 and Win 8 using the below mentioned reg Keys.

    32 bit app: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot" Path.

    64 bit app: "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Common\InstallRoot"  Path.

    But I am not able to check in Win8 with Office 2013. It looks like registry keys/values have been modified a bit here.
    So How do i detect it here?

    Saturday, December 29, 2012 7:01 AM

Answers

All replies

  • Yea, the "InstallRoot" doesn't exist anymore....they have seemed to change it to "FilePaths" but I wouldn't trust that.  For my reg query I'd use below to distinguish if Office is installed and which version(notice the beginning {9115 or {9114 for Office15(2013) or Office14(2010)):

    2013 32bit:"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{91150000-0011-0000-0000-0000000FF1CE}"

    2013 64bit:"HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{91150000-0011-0000-0000-0000000FF1CE}"

    2010 32bit:"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{91140000-0011-0000-0000-0000000FF1CE}"

    2010 64bit:"HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{91140000-0011-0000-0000-0000000FF1CE}"

    You never know when someone might uninstall Office and it might leave over junk registry files.....by pulling the registry keys directly from Add/Remove Programs (Programs and Features) you can ensure the program is either there or not.


    Be kind and Mark as Answer if I helped.


    Saturday, December 29, 2012 8:33 AM
  • thx. will try this on monday when in office and see how it goes.

    Do these entries exist irrespective of what component in office is installed? Like Only Excel or word or outlook

    • Edited by CrazyPlanet Saturday, December 29, 2012 9:22 AM
    Saturday, December 29, 2012 9:20 AM
  • They do, I actually grabbed the Office 2013 reg keys from a machine that has just Word and Excel installed and nothing else.  The Office 2010 reg keys was from a machine with the full suite.  

    Be kind and Mark as Answer if I helped.

    Saturday, December 29, 2012 6:54 PM
  • Yea, the "InstallRoot" doesn't exist anymore....they have seemed to change it to "FilePaths" but I wouldn't trust that.  For my reg query I'd use below to distinguish if Office is installed and which version(notice the beginning {9115 or {9114 for Office15(2013) or Office14(2010)):

    2013 32bit:"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{91150000-0011-0000-0000-0000000FF1CE}"

    2013 64bit:"HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{91150000-0011-0000-0000-0000000FF1CE}"

    2010 32bit:"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{91140000-0011-0000-0000-0000000FF1CE}"

    2010 64bit:"HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{91140000-0011-0000-0000-0000000FF1CE}"

    You never know when someone might uninstall Office and it might leave over junk registry files.....by pulling the registry keys directly from Add/Remove Programs (Programs and Features) you can ensure the program is either there or not.


    Be kind and Mark as Answer if I helped.


    I don't think this helps. On my system the uninstall keys are -

    2013 32bit:"...\Uninstall\{90150000-0011-0000-0000-0000000FF1CE}"

    2010 32bit:"...\Uninstall\{90140000-0011-0000-0000-0000000FF1CE}"

    It starts with 901 on mine and 911 on yours.

    I have Microsoft Office Professional Plus 2010 - 14.0.6029.1000

    Which version of office do you have?



    • Edited by CrazyPlanet Monday, December 31, 2012 7:26 AM
    Monday, December 31, 2012 5:30 AM
  • Your looking at the wrong keys.  Check the DisplayName.....Your probably looking at Word MUI 2013 or Excel MUI 2013, you should be looking for the product "Microsoft Office Professional Plus 2013" which is where my key is pointed and what you would see in the Programs/Features menu.

    Be kind and Mark as Answer if I helped.

    Monday, December 31, 2012 5:36 AM
  • Your looking at the wrong keys.  Check the DisplayName.....Your probably looking at Word MUI 2013 or Excel MUI 2013, you should be looking for the product "Microsoft Office Professional Plus 2013" which is where my key is pointed and what you would see in the Programs/Features menu.

    Be kind and Mark as Answer if I helped.

    Here is the screen shot where I am looking at. I looked at both locations Wow64Node and the one without it. The second image has the keys, but with it slightly different.

    One above is win8 64 bit, office 2013 64 bit


    • Edited by CrazyPlanet Monday, December 31, 2012 11:47 AM
    Monday, December 31, 2012 11:44 AM
  • and here are the contents under the first key {90150000-007E-0000-0000-0000000FF1CE}


    • Edited by CrazyPlanet Monday, December 31, 2012 11:58 AM
    Monday, December 31, 2012 11:56 AM
  • Oh Click to Run.  I assumed if your going through the trouble of query for the installation of office that you were in a corporate environment using office that you automated the installation of.  Since these are all manual installs what are you trying to accomplish?

    Be kind and Mark as Answer if I helped.

    Monday, December 31, 2012 11:44 PM
  • We have a bunch of add-Ins to upgrade to work on Office 2013. The Add-Ins need to be installed onto office.

    This will be used in both manual install and corp env (is this a push install that you refereed to?). So would require to work either way. Basically irrespective of what or how they installed the add-ins , they should work.



    • Edited by CrazyPlanet Tuesday, January 01, 2013 4:42 AM
    Tuesday, January 01, 2013 4:40 AM
  • Then make it real easy and just search for winword.exe in its appropriate folder.  That would guarantee you 100% that its installed as it seems your using multiple different versions of Office installs (click once manuals, volume license corp, etc).  Registry is not the best way to go about this from what I can gather.

    Be kind and Mark as Answer if I helped.

    Tuesday, January 01, 2013 5:13 AM
  • I presume you meant to search for winword.exe in windows folder. But this poses two problems for me.

    1. How do I know if its version 2013 winword, this info i would require.

    2. Can I not change location of install to a different location, how do i search in this scenario?

    I am currently, looking for office.odf (which seems to work)

    located at "SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Common\FilesPaths"


    • Edited by CrazyPlanet Tuesday, January 01, 2013 6:23 AM
    Tuesday, January 01, 2013 6:22 AM
  • If thats working then run with it.

    What I see is your installing multiple office versions but looking for one query....possibly you found it but if not then your going to have to add logic to your script to say "Search here for this reg key, if not found double check in this registry location, if still not found triple check in this file location, if still not found then assume no Office install at all and proceed to step of installing Office 2013" etc.


    Be kind and Mark as Answer if I helped.


    Tuesday, January 01, 2013 6:26 AM
  • a couple of thoughts for you:

    click-to-run can have some issues with add-ins: http://office.microsoft.com/en-au/excel-help/click-to-run-known-issues-HA101850565.aspx?CTT=3

    click-to-run is based on app-v, and a new version of app-v (version 5) is now used for some Office365 deployments.

    You may not be able to either detect, or modify some CTR environments.

    Note the product code numbering scheme which explains some of your findings to date: http://support.microsoft.com/kb/2186281

    you may need to consider other methods for detecting the presence of Office: http://support.microsoft.com/kb/240794

    How to determine which version of an Office 2010 product is installed: http://support.microsoft.com/kb/2121559


    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

    Tuesday, January 01, 2013 8:03 AM
  • all right

    thanks for the replies.

    Tuesday, January 01, 2013 8:28 AM