locked
Install Office Add-on pre-determine 64x or 32x RRS feed

  • Question

  • Good afternoon all,

    I am looking to roll out a Microsoft Outlook add-on through group policy, there are two versions of the client, x64 & x32.

    Unfortunately my estate houses a number of 32 bit & 64 bit Office installs, and the add-on is dependant on the version of office.

    I require a script to carry out the following

    1. Check if the remote machine is running x64 or x32 office

    2. Install the relevant add-on depending on the outcome in step 1.

    Any help would be greatly appreciated.

    Thanks,

    Hassan.

    Wednesday, March 25, 2015 2:13 PM

Answers

  • To check if Office version installed is 32-bit or 64-bit, you can validate through a key created by the office installation -

    Article : https://technet.microsoft.com/en-us/library/ee681792(office.14).aspx

    Powershell -

    #OFFICE 2013 BITNESS
    $bitness = get-itemproperty HKLM:\Software\Microsoft\Office\15.0\Outlook -name Bitness
    
    If($bitness -eq "x86"){
    
    #DO 32-BIT STUFF
    
    }
    
    elseif($bitness -eq "x64"){
    
    #DO 64-BIT STUFF
    
    }

    This is definitely not a turnkey script, but should at least get you started.  Some things to consider are if there is more than one version of Office possible - 2013? 2010? 2007? - That registry key will be different for each version, so be sure to check what version is installed. 

    JRV also gives you the method to grab the system architecture as well if necessary.  Hope this helps you.

    Ryan


    • Edited by MrBrooks Wednesday, March 25, 2015 6:21 PM
    • Proposed as answer by jrv Wednesday, March 25, 2015 6:39 PM
    • Marked as answer by AnnaWY Friday, April 10, 2015 6:38 AM
    Wednesday, March 25, 2015 6:21 PM

All replies

  • The architecture is store in an environment variable. %PROCESSOR_ARCHITECTURE%


    ¯\_(ツ)_/¯

    Wednesday, March 25, 2015 5:56 PM
  • To check if Office version installed is 32-bit or 64-bit, you can validate through a key created by the office installation -

    Article : https://technet.microsoft.com/en-us/library/ee681792(office.14).aspx

    Powershell -

    #OFFICE 2013 BITNESS
    $bitness = get-itemproperty HKLM:\Software\Microsoft\Office\15.0\Outlook -name Bitness
    
    If($bitness -eq "x86"){
    
    #DO 32-BIT STUFF
    
    }
    
    elseif($bitness -eq "x64"){
    
    #DO 64-BIT STUFF
    
    }

    This is definitely not a turnkey script, but should at least get you started.  Some things to consider are if there is more than one version of Office possible - 2013? 2010? 2007? - That registry key will be different for each version, so be sure to check what version is installed. 

    JRV also gives you the method to grab the system architecture as well if necessary.  Hope this helps you.

    Ryan


    • Edited by MrBrooks Wednesday, March 25, 2015 6:21 PM
    • Proposed as answer by jrv Wednesday, March 25, 2015 6:39 PM
    • Marked as answer by AnnaWY Friday, April 10, 2015 6:38 AM
    Wednesday, March 25, 2015 6:21 PM
  • Yes - Checking the version installed is better. I didn't see that. Of course bitness I a different key on each version..

    On  a 32 bit 0install on a 64 bit platform the key is here:

    get-itemproperty hklm:\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook -name bitness


    ¯\_(ツ)_/¯

    Wednesday, March 25, 2015 6:39 PM