152
edits
Changes
SECURITY - Update to version 3.0.4 or 2.0.0.18 for security reasons.
This is a silent installer and uninstaller for Mozilla Firefox 1.5, 2.0 and 3.0, but it should work with other versions of Firefox, too.
For security reasons you are strongly encouraged to upgrade to version 2.0.0.17 18 in the 2.x series or 3.0.3 4 in the 3.x series:
Note the high priority - Firefox should be installed before plugins, like [[Flash Player|Adobe Flash Player]] or [[Authorware Player|Adobe Authorware Player]] etc (or this could be achieved with dependencies).
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 version comes out, replace every occurrence of the version number in the installer file from, e.g. 1.5.0.4, with, e.g. 1.5.0.5 and then increment the package revision number.
id="firefox3"
name="Mozilla Firefox 3"
revision="303304"
reboot="false"
priority="10">
<check type="uninstall" condition="exists" path="Mozilla Firefox (3.0.34)" />
<install cmd="taskkill /F /IM Firefox.exe">
<exit code="0" />
<exit code="128" />
</install>
<install cmd="%SOFTWARE%\Internet\firefox\Firefox Setup 3.0.34.exe -ms" />
<upgrade cmd="taskkill /F /IM Firefox.exe">
<exit code="0" />
<exit code="128" />
</upgrade>
<upgrade cmd="%SOFTWARE%\Internet\firefox\Firefox Setup 3.0.34.exe -ms" />
<remove cmd="taskkill /F /IM Firefox.exe">
<exit code="0" />
id="firefox"
name="Mozilla Firefox 2.0"
revision="2001720018"
reboot="false"
priority="10">
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Mozilla Firefox (2.0)" />
<check type="uninstall" condition="exists" path="Mozilla Firefox (2.0.0.1718)" />
</check>
<check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Firefox\firefox.exe"/>
<install cmd='"%SOFTWARE%\firefox\Firefox Setup 2.0.0.1718.exe" -ms' /> <upgrade cmd='"%SOFTWARE%\firefox\Firefox Setup 2.0.0.1718.exe" -ms' />
<remove cmd='"%PROGRAMFILES%\Mozilla Firefox\uninstall\helper.exe" /s' />