Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

batch or registry file to make Firefox default browser

- - - - -

  • Please log in to reply
6 replies to this topic

#1
anonymous_user

anonymous_user

    ͏͏͏

  • Member
  • PipPipPipPipPip
  • 963 posts
  • Joined 25-December 05
  • OS:none specified
  • Country: Country Flag
I find it annoying having to make Firefox my default browser on new installs. Is there a batch or registry file to do this?


How to remove advertisement from MSFN

#2
srikat

srikat

    Newbie

  • Member
  • 36 posts
  • Joined 10-September 06
http://windowsxp.mvp...aultbrowser.htm
Flash and animated signatures and avatars are not permitted.

#3
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,310 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag
I think, never tried it...in your 7zip or winrar sfx add a second command to run

firefox.exe -silent -setDefaultBrowser

Edited by ricktendo64, 27 April 2008 - 10:58 AM.


#4
anonymous_user

anonymous_user

    ͏͏͏

  • Member
  • PipPipPipPipPip
  • 963 posts
  • Joined 25-December 05
  • OS:none specified
  • Country: Country Flag
Thanks ricktendo64. The switches work well.

Edited by anonymous_user, 27 April 2008 - 11:30 AM.


#5
nomadturk

nomadturk

    Junior

  • Member
  • Pip
  • 76 posts
  • Joined 27-December 07
Doesn't work for me!

I'm installing Firefox 3.0.5 from RunOnceEx with -ms -setDefaultBrowser switches but... No help. Internet Explorer still comes as the default browser.

Is there any other switch or ...?
Opera registers itself without even asking. Why can't firefox do it..
It's trivial but, i'ld like my windows to have Firefox as the default browser from start.

What i could come up with yet is this:
"%programfiles%\Mozilla Firefox\firefox.exe" -silent -setDefaultBrowser

But installing it AS the default browser would be better if possible.

Edited by nomadturk, 26 December 2008 - 06:17 PM.


#6
Martin H

Martin H

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 802 posts
  • Joined 24-November 06
  • OS:none specified
It's important to note that the '-setDefaultBrowser' switch isn't supported by the installer, but only by the firefox.exe executable in '%programfiles%\Mozilla Firefox'...

If that switch has stopped working now(i don't now as i use Opera), then atleast here is a regfile with the captured reg-entries that Firefox v2.0.0.4 added when selecting OK to make it the default browser(beware - fixed path's):
 
Windows Registry Editor Version 5.00

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\HTTP\shell\open\ddeexec]
@="\"%1\",,0,0,,,,"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\HTTP\shell\open\ddeexec\Application]
@="Firefox"

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.html]
@="FirefoxHTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm]
@="FirefoxHTML"

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\ddeexec]
@="\"%1\",,0,0,,,,"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\ddeexec\Application]
@="Firefox"

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xht]
@="FirefoxHTML"

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\gopher\shell\open\ddeexec]
@="\"%1\",,0,0,,,,"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\gopher\shell\open\ddeexec\Application]
@="Firefox"

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

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\shell\open\ddeexec]
@="\"%1\",,0,0,,,,"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\shell\open\ddeexec\Application]
@="Firefox"

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.shtml]
@="FirefoxHTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xhtml]
@="FirefoxHTML"

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

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\shell\safemode]
@="Firefox &Safemode"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\shell\safemode\command]
@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE -safe-mode"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\shell\open\command]
@="C:\\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]
@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE -preferences"

Btw nomadturk, Opera dosen't automatically set itself as default browser either, and like Firefox, asks upon second startup if it should be made the default browser or not... If anyone want's it, then i also have the regfile for Opera...

Edit: Ooops, used 'code' instead of 'codebox' tags for the reg-entries...

Edited by Martin H, 27 December 2008 - 07:24 PM.

/* Moved to Linux - Thanks for a nice stay all! */
Posted Image


#7
nomadturk

nomadturk

    Junior

  • Member
  • Pip
  • 76 posts
  • Joined 27-December 07
