[wpkg-users] Make Firefox the default browser?

Matt Miller mmiller at solutionsforprogress.com
Wed May 3 21:04:38 CEST 2006


So, logging out and logging in again fixes the icon problem...

Matt Miller wrote:
> Jean-Jacques,
> Your fix works! It's great!
> One hitch; .htm files still have an IE icon and not a Firefox icon... 
> They open in Firefox though. Rename the file with .html for the 
> extension and it gets a Firefox icon.
> Weird.
> Anyone have a fix?  : )
> 
> Now more questions that might be off-topic for this list.
> What does the nsBrowserContentHandler.js file do?
> Is there risk of breaking anything when copying the patched version to a 
> previous install?
> 
> 
> 
> Jean-Jacques Moulis wrote:
>> On Mon, 01 May 2006 16:40:21 -0400 Matt Miller 
>> <mmiller at solutionsforprogress.com> wrote:
>>
>> MM> I'm having a lot of trouble with this...
>> MM> Google got me a script that almost works, but I think there are 
>> more MM> registry keys to make Firefox the default browser. When you 
>> run Firefox MM> it still thinks it's not the default browser, 
>> non-admin level users MM> can't set it as default, and there a few 
>> html files that still want to MM> open in Notepad when double clicked.
>> MM> Anyone want to help with this?
>>
>>
>> After installing Firefox with:
>>
>> "%WpkgRoot%\Packages\Firefox\Firefox Setup 1.5.0.2.exe" -ms
>>
>> Run:
>>
>> Set_Firefox_as_default.cmd
>>
>> -----------------------Set_Firefox_as_default.cmd-------------------------- 
>>
>> copy %Wpkgroot%\Files\nsBrowserContentHandler.js 
>> "%ProgramFiles%\Mozilla Firefox\components"
>> "%ProgramFiles%\Mozilla Firefox\firefox.exe" -CreateProfile default
>> "%ProgramFiles%\Mozilla Firefox\firefox.exe" -setDefaultBrowser -silent

>>
>>
>>
>> Add lines 330 331 in the original nsBrowserContentHandler.js
>>
>>
>> 326:        if (cmdLine.handleFlag("preferences", false)) {
>> 327:          openPreferences();
>> 328:          cmdLine.preventDefault = true;
>> 329:        }
>> 330:        if (cmdLine.handleFlag("silent", false))
>> 331:        cmdLine.preventDefault = true;
>> 332:      },
>> 333:   
>> 334:      helpInfo : "  -browser            Open a browser window.\n",
>> 335:
>>
>>
>> diff nsBrowserContentHandler.js nsBrowserContentHandler.js.orig
>> 330,331d329
>> <       if (cmdLine.handleFlag("silent", false))
>> <       cmdLine.preventDefault = true;
>>
>>
>> The modification of nsBrowserContentHandler.js restore the -silent 
>> flag that have been removed.
>> As I understand it it will be back "out of the box" in 1.5.0.4
>> This solution works at least with 1.5.0.2.
>>
>> credits to Dié in this message:
>> http://www.msfn.org/board/index.php?showtopic=71739&st=0&p=492735&#entry492735 
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>     
> 

-- 
- Matt Miller -
Solutions for Progress
728 South Broad Street
Philadelphia, PA  19146
215-701-6108 (v)
215-972-8109 (f)







_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users




More information about the wpkg-users mailing list