Changes
Firefox 8 package
</packages>
</source>
===packages/firefox.xml===
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="firefox-check"
name="Mozilla Firefox installed"
revision="1"
reboot="false"
priority="20">
<check type="logical" condition="or">
<check type="file" condition="versiongreaterorequal" path="%programfiles%\mozilla firefox\firefox.exe" value="2.0.0.4094" />
<check type="file" condition="versiongreaterorequal" path="%programfiles(x86)%\mozilla firefox\firefox.exe" value="2.0.0.4094" />
</check>
</package>
<package
id="firefox"
name="Mozilla Firefox 8"
revision="%version%"
reboot="false"
priority="99">
<variable name="version" value="80001" />
<check type="logical" condition="or">
<check type="file" condition="versiongreaterorequal" path="%programfiles%\mozilla firefox\firefox.exe" value="8.0.1.4341" />
<check type="file" condition="versiongreaterorequal" path="%programfiles(x86)%\mozilla firefox\firefox.exe" value="8.0.1.4341" />
</check>
<install cmd='%SOFTWARE%\tools\pskill.exe firefox.exe'>
<exit code="-1" />
</install>
<install cmd='%COMSPEC% /c if exist "%programfiles%\mozilla firefox\firefox.exe" move /y "%programfiles%\mozilla firefox" "%programfiles%\mozilla firefox.bak"' >
<exit code="1" />
</install>
<install cmd='%SOFTWARE%\packages\mozilla\firefox-%version%-deu.exe -ms' />
<install cmd='%COMSPEC% /c if exist "%programfiles%\mozilla firefox.bak\searchplugins" copy /y "%programfiles%\mozilla firefox.bak\searchplugins\*" "%programfiles%\mozilla firefox\searchplugins\"' >
<exit code="1" />
<exit code="0" />
</install>
<install cmd='%COMSPEC% /c if exist "%programfiles(x86)%\mozilla firefox.bak\searchplugins" copy /y "%programfiles(x86)%\mozilla firefox.bak\searchplugins\*" "%programfiles%\mozilla firefox\searchplugins\"' >
<exit code="1" />
<exit code="0" />
</install>
<install cmd='%COMSPEC% /c if exist "%programfiles%\mozilla firefox" xcopy /v /s /i /e /h /c /y /q "%SOFTWARE%\packages\mozilla\fx_profile\*" "%programfiles%\mozilla firefox\"' >
<exit code="1" />
</install>
<install cmd='%COMSPEC% /c if exist "%programfiles(x86)%\mozilla firefox" xcopy /v /s /i /e /h /c /y /q "%SOFTWARE%\packages\mozilla\fx_profile\*" "%programfiles(x86)%\mozilla firefox\"' >
<exit code="1" />
</install>
<install cmd='%COMSPEC% /c if exist "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -CreateProfile default '>
<exit code="1" />
<exit code="0" />
</install>
<install cmd='%COMSPEC% /c if exist "%PROGRAMFILES(x86)%\Mozilla Firefox\firefox.exe" "%PROGRAMFILES(x86)%\Mozilla Firefox\firefox.exe" -CreateProfile default '>
<exit code="1" />
<exit code="0" />
</install>
<upgrade cmd='%SOFTWARE%\tools\pskill.exe firefox.exe'>
<exit code="-1" />
</upgrade>
<upgrade cmd='"%SOFTWARE%\packages\mozilla\firefox-%version%-deu.exe" -ms' />
<upgrade cmd='%COMSPEC% /c if exist "%programfiles(x86)%\mozilla firefox" xcopy /v /s /i /e /h /c /y /q "%SOFTWARE%\packages\mozilla\fx_profile\*" "%programfiles(x86)%\mozilla firefox\"' >
<exit code="1" />
</upgrade>
<upgrade cmd='%COMSPEC% /c if exist "%programfiles%\mozilla firefox" xcopy /v /s /i /e /h /c /y /q "%SOFTWARE%\packages\mozilla\fx_profile\*" "%programfiles%\mozilla firefox\"' >
<exit code="1" />
</upgrade>
<remove cmd='%SOFTWARE%\tools\pskill.exe firefox.exe'>
<exit code="-1" />
</remove>
<remove cmd="%PROGRAMFILES%\Mozilla Firefox\uninstall\helper.exe /s" />
</package>
</packages>
</source>