Difference between revisions of "Firefox"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Make Firefox a default browser)
Line 1: Line 1:
 
This is a silent installer and uninstaller for Mozilla Firefox 1.5, but it should work with other versions of Firefox, too.
 
This is a silent installer and uninstaller for Mozilla Firefox 1.5, but it should work with other versions of Firefox, too.
  
Note the high priority - Firefox should be installed before plugins, like [[Flash Player|Macromedia Flash Player]] or [[Authorware Player|Macromedia Authorware Player]] etc.
+
Note the high priority - Firefox should be installed before plugins, like [[Flash Player|Adobe Flash Player]] or [[Authorware Player|Adobe Authorware Player]] etc.
  
As the Firefox install now nicely upgrades and doesn't leave the old one in the registry, there is no need to differentiate versions in "package id".<br>
+
As the Firefox installer now nicely upgrades and doesn't leave the old one in the registry, there is no need to differentiate versions in "package id".<br>
When a new major version comes out, just replace every occurrence of 1.5 with 1.5.0.5 (for example) and then increment the package revision number.
+
When a new major version comes out, just replace every occurrence of 1.5 with, for example, 1.5.0.5 and then increment the package revision number.
  
Please notice that the uninstall string of 1.5.0.4 is still 1.5. We don't bump the package version number assuming that minor version upgrade works from FF itself. If we did, we would force reinstall on the people who already have FF automagically updated.
+
Please notice that the uninstall string of Firefox 1.5.0.4 is still 1.5. We don't bump the package version number assuming that minor version upgrade works from Firefox itself. If we did, we would force reinstall on the people who already have Firefox automagically updated.
  
 
  <package  
 
  <package  
Line 25: Line 25:
 
  </package>
 
  </package>
  
== Make Firefox a default browser ==
+
== Make Firefox the default browser ==
  
This one will set Firefox as default browser for all users - it will try to start Firefox in the background, which will set itself as the default browser. After 10 seconds, we kill Firefox process, as it's no longer needed, and repeat the process again to make sure we really set the default browser to Firefox (it's needed to do it like this in some circumstances). Note that "taskkill" command exists in Windows XP only.
+
This one will set Firefox as the default browser for all users - it will try to start Firefox in the background, which will set itself as the default browser. After 10 seconds, we kill the Firefox process, as it's no longer needed, and repeat the process again to make sure we really did set the default browser to Firefox (it's needed to do it like this in some circumstances). Note the "taskkill" command exists in Windows XP (and probably Windows Server 2003) but not Windows 2000.
  
 
  <package
 
  <package
 
     id="firefox-default"
 
     id="firefox-default"
     name="Make Firefox default browser"
+
     name="Make Firefox the default browser"
 
     revision="1"
 
     revision="1"
 
     priority="0"
 
     priority="0"
Line 59: Line 59:
 
== Firefox Client Customization Kit ==
 
== Firefox Client Customization Kit ==
  
[http://www.mozilla.org/projects/cck/firefox/ Firefox Client Customization Kit] makes it easy for administrators to customize Firefox with home page settings, proxies, extensions, etc.  Also, you can lock preferences.
+
The [http://www.mozilla.org/projects/cck/firefox/ Firefox Client Customization Kit] makes it easy for administrators to customize Firefox with home page settings, proxies, extensions, etc.  Also, you can lock preferences so that you users cannot change them.
  
 
== Questions ==
 
== Questions ==

Revision as of 17:49, 1 September 2006

This is a silent installer and uninstaller for Mozilla Firefox 1.5, but it should work with other versions of Firefox, too.

Note the high priority - Firefox should be installed before plugins, like Adobe Flash Player or Adobe Authorware Player etc.

As the Firefox installer now nicely upgrades and doesn't leave the old one in the registry, there is no need to differentiate versions in "package id".
When a new major version comes out, just replace every occurrence of 1.5 with, for example, 1.5.0.5 and then increment the package revision number.

Please notice that the uninstall string of Firefox 1.5.0.4 is still 1.5. We don't bump the package version number assuming that minor version upgrade works from Firefox itself. If we did, we would force reinstall on the people who already have Firefox automagically updated.

<package 
   id="firefox" 
   name="Mozilla Firefox 1.5" 
   revision="15041" 
   reboot="false" 
   priority="10">

   <check type="uninstall" condition="exists" path="Mozilla Firefox (1.5)" />

   <install cmd='"%SOFTWARE%\firefox\Firefox Setup 1.5.0.4.exe" -ms' />

   <upgrade cmd='"%SOFTWARE%\firefox\Firefox Setup 1.5.0.4.exe" -ms' />

   <remove cmd='"%PROGRAMFILES%\Mozilla Firefox\uninstall\uninstall.exe" -ms' />

</package>

Make Firefox the default browser

This one will set Firefox as the default browser for all users - it will try to start Firefox in the background, which will set itself as the default browser. After 10 seconds, we kill the Firefox process, as it's no longer needed, and repeat the process again to make sure we really did set the default browser to Firefox (it's needed to do it like this in some circumstances). Note the "taskkill" command exists in Windows XP (and probably Windows Server 2003) but not Windows 2000.

<package
    id="firefox-default"
    name="Make Firefox the default browser"
    revision="1"
    priority="0"
    execute="once">

 <install timeout="10" cmd='"%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -silent -nosplash -setDefaultBrowser' >
  <exit code="-1" />
  <exit code="0" />
 </install>
<install cmd='ping 127.0.0.1 -n 10>NUL' />
<install cmd='taskkill /F /IM Firefox.exe' >
  <exit code="0" />
  <exit code="128" />
</install>
 <install timeout="10" cmd='"%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -silent -nosplash -setDefaultBrowser' >
  <exit code="-1" />
  <exit code="0" />
 </install>
<install cmd='ping 127.0.0.1 -n 10>NUL' />
<install cmd='taskkill /F /IM Firefox.exe' >
  <exit code="0" />
  <exit code="128" />
</install>

</package>

Firefox Client Customization Kit

The Firefox Client Customization Kit makes it easy for administrators to customize Firefox with home page settings, proxies, extensions, etc. Also, you can lock preferences so that you users cannot change them.

Questions

How do you do these things?

  • Make Firefox the default browser
 * Make Firefox default browser
 * Automated deployment of Firefox with extensions, themes, and pre-configuration