Detect whether MS Office installed is 32bit or 64bit by using registry

前端 未结 4 1812
Happy的楠姐
Happy的楠姐 2021-01-14 06:01

I want to install vsto addin based on the excel version (32 bit or 64 bit). I am planning to bundle both 32bit and 64 bit msis and install one by determining the excel versi

4条回答
  •  醉话见心
    2021-01-14 06:07

    Given: Office32 is installed into "Program Files (x86)", this works for me.

    I basically check to see if winword.exe is somewhere below the key. If they don't install the word part, well, tough at this point. I use this to variably run 32-bit or 64-bit msi installers for office.

    
    
      
        
      
    
    
    
      
        
        IS_32BITOFFICE
       
      
        
        NOT IS_32BITOFFICE
       
        
    
    

提交回复
热议问题