Changes

Firefox

477 bytes added, 16:50, 3 August 2010
Make Firefox the Default Browser: Add an option to use the uninstall helper to set default
=== Make Firefox the Default Browser ===
 
==== Option 1 ====
 
Use the uninstall helper to set Firefox as the default browser. Add these lines to your package definition after the lines that install or upgrade Firefox.
 
<source lang="xml">
<install cmd='"%PROGRAMFILES%\Mozilla Firefox\uninstall\helper.exe" /SetAsDefaultAppGlobal'>
<exit code="2" />
</install>
 
<upgrade cmd='"%PROGRAMFILES%\Mozilla Firefox\uninstall\helper.exe" /SetAsDefaultAppGlobal'>
<exit code="2" />
</upgrade>
</source>
 
==== Option 2 ====
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 Pro (and probably Windows Server 2003) but not Windows 2000 or XP Home.
117
edits