Determine if Microsoft Office Applications are Installed (VB.NET)

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic.NET

More information:
This snippet shows you how to read the registry in .NET to check if a given application is installed. You can easily expand on it to check for other applications by adding more class strings to the enum.

Demo Usage: Debug.WriteLine(IsInstalled(MSApplications.Word))

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: