[wpkg-users] Install of Firefox 10.0.03 and uninstall of firefox 3.6.X versions

Pickle spichelman at auxiant.com
Tue Apr 24 23:40:43 CEST 2012


Thanks Stefan- I found a post on Gmane - used a snippet of code from that
thread - it works now.

Here is the code:

<?xml version="1.0" encoding="UTF-8"?>

<packages:packages
        xmlns:packages="http://www.wpkg.org/packages"
xmlns:wpkg="http://www.wpkg.org/wpkg"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.wpkg.org/packages
../xsd/packages.xsd" >


	<package id="firefox" name="Mozilla Firefox" revision="%PKG_VER%"
reboot="false" priority="100">

         <!-- higher priority is used to install before Java and Flash
Player without defining a dependency, since Firefox doesn't really depend on
them -->

         <!-- set version variables -->
         <variable name="PKG_VER"     value="10.0.3"/>
         <variable name="PKG_EXE_VER" value="10.0.3.4451"/>
		 
         <!-- set destination folder -->
         <variable name="PKG_DEST"    value="%ProgramFiles%\Mozilla Firefox"
architecture="x86"/>
         <variable name="PKG_DEST"    value="%ProgramFiles(x86)%\Mozilla
Firefox" architecture="x64"/>

         <!-- default language is English -->
         <variable name="PKG_LNG"     value="en-us"/>
		 
		 <!-- Set Software Install Dir/Repository -->
		 <variable name="SOFTWARE" value="\\server\software\Firefox\v10\" />
		 		 
		 
         <check type="uninstall" condition="versiongreaterorequal"
path="Mozilla Firefox .+"     value="%PKG_VER%" />
         <check type="file" condition="versiongreaterorequal"
path="%PKG_DEST%\firefox.exe" value="%PKG_EXE_VER%" />
         
		 <install cmd='"%SOFTWARE%\Firefox Setup 10.0.3esr.exe" /S' />
		 
		 <!-- 
		 <install cmd='"%SOFTWARE%\Firefox Setup %PKG_VER% %PKG_LNG%.exe" /S' />
		 
		 <upgrade cmd='"%SOFTWARE%\Firefox Setup 10.0.3esr.exe" -ms' />
         <upgrade include="install" />

         <remove cmd='"%PKG_DEST%\uninstall\helper.exe" /s' />
         <remove cmd="%ComSpec% /c ping -n 11 localhost" />
		 -->
		 
	</package>

<!-- If you like to remove the previous version on upgrade you can change
the 
upgrade commands as below for the package above.

         <upgrade include="remove" />
         <upgrade include="install" />
-->

</packages:packages>





Stefan Pendl-2 wrote:
> 
> Am 24.04.2012 15:59, schrieb Pickle:
>>
>> Hi Jon-
>>
>> Maybe I should just stick with the upgrade part - no uninstall - thought
>> that worked when I tested awhile back.
>> I assumed the WPKG - wiki example worked.
>>
>> The helper works fine from command line - I can't understand why wpkg
>> can't
>> execute like any other command-line option it performs?
>>
>> Appreciate the code snippet.
>>
>> -Scott
>>
> 
> The Firefox installer is based on NSIS, which is quite tricky when it 
> comes to waiting for the end of the remove procedure.
> 
> It has help to add a small delay as the last remove command with:
> <remove cmd="%ComSpec% /C ping -n 11 localhost >nul"/>
> This will wait for about ten seconds and allows the remove process to 
> end before its success is checked.
> 
> 
> --
> Stefan P.
> 
> Top-posting:
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >>
> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
> 
> 

-- 
View this message in context: http://old.nabble.com/Install-of-Firefox-10.0.03-and-uninstall-of-firefox-3.6.X-versions-tp33735613p33742731.html
Sent from the WPKG - Users mailing list archive at Nabble.com.




More information about the wpkg-users mailing list