Difference between revisions of "Firefox"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
Line 1: Line 1:
 
This is a silent installer and uninstaller for Mozilla Firefox 1.0.7, but it should work with other versions of Firefox, too.
 
This is a silent installer and uninstaller for Mozilla Firefox 1.0.7, but it should work with other versions of Firefox, too.
 
If you have a lower version of Firefox installed, it will be automatically removed before Mozilla Firefox 1.0.7 installs.
 
  
 
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|Macromedia Flash Player]] or [[Authorware Player|Macromedia Authorware Player]] etc.
  
 +
As the Firefox install now nicely upgrades and doesnt leave the old one into the registry, there is no need to differentiate versions in package id.
 +
When a new version comes out, just replace every occurrence of 1.0.7 with 1.0.8 (for example) and then increment the package revision number.
  
<blockquote style="background: white; border: 1px solid black; padding: 1em;">
+
<package
<package<br>
+
         id="firefox"
         id="firefox107"<br>
+
         name="Mozilla Firefox 1.0.7"
         name="Mozilla Firefox 1.0.7"<br>
+
         revision="1"
         revision="1"<br>
+
         reboot="false"
         reboot="false"<br>
+
         priority="0">
         priority="0"><br>
+
         <check type="uninstall" condition="exists" path="Mozilla Firefox (1.0.7)" /><br>
+
         <check type="uninstall" condition="exists" path="Mozilla Firefox (1.0.7)" />
        <br>
+
 
         <install cmd='"\\server\admin\NON-MSI\firefox\Firefox Setup 1.0.7.exe" -ms'><br>
+
         <install cmd='"\\server\admin\NON-MSI\firefox\Firefox Setup 1.0.7.exe" -ms'>
    <exit code="0" /><br>
+
        <exit code="0" />
         </install><br>
+
         </install>
         <br>
+
         <remove  cmd='%SYSTEMROOT%\UninstallFirefox.exe -ms' /><br>
+
        <upgrade cmd='"\\Server\wpkg\pkg\Firefox Setup 1.0.7.exe" -ms'>
    <br>
+
        <exit code="0" />
</package>   
+
         </upgrade>
</blockquote>
+
 +
         <remove  cmd='%SYSTEMROOT%\UninstallFirefox.exe -ms' />
 +
</package>   
  
 
[[category:Silent Installers|Firefox]]
 
[[category:Silent Installers|Firefox]]

Revision as of 12:10, 24 October 2005

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

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

As the Firefox install now nicely upgrades and doesnt leave the old one into the registry, there is no need to differentiate versions in package id. When a new version comes out, just replace every occurrence of 1.0.7 with 1.0.8 (for example) and then increment the package revision number.

<package
       id="firefox"
       name="Mozilla Firefox 1.0.7"
       revision="1"
       reboot="false"
       priority="0">

       <check type="uninstall" condition="exists" path="Mozilla Firefox (1.0.7)" />
 
       <install cmd='"\\server\admin\NON-MSI\firefox\Firefox Setup 1.0.7.exe" -ms'>
        <exit code="0" />
       </install>

       <upgrade cmd='"\\Server\wpkg\pkg\Firefox Setup 1.0.7.exe" -ms'>
        <exit code="0" />
       </upgrade>

       <remove  cmd='%SYSTEMROOT%\UninstallFirefox.exe -ms' />
</package>