This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

firefox.exe -setdefaultbrowser does not work

more options

Hi. I see another one had this very issue, but it's marked as solved.. My problem is.. -setdefaultbrowser has NO effect.. No amount of reinstalls help.. all it does is open firefox and ask if it should be default.. I don't want it to ask.. add the -silent switch and it does nothing at all (as the .setdefaultbrowser switch doesn't work!)

I need this solved for my deployment system, but so far not a single solution to setting the default browser silently works for Firefox..

Maybe I should just drop firefox and use chrome? It's inferior but at least setting it as default works

Hi. I see another one had this very issue, but it's marked as solved.. My problem is.. -setdefaultbrowser has NO effect.. No amount of reinstalls help.. all it does is open firefox and ask if it should be default.. I don't want it to ask.. add the -silent switch and it does nothing at all (as the .setdefaultbrowser switch doesn't work!) I need this solved for my deployment system, but so far not a single solution to setting the default browser silently works for Firefox.. Maybe I should just drop firefox and use chrome? It's inferior but at least setting it as default works

All Replies (5)

more options
more options

Yes, indeed I am.. Here is my script:

:general
start /wait Install\firefox.exe -ms
start /wait Install\silverlight.exe /q
start /wait Install\java.exe /s WEB_JAVA=1

:browser
cd "%programfiles%\Mozilla Firefox"
start /wait firefox.exe -silent -setDefaultBrowser


Leave out -silent and it asks if you want it to be the default browser This is not a one-off problem.. I can't get it to work.. 7 local companies have the same issue and just finally came to me since the experts failed.. It seems to me this switch simply just doesn't exist!

Modified by cor-el

more options

or maybe... just maybe.. Is it possible that this switch does not work if the browser is installed unattended? that is if the installer is run with the -ms switch?

If that is the case, then that's a big issue, seeing as in the cases where the browser is installed silently it's really logical to assume it's because you want it to be the default browser!

I haven't tried using the switches on a firefox installed normally, but I will now

more options

I guess this problem, however critical, is of no importance whatsoever.. Well Chrome is not an option, so I guess that means my clients will just have to live with Internet Explorer! Only 1 single answer which was pointless as it didn't even address the issue!

Goodbye Firefox!

more options

Sorry that no one else had an answer for you. It's a shame that you considered my clarification question as being pointless, but you did state in your initial posting an incorrect command line variable by not having the capital letters as such.