[wpkg-users] Need to explicitly define exit code 0 as successful?
Rainer Meier
r.meier at wpkg.org
Thu Oct 23 13:14:47 CEST 2008
Hi Marco,
Marco Gaiarin wrote:
> When in an action for a package i specify the exit status, the 'exit
> status 0 is a success' are considered default, right?
Yes, if not specified otherwise '0' means successful.
> 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
Yes, it's superfluous, however it does not harm to specify it. Until
WPKG 1.0 an exit code of 0 could not be assigned to a reboot but current
WPKG releases support this too. So it's common practice not to specify
exit code 0 unless you want to assign any type of reboot to this code.
br,
Rainer
More information about the wpkg-users
mailing list