Vann Posted August 24, 2004 Share Posted August 24, 2004 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 More sharing options...
SiMoNsAyS Posted August 24, 2004 Share Posted August 24, 2004 i'm interested on firefox default too Link to comment Share on other sites More sharing options...
jdoe Posted August 24, 2004 Share Posted August 24, 2004 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 More sharing options...
SiMoNsAyS Posted August 24, 2004 Share Posted August 24, 2004 @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. Link to comment Share on other sites More sharing options...
jdoe Posted August 24, 2004 Share Posted August 24, 2004 @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"...... Link to comment Share on other sites More sharing options...
SiMoNsAyS Posted August 24, 2004 Share Posted August 24, 2004 %PROGRAMFILES% variable it's not valid, only on hex values Link to comment Share on other sites More sharing options...
MCT Posted August 24, 2004 Share Posted August 24, 2004 use an inf , %programfiles% = %16422% in inf's Link to comment Share on other sites More sharing options...
jdoe Posted August 24, 2004 Share Posted August 24, 2004 @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" Link to comment Share on other sites More sharing options...
SiMoNsAyS Posted August 24, 2004 Share Posted August 24, 2004 @MCT thanks, now i'll search for information on converting reg 2 inf @jdoe, no problem, forget it Link to comment Share on other sites More sharing options...
McoreD Posted September 20, 2004 Share Posted September 20, 2004 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)? Link to comment Share on other sites More sharing options...
MHz Posted September 21, 2004 Share Posted September 21, 2004 You may need to use /f switch in reg add commands to force overwrite without prompt. Link to comment Share on other sites More sharing options...
jdoe Posted September 21, 2004 Share Posted September 21, 2004 @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 Link to comment Share on other sites More sharing options...
McoreD Posted September 21, 2004 Share Posted September 21, 2004 (edited) Thanks jdoe. Much appreciated. Edit: It works perfectly jdoe! Thanks again! Edited September 22, 2004 by McoreD Link to comment Share on other sites More sharing options...
artbio Posted September 21, 2004 Share Posted September 21, 2004 I am interested in doing the same thing, but for Mozilla.Any ideas? Link to comment Share on other sites More sharing options...
McoreD Posted September 27, 2004 Share Posted September 27, 2004 (edited) %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, 2004 by McoreD Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now