[wpkg-users] Make Firefox the default browser?

Jean-Jacques Moulis jj at isy.liu.se
Tue May 2 12:01:21 CEST 2006

On Tue, 2 May 2006 10:22:22 +0200 Georg Lutz <georg-list at georglutz.de> wrote:

GL> Normally wpkg is executed under the systems account without
GL> administrator intervention. Will "-setDefaultBrowser" just set the
GL> default browser without actually creating or profile or do other things?

I run wpkg as system
and use this package definition:

<package id="setffasdefault" name="Set FireFox as Default Browser"
         revision="1" priority="11" reboot="false" execute="once">
                <install cmd="%WpkgRoot%\Tools\Set_FF_as_default.cmd" />
                <upgrade cmd="%WpkgRoot%\Tools\Set_FF_as_default.cmd" />
                <remove cmd="%WpkgRoot%\Tools\Set_IE_as_default.cmd" />

this create a default profile in  C:\Documents and Settings\Default User\Application
if that is a concern you could have:

rmdir /S /Q "C:\Documents and Settings\Default User\Application Data\Mozilla"

in Set_FF_as_default.cmd

copy /Y %Wpkgroot%\Files\nsBrowserContentHandler.js "%ProgramFiles%\Mozilla Firefox\components"
"%ProgramFiles%\Mozilla Firefox\firefox.exe" -CreateProfile default
"%ProgramFiles%\Mozilla Firefox\firefox.exe" -setDefaultBrowser -silent
rmdir /S /Q "C:\Documents and Settings\Default User\Application Data\Mozilla\Firefox\Profiles"

shmgrate.exe OCInstallReinstallIE

wpkg-users mailing list
wpkg-users at lists.wpkg.org

More information about the wpkg-users mailing list