[wpkg-users] Need to explicitly define exit code 0 as successful?
Marco Gaiarin
gaio at sv.lnf.it
Thu Oct 23 10:59:20 CEST 2008
I've just tried with adobe acrobat reader, but i prefer to ask for
confirmation to not fall into some corner case...
When in an action for a package i specify the exit status, the 'exit
status 0 is a success' are considered default, right?
I've tried something like this:
<upgrade cmd='msiexec /q /x{AC76BA86-7AD7-1040-7B44-A81200000003} REBOOT=ReallySuppress' >
<exit code="1605" />
<exit code="3010" reboot="postponed" />
</upgrade>
<upgrade cmd='msiexec /q /i "%SOFTWARE%\WPKG\Reader 9.0\AcroRead.msi" ALLUSERS=1 REBOOT=ReallySuppress TRANSFORMS="%SOFTWARE%\Reader 9.0\AcroRead.mst"'>
<exit code="3010" reboot="postponed" />
</upgrade>
and seems to work, eg if msiexec exit with 0 it is considered a
success.
Until now i verbosely specify:
<upgrade cmd='msiexec /q /x{AC76BA86-7AD7-1040-7B44-A81200000003} REBOOT=ReallySuppress' >
<exit code="0" />
<exit code="1605" />
<exit code="3010" reboot="postponed" />
</upgrade>
<upgrade cmd='msiexec /q /i "%SOFTWARE%\WPKG\Reader 9.0\AcroRead.msi" ALLUSERS=1 REBOOT=ReallySuppress TRANSFORMS="%SOFTWARE%\Reader 9.0\AcroRead.mst"'>
<exit code="0" />
<exit code="3010" reboot="postponed" />
</upgrade>
i ask if it is superfluous. Thanks
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)sv.lnf.it tel +39-0434-842711 fax +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
More information about the wpkg-users
mailing list