Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checking the registry for an installed web browser

Status
Not open for further replies.

jt007

Programmer
Apr 30, 2001
2
GB
I want my program to check if a machine has an installed browser and, if so, launch it and direct it to a particular URL. I have discovered how to check registry keys, but I am not sure WHICH registry keys hold the necessary information. Can anyone help?
 
No need to inspect the registry. Use ShellExecute to open the URL with the default browser.[tt]

Private Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long

Const SW_SHOWNORMAL = 1

Private Sub Form_Load()
ShellExecute Me.hwnd, vbNullString, _
" vbNullString, _
"C:\", SW_SHOWNORMAL
End Sub
[/tt]
VCA.gif

Alt255@Vorpalcom.Intranets.com​
 
Thanks, but I was aware of this method. The thing is, I want to also make an email facility and hence check for an email program. I don't want to rely on the fact that a machine has email software installed - I'd like to check for it so I can make custom error messages if one is not present. Is this possible with the strategy given. If not, is there a way to check the registry?

Thanks for the help given so far, btw. :)
 
I think..
HKEY_CLASSES_ROOT\Applications\*

For example:
HKEY_CLASSES_ROOT\Applications\iexplore.exe
HKEY_CLASSES_ROOT\Applications\netscape.exe

Remedy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top