first of all you must import namespace [ microsoft.win32] to access the registery classes in .net framwork
then this code will check the regestery if the application is installed or not
VB Code:
Dim TargetKey As RegistryKey TargetKey = Registry.ClassesRoot.OpenSubKey("word.application") If TargetKey Is Nothing Then MsgBox("Word application is not found") Else 'key is found MsgBox("Word application is found") TargetKey.Close() End If
you can change the string in the second line from "word.application" to "excel.application" or "access.application" in order to check for different components.
rgds




Reply With Quote