Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
my code:
static bool IsOfficeInstalled()
{
const string officeRegistryKey = @"SOFTWARE\Microsoft\Office\";
using (RegistryKey key = Registry.LocalMachine.OpenSubKey(officeRegistryKey))
{
return key != null ? true : false;
}
}
turn null
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.