August 24, 200422 yr 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.
August 24, 200422 yr 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
August 24, 200422 yr @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.
August 24, 200422 yr @SiMoNsAySLike 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"......
August 24, 200422 yr @SiMoNsAySI 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 workAm I asleep or what, pinch me someone REG ADD HKLM\SOFTWARE\Classes\http\DefaultIcon /VE /D "%PROGRAMFILES%\Mozilla Firefox\Firefox.exe,1"
August 24, 200422 yr @MCT thanks, now i'll search for information on converting reg 2 inf @jdoe, no problem, forget it
September 20, 200421 yr Copy-paste this code into a batch and it workAm I asleep or what, pinch me someone 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 FirefoxREG 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)?
September 21, 200421 yr You may need to use /f switch in reg add commands to force overwrite without prompt.
September 21, 200421 yr @McoreDTo set Firefox as the default browser...FFDEF.CMDFOR %%A IN ("%PROGRAMFILES%") DO SET SHORTPF=%%~sAREG ADD "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /V "Check_Associations" /D "no" /FREG ADD "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /V "ShowedCheckBrowser" /D "yes" /FREG ADD "HKU\.DEFAULT\SOFTWARE\Microsoft\Internet Explorer\Main" /V "Check_Associations" /D "no" /FREG ADD "HKU\.DEFAULT\SOFTWARE\Microsoft\Internet Explorer\Main" /V "ShowedCheckBrowser" /D "yes" /FREG ADD "HKLM\SOFTWARE\Classes\.htm" /VE /D "FirefoxHTML" /FREG ADD "HKLM\SOFTWARE\Classes\.html" /VE /D "FirefoxHTML" /FREG ADD "HKLM\SOFTWARE\Classes\ftp\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /FREG ADD "HKLM\SOFTWARE\Classes\ftp\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /FREG ADD "HKLM\SOFTWARE\Classes\gopher\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /FREG ADD "HKLM\SOFTWARE\Classes\gopher\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /FREG ADD "HKLM\SOFTWARE\Classes\http\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /FREG ADD "HKLM\SOFTWARE\Classes\http\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /FREG ADD "HKLM\SOFTWARE\Classes\https\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /FREG ADD "HKLM\SOFTWARE\Classes\https\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /FREG ADD "HKLM\SOFTWARE\Clients\StartMenuInternet" /VE /D "FIREFOX.EXE" /FREG DELETE "HKLM\SOFTWARE\Classes\http\shell\open\ddeexec" /FREG ADD "HKLM\SOFTWARE\Classes\http\shell\open\ddeexec\Application" /VE /D "FIREFOX" /FREG DELETE "HKLM\SOFTWARE\Classes\https\shell\open\ddeexec" /FREG ADD "HKLM\SOFTWARE\Classes\https\shell\open\ddeexec\Application" /VE /D "FIREFOX" /FREG DELETE "HKLM\SOFTWARE\Classes\ftp\shell\open\ddeexec" /FREG ADD "HKLM\SOFTWARE\Classes\ftp\shell\open\ddeexec\Application" /VE /D "FIREFOX" /FREG DELETE "HKLM\SOFTWARE\Classes\gopher\shell\open\ddeexec" /FREG ADD "HKLM\SOFTWARE\Classes\gopher\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F
September 21, 200421 yr Thanks jdoe. Much appreciated. Edit: It works perfectly jdoe! Thanks again! Edited September 22, 200421 yr by McoreD
September 27, 200421 yr %PROGRAMFILES% variable it's not valid, only on hex valuesHi, 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" /fIt will expand out to e.g. C:\Program Files\Mozilla Firefox.Hopefully we could do this in REG files too.Cheers,McoreD Edited September 27, 200421 yr by McoreD
Create an account or sign in to comment