[wpkg-users] newbie Question

Michael Mosel Michael.Mosel at gcsc.uni-giessen.de
Thu Feb 7 10:31:38 CET 2013


Hi,

with version 18.0.2 stuff seems to work better.
Here is my package file:

<?xml version="1.0" encoding="UTF-8"?>
<packages>
  <package 
	id="firefox"
	name="Mozilla Firefox"
	revision="51"
	reboot="false"
	priority="10">
 
	<variable name="version" value="18.0.2" />
	<variable name="architecture" value="x86" />
	<variable name="locale" value="de" />
	<!--  <variable name="locale" value="fr" /> -->
 
 
	<check type="uninstall" condition="exists" path="Mozilla Firefox %version% (%architecture% %locale%)" />
 
	<install cmd="taskkill /F /IM Firefox.exe">
			<exit code="any" />
	<!--	<exit code="0" /> -->
	<!--	<exit code="-1073741515" /> -->
	<!--	<exit code="128" /> -->
	</install>
 
	<install cmd='"%SOFTWARE%\firefox\Firefox Setup %version%.exe" -ms' />
 
        <upgrade include="install" />
 
	<remove cmd="taskkill /F /IM Firefox.exe">
		<exit code="0" />
		<exit code="128" />
		<exit code="-1073741515" />
	</remove>
 
        <!-- for 32bit and 64bit System -->
	<remove cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Mozilla Firefox\uninstall\helper.exe" "%PROGRAMFILES%\Mozilla Firefox\uninstall\helper.exe" -ms' />
	<remove cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\Mozilla Firefox\uninstall\helper.exe" "%PROGRAMFILES(x86)%\Mozilla Firefox\uninstall\helper.exe" -ms' />
	
	<check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Firefox\defaults\pref\policies.js" />
	<check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Firefox\mozilla.cfg" />
 
	<install cmd='%COMSPEC% /c copy /y "%SOFTWARE%\firefox\policies.js" "%PROGRAMFILES%\Mozilla Firefox\defaults\pref\"' />
	<install cmd='%COMSPEC% /c copy /y "%SOFTWARE%\firefox\mozilla.cfg" "%PROGRAMFILES%\Mozilla Firefox\"' />
 
	<upgrade cmd='%COMSPEC% /c copy /y "%SOFTWARE%\firefox\policies.js" "%PROGRAMFILES%\Mozilla Firefox\defaults\pref\"' />
	<upgrade cmd='%COMSPEC% /c copy /y "%SOFTWARE%\firefox\mozilla.cfg" "%PROGRAMFILES%\Mozilla Firefox\"' />
 
</package>
</packages>

Firefox installs nicely on most of the PCs... there are just some cases where it fails and indeed destroys the old - already installed - installation. I also had one case which I didn't understand at all where Firefox installed itself to the Application_Data Folder of Windows XP (?).

Sincerely,
Michael
--
Michael Mosel | Wissenschaftlicher Mitarbeiter 
Website 
International Graduate Centre for the Study of Culture (GCSC) 
Gießen Graduate School for the Humanities (GGK) 
Justus Liebig University Gießen 
Alter Steinbacher Weg 38
35394 Gießen
Germany

Tel.: +49.641.993 00 43
Tel.: +49.641.993 00 41 (GCSC Office)
Michael.Mosel at gcsc.uni-giessen.de 

> -----Original Message-----
> From: wpkg-users-bounces at lists.wpkg.org [mailto:wpkg-users-
> bounces at lists.wpkg.org] On Behalf Of Stefan Pendl
> Sent: Freitag, 1. Februar 2013 21:53
> To: wpkg-users at lists.wpkg.org
> Subject: Re: [wpkg-users] newbie Question
> 
> Am 01.02.2013 11:34, schrieb Michael Mosel:
> > Hello again,
> >
> > Paul had suggest to me to change the exit code to any since if Firefox was
> not running the taskkill would fail with exitcode 128. Thus I changed the exit
> code but unfortunately this didn't do much good.
> >
> > Firefox is most important to me so I skipped the rest (for now).
> > Unfortunately changing the exit code didn't do any good. Now I get
> following the log files:
> >
> > 2013-02-01 11:26:34, INFO    : Package 'Mozilla Firefox' (firefox): Already
> installed but version mismatch.|Installed revision: '9.0.1'|Available revision:
> '50'.|Preparing upgrade.
> > 2013-02-01 11:26:34, INFO    : Installing 'Mozilla Firefox' (firefox)...
> > 2013-02-01 11:26:34, INFO    : Command 'taskkill /F /IM Firefox.exe'
> returned  exit code [128]. This exit code indicates success.
> > 2013-02-01 11:26:34, INFO    : Command in installation of Mozilla Firefox
> returned exit code [128]. This exit code indicates success.
> > 2013-02-01 11:26:57, ERROR   : Could not process (upgrade) Mozilla
> Firefox.|Failed checking after installation.
> >
> > If I manually update Firefox, it first updates from 9.0.1 to version
> > 12 and then to version 18.0.1 Do I have to do this as well with WPKG?
> >
> 
> I would just remove the old version and install the latest one, which can be
> done in one go.
> 
> To do so you just need to create a new package and assign it to the hosts
> instead of the old one.
> 
> Posting the package you have now would allow us to help you better too.
> 
> 
> --
> 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



More information about the wpkg-users mailing list