Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Changing default browser

Featured Replies

During my unattended installation I install Firefox, which I want to set as the default browser. I used regshot to find out what is changed and tried importing those settings, but Firefox still asks me if I want to set it as the default browser. Does anyone know what the proper registry settings are? Or possibly have them on hand?

Thanks.

I have started to find this but have not completed this work (too busy)

That's what I have found until now and keep for when I will have time.

Maybe it will give you few ideas...

I think what is under ...\Internet Explorer\Main is what skipping asking to set firefox as default browser.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\DefaultIcon]
@="D:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\command]
@="D:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE -url \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\DefaultIcon]
@="D:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\command]
@="D:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE -url \"%1\""

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main]
"ShowedCheckBrowser"="Yes"
"Check_Associations"="no"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet]
@="FIREFOX.EXE"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\firefox.exe]
@="Mozilla Firefox"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\firefox.exe\DefaultIcon]
@="D:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\firefox.exe\InstallInfo]
"HideIconsCommand"="\"D:\\Program Files\\Mozilla Firefox\\uninstall\\UninstallFirefox.exe\" /ua \"0.9.3 (en)\" /hs browser"
"IconsVisible"=dword:00000001
"ReinstallCommand"="\"D:\\Program Files\\Mozilla Firefox\\firefox.exe\" -silent -nosplash -setDefaultBrowser "
"ShowIconsCommand"="\"D:\\Program Files\\Mozilla Firefox\\uninstall\\UninstallFirefox.exe\" /ua \"0.9.3 (en)\" /ss browser"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\firefox.exe\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\firefox.exe\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\firefox.exe\shell\open\command]
@="D:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\firefox.exe\shell\properties]
@="Firefox &Options"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\firefox.exe\shell\properties\command]
@="D:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE -chrome \"chrome://browser/content/pref/pref.xul\""

Hope this will help you

@jdoe anyway to do it drive independant?? i'm still working on a firefox custom installation with themes, configs, etc and i want to do it drive independant.

@SiMoNsAyS

Like I said, it is registry settings I keep for when I will do it and your right about drive independant.

If not done by an other one before I did, be sure all this will be convert into something like...

REG ADD HKLM\SOFTWARE\Classes\http\DefaultIcon /VE /D "%PROGRAMFILES%\Mozilla Firefox\Firefox.exe,1"

...
...

use an inf , %programfiles% = %16422% in inf's :)

@SiMoNsAyS

I don't understand what you mean by "%PROGRAMFILES% variable it's not valid, only on hex values".

Copy-paste this code into a batch and it work

Am I asleep or what, pinch me someone :P

REG ADD HKLM\SOFTWARE\Classes\http\DefaultIcon /VE /D "%PROGRAMFILES%\Mozilla Firefox\Firefox.exe,1"

@MCT thanks, now i'll search for information on converting reg 2 inf :P

@jdoe, no problem, forget it :P

  • 4 weeks later...
Copy-paste this code into a batch and it work

Am I asleep or what, pinch me someone :P

REG ADD HKLM\SOFTWARE\Classes\http\DefaultIcon /VE /D "%PROGRAMFILES%\Mozilla Firefox\Firefox.exe,1"

Hi, does this actually work? Unfortunately I didn't have luck getting this to work.

I have the following

;Change the Default Browser to Firefox

REG ADD HKLM\SOFTWARE\Classes\http\DefaultIcon /VE /D "%PROGRAMFILES%\Mozilla Firefox\Firefox.exe,1"

in my Cleanup.cmd.

When I manually tested the command line in CMD, this is what I get:

Microsoft Windows XP [Version 5.1.2600]

© Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Manila>REG ADD HKLM\SOFTWARE\Classes\http\DefaultIcon

/VE /D "%PROGRAMFILES%\Mozilla Firefox\Firefox.exe,1"

Value exists, overwrite(Y/N)?

You may need to use /f switch in reg add commands to force overwrite without prompt.

:)

@McoreD

To set Firefox as the default browser...

FFDEF.CMD

FOR %%A IN ("%PROGRAMFILES%") DO SET SHORTPF=%%~sA
REG ADD "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /V "Check_Associations" /D "no" /F
REG ADD "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /V "ShowedCheckBrowser" /D "yes" /F
REG ADD "HKU\.DEFAULT\SOFTWARE\Microsoft\Internet Explorer\Main" /V "Check_Associations" /D "no" /F
REG ADD "HKU\.DEFAULT\SOFTWARE\Microsoft\Internet Explorer\Main" /V "ShowedCheckBrowser" /D "yes" /F
REG ADD "HKLM\SOFTWARE\Classes\.htm" /VE /D "FirefoxHTML" /F
REG ADD "HKLM\SOFTWARE\Classes\.html" /VE /D "FirefoxHTML" /F
REG ADD "HKLM\SOFTWARE\Classes\ftp\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /F
REG ADD "HKLM\SOFTWARE\Classes\ftp\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\gopher\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /F
REG ADD "HKLM\SOFTWARE\Classes\gopher\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\http\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /F
REG ADD "HKLM\SOFTWARE\Classes\http\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\https\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /F
REG ADD "HKLM\SOFTWARE\Classes\https\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Clients\StartMenuInternet" /VE /D "FIREFOX.EXE" /F
REG DELETE "HKLM\SOFTWARE\Classes\http\shell\open\ddeexec" /F
REG ADD "HKLM\SOFTWARE\Classes\http\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F
REG DELETE "HKLM\SOFTWARE\Classes\https\shell\open\ddeexec" /F
REG ADD "HKLM\SOFTWARE\Classes\https\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F
REG DELETE "HKLM\SOFTWARE\Classes\ftp\shell\open\ddeexec" /F
REG ADD "HKLM\SOFTWARE\Classes\ftp\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F
REG DELETE "HKLM\SOFTWARE\Classes\gopher\shell\open\ddeexec" /F
REG ADD "HKLM\SOFTWARE\Classes\gopher\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F

Thanks jdoe. Much appreciated. :)

Edit: It works perfectly jdoe! Thanks again! :thumbup

Edited by McoreD

I am interested in doing the same thing, but for Mozilla.

Any ideas?

%PROGRAMFILES% variable it's not valid, only on hex values

Hi,

You may have figured this already by now. :) I just found out using REG_EXPAND_SZ you can perform the following Registry operation in CMD files.

REG ADD %KEY%\012 /V 1 /t REG_EXPAND_SZ /D "%ProgramFiles%\Mozilla Firefox" /f

It will expand out to e.g. C:\Program Files\Mozilla Firefox.

Hopefully we could do this in REG files too.

Cheers,

McoreD

Edited by McoreD

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.