[wpkg-users] Make Firefox the default browser?
Jean-Jacques Moulis
jj at isy.liu.se
Tue May 2 08:38:00 CEST 2006
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
_______________________________________________
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