Jump to content

Changing default browser


 Share

Recommended Posts

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.

Link to comment
Share on other sites


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

Link to comment
Share on other sites

@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"

...
...

Link to comment
Share on other sites

@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"

Link to comment
Share on other sites

  • 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)?

Link to comment
Share on other sites

@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

Link to comment
Share on other sites

%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
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...