locked
Make the browser default RRS feed

  • Question

  • Hi, I have created a browser, but I want to add to it the control that makes it the default browser using VB code.

    Can any1 help me?

    Thanks
    Saturday, December 5, 2009 11:20 AM

Answers

  • This is the solution:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice\

    Modify this by choosing Internet Explorer (IE) or FireFox (FF).

    Browser File Association:
    IE = IE.AssocFile.HTM
    FF = FirefoxHTML

    Add one of them as "String" value to Windows Registry in the above path.

    I hope this information was helpful...

    Have a nice day...

    Best regards,
    Fisnik


    Coder24.com
    • Marked as answer by DeletedName Saturday, December 5, 2009 12:02 PM
    Saturday, December 5, 2009 11:51 AM

All replies

  • Hi,

    I think you shall check the Windows Registry.

    Have a nice day...

    Best regards,
    Fisnik
    Coder24.com
    Saturday, December 5, 2009 11:23 AM
  • How can I do that from VB?
    Saturday, December 5, 2009 11:29 AM
  • This is the solution:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice\

    Modify this by choosing Internet Explorer (IE) or FireFox (FF).

    Browser File Association:
    IE = IE.AssocFile.HTM
    FF = FirefoxHTML

    Add one of them as "String" value to Windows Registry in the above path.

    I hope this information was helpful...

    Have a nice day...

    Best regards,
    Fisnik


    Coder24.com
    • Marked as answer by DeletedName Saturday, December 5, 2009 12:02 PM
    Saturday, December 5, 2009 11:51 AM
  • Thanks man. It was very helpful
    Saturday, December 5, 2009 12:03 PM
  • No problem!
    Note: If you have more questions just ask, I will do some research and see if I can find more details.

    Have a nice day...

    Best regards,
    Fisnik
    Coder24.com
    Saturday, December 5, 2009 12:23 PM
  • Hi again:

    Some more data I want to drop:

    The previous post, which I provided you with registry-paths, those are for File Association, so that
    you can set the default browser, to use when open a *.htm or a *.html file.

    However, to be able to set the default browser *.exe on the system, I found some more reg-paths.

    Default Browser on the System.

    For Internet Explorer (IE) check below:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoice
    "Progid"="IE.FTP"

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice
    "Progid"="IE.HTTP"

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice
    "Progid"="IE.HTTPS"

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\mms

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\mms\UserChoice
    "Progid"="WMP11.AssocProtocol.MMS"

    For Mozilla FireFox (FF) check below: 
    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoice
    "Progid"="FirefoxURL"

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice
    "Progid"="FirefoxURL"

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice
    "Progid"="FirefoxURL"

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\mms

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\mms\UserChoice
    "Progid"="WMP11.AssocProtocol.MMS"
     
    URL Protocols explained below:
    Internet Explorer (IE):
    FTP = IE.FTP
    HTTP = IE.HTTP
    HTTPS = IE.HTTPS

    FireFox (FF):
    FTP = FirefoxURL
    HTTP = FirefoxURL
    HTTPS = FirefoxURL

    I hope this helps...

    Have a nice day...

    Best regards,
    Fisnik


    Coder24.com
    Saturday, December 5, 2009 12:43 PM
  • MSDN Documentation about HKEY_CLASSES_ROOT_KEY: http://msdn.microsoft.com/en-us/library/ms724475(VS.85).aspx

    Have a nice day...

    Best regards,
    Fisnik
    Coder24.com
    Saturday, December 5, 2009 12:44 PM