This batch file should do it i assume. It doesn't have Fixed paths but variables instead.
Hmm, i don't know. I think i'll stick to running it as -silent -setDefaultBrowser instead.
(:


 

@ECHO OFF
> "%Temp%.\appFirefox.reg" ECHO Windows Registry Editor Version 5.00
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\HTTP\DefaultIcon]
>>"%Temp%.\appFirefox.reg" ECHO @="%programfiles%\\Mozilla Firefox\\FIREFOX.EXE,1"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\HTTP\shell\open\ddeexec]
>>"%Temp%.\appFirefox.reg" ECHO @="\"%1\",,0,0,,,,"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\HTTP\shell\open\ddeexec\Application]
>>"%Temp%.\appFirefox.reg" ECHO @="Firefox"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\HTTP\shell\open\command]
>>"%Temp%.\appFirefox.reg" ECHO @="%programfiles%\\Mozilla Firefox\\FIREFOX.EXE -url \"%1\" -requestPending"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.html]
>>"%Temp%.\appFirefox.reg" ECHO @="FirefoxHTML"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm]
>>"%Temp%.\appFirefox.reg" ECHO @="FirefoxHTML"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\DefaultIcon]
>>"%Temp%.\appFirefox.reg" ECHO @="%programfiles%\\Mozilla Firefox\\FIREFOX.EXE,1"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\ddeexec]
>>"%Temp%.\appFirefox.reg" ECHO @="\"%1\",,0,0,,,,"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\ddeexec\Application]
>>"%Temp%.\appFirefox.reg" ECHO @="Firefox"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\command]
>>"%Temp%.\appFirefox.reg" ECHO @="%programfiles%\\Mozilla Firefox\\FIREFOX.EXE -url \"%1\" -requestPending"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xht]
>>"%Temp%.\appFirefox.reg" ECHO @="FirefoxHTML"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\gopher\DefaultIcon]
>>"%Temp%.\appFirefox.reg" ECHO @="%programfiles%\\Mozilla Firefox\\FIREFOX.EXE,1"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\gopher\shell\open\ddeexec]
>>"%Temp%.\appFirefox.reg" ECHO @="\"%1\",,0,0,,,,"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\gopher\shell\open\ddeexec\Application]
>>"%Temp%.\appFirefox.reg" ECHO @="Firefox"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\gopher\shell\open\command]
>>"%Temp%.\appFirefox.reg" ECHO @="%programfiles%\\Mozilla Firefox\\FIREFOX.EXE -url \"%1\" -requestPending"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\DefaultIcon]
>>"%Temp%.\appFirefox.reg" ECHO @="%programfiles%\\Mozilla Firefox\\FIREFOX.EXE,1"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\shell\open\ddeexec]
>>"%Temp%.\appFirefox.reg" ECHO @="\"%1\",,0,0,,,,"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\shell\open\ddeexec\Application]
>>"%Temp%.\appFirefox.reg" ECHO @="Firefox"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\shell\open\command]
>>"%Temp%.\appFirefox.reg" ECHO @="%programfiles%\\Mozilla Firefox\\FIREFOX.EXE -url \"%1\" -requestPending"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.shtml]
>>"%Temp%.\appFirefox.reg" ECHO @="FirefoxHTML"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xhtml]
>>"%Temp%.\appFirefox.reg" ECHO @="FirefoxHTML"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet]
>>"%Temp%.\appFirefox.reg" ECHO @="FIREFOX.EXE"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\DefaultIcon]
>>"%Temp%.\appFirefox.reg" ECHO @="%programfiles%\\Mozilla Firefox\\FIREFOX.EXE,0"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\shell\safemode]
>>"%Temp%.\appFirefox.reg" ECHO @="Firefox &Safemode"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\shell\safemode\command]
>>"%Temp%.\appFirefox.reg" ECHO @="%programfiles%\\Mozilla Firefox\\FIREFOX.EXE -safe-mode"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\shell\open\command]
>>"%Temp%.\appFirefox.reg" ECHO @="%programfiles%\\Mozilla Firefox\\FIREFOX.EXE"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\shell\properties]
>>"%Temp%.\appFirefox.reg" ECHO @="Firefox &Options"
>>"%Temp%.\appFirefox.reg" ECHO.
>>"%Temp%.\appFirefox.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\shell\properties\command]
>>"%Temp%.\appFirefox.reg" ECHO @="%programfiles%\\Mozilla Firefox\\FIREFOX.EXE -preferences"
START /WAIT REGEDIT /S "%Temp%.\appFirefox.reg"
DEL "%Temp%.\appFirefox.reg"





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users