7coil / DiscordForOffice

Discord Rich Presence for Microsoft Office (2013 and above, Office 365)
https://leondrolio.com/projects/discordforoffice/
MIT License
162 stars 12 forks source link

Differentiate between 365 and Standalone copies of Microsoft Office #4

Open papin97 opened 5 years ago

papin97 commented 5 years ago

Please add proper Office 365 detection so it will show Microsoft (product name) 365 in Large Icon description instead of Microsoft (product name) 2016.

7coil commented 5 years ago

I've been scanning through the documentation provided by Microsoft, and I don't think this is possible.

I've searched for 365 and subsc in the following links:

There's also no obvious signs of Office 365 in the MainModule.FileVersionInfo

i used this script to dump this info Debug.WriteLine(ObjectDumper.Dump(Process.GetCurrentProcess().MainModule.FileVersionInfo));

{System.Diagnostics.FileVersionInfo}
  Comments: ""
  CompanyName: "Microsoft Corporation"
  FileBuildPart: 11425
  FileDescription: "Microsoft Word"
  FileMajorPart: 16
  FileMinorPart: 0
  FileName: "C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE"
  FilePrivatePart: 20202
  FileVersion: "16.0.11425.20202"
  InternalName: "WinWord"
  IsDebug: False
  IsPatched: False
  IsPrivateBuild: False
  IsPreRelease: False
  IsSpecialBuild: False
  Language: "Language Neutral"
  LegalCopyright: ""
  LegalTrademarks: ""
  OriginalFilename: "WinWord.exe"
  PrivateBuild: ""
  ProductBuildPart: 11425
  ProductMajorPart: 16
  ProductMinorPart: 0
  ProductName: "Microsoft Office"
  ProductPrivatePart: 20202
  ProductVersion: "16.0.11425.20202"
  SpecialBuild: ""

Unless I am dumb dumb, I can't find obvious ways, either in the docs and Google.

If you (or anyone else) can find any way of doing this, please get back to me.

7coil commented 5 years ago

image Well there's this clear indicator, but the program can't check for that