Clarification of hostVersion and Office Build Version Equivalence for License Type Detection in Outlook Add-ins

Singh Rana, Devendra 20 Reputation points
2025-08-26T09:38:55.23+00:00

I am developing telemetry to differentiate between volume-licensed and retail installations of Office 2016/2019 based on version information available in Outlook add-ins.

We currently use Office.context.mailbox.diagnostics.hostVersion to capture the Office client version. According to Microsoft documentation, the Office build/version number format can indicate whether an installation is retail or volume-licensed.

My questions are:

  1. Is the value returned by hostVersion 100% equivalent to the traditional Office build/version number used to distinguish retail vs. volume licenses (e.g., volume builds have the 16.0.xxxx.xxxx pattern vs. retail builds having 16.0.xxxxx.xxxxx)?
  2. Can we reliably use the hostVersion property as the canonical source for determining if an Outlook user is on a volume or retail license?
  3. Are there any edge cases or additional properties that we should consider when inferring license type from hostVersion in Outlook on Windows?
  4. Is there any official Microsoft documentation that explicitly confirms that hostVersion it maps to the Office build/version in the context of retail vs. volume license detection?

Your guidance will help us ensure accurate classification of user environments for analytics and support decisions.

Thank you!

Microsoft 365 and Office | Development | Office JavaScript API
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TiNo-T 7,690 Reputation points Microsoft External Staff Moderator
    2025-08-26T11:21:34.4266667+00:00

    Dear @Singh Rana, Devendra,

    Thank you so much for contacting Microsoft Q&A Forum. 

    Based on your descriptions, I can see that you want to use Office.context.mailbox.diagnostics.hostVersion to differentiate between volume-licensed and retail installations of Office 2016/2019. I also appreciate your questions related to it. Therefore, I have researched some information and here are my answers to your concern that you can consult to see if they can help you: 

    1.Is hostVersion 100% equivalent to the traditional Office build/version number used to distinguish retail vs. volume licenses? 

    It is not exactly. The hostVersion property in the Office JavaScript API returns the version of the Outlook client when running on Windows (classic), Mac, or mobile. However, it does not directly indicate the license type (retail vs. volume). It reflects the build number, which can sometimes correlate with the license type, but this is not guaranteed. You can take a look in this link: Office.Diagnostics interface - Office Add-ins | Microsoft Learn 

    2.Can we reliably use hostVersion as the canonical source for determining license type? 

    No, it may be not reliable on its own. While volume and retail builds may follow different update cadences (e.g., volume builds often lag behind retail builds), relying solely on hostVersion can lead to false positives or negatives. For example: 

    • Retail builds may have higher build numbers due to more frequent feature updates. 
    • Volume builds (e.g., Office LTSC) are more stable and receive fewer updates. 

    Thus, hostVersion may be a supporting signal, but not a definitive indicator. 

    1. Are there any edge cases or additional properties to consider?  Yes, there may have several: 
    • Outlook on the web or new Outlook for Windows: In these cases, hostVersion returns the Exchange Server version, not the Outlook client version. 
    • Shared environments or hybrid deployments: Users may have mixed license types across devices or accounts. 
    • Activation method: The most accurate way to determine license type is via activation details (e.g., KMS for volume, retail key for retail), which are not exposed via the Office.js API but can be retrieved using tools like ospp.vbs. 
    1. Is there official Microsoft documentation confirming hostVersion maps to Office build/version for license detection?  I have tried to find out it but there is no official confirmation about this matter.  Microsoft’s documentation for hostVersion only states that it returns the Outlook client version (or Exchange version in some cases), but it does not mention license type detection. You can consult in link above. 

    Besides that, in this case, as a forum moderator, I have limitations in my resources and cannot access the internal databases to help you further in this interesting and complex scenario. Therefore, I highly recommend you reach Home | Microsoft Community Hub for this concern so that you can get more professional help, there will be very professional people to tell you about the steps on how to realize this function.  

    Also, I hope for your understanding in this matter as I really want to help you, but I understand that it is vital for you and needs advanced advice so that I suggest you reach to them for the most efficient help. And if I have any chance to have your contribution to our forum, it can help others in our community who find the same problem, and it build our platform stronger every day.  

    Wish you a pleasant day! 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

    User's image


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.