Jump to content

Recommended Posts

Posted

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.


Posted

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

Posted

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

Posted

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

...
...

Posted

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

  • 4 weeks later...
Posted
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)?

Posted

@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

Posted (edited)
%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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...