On 2017-07-07 10:07, Marco Gaiarin wrote:
> Mandi! James M. Pulver
>   In chel di` si favelave...
>
>> on Windows 7 x64 SP1 Enterprise. I'm wondering what the return codes mean -
>> when I do it (using puppet-agent) I'm getting a return code 2. I can't seem
>> to find what the return codes should be / mean via googling - any ideas?
> Also I, with WPKG not puppet, i've mapped error 2 as 'OK, DONE'.
>
> Also i've not found no info on exit status...
>
The installer Makefile,
https://hg.mozilla.org/mozilla-central/file/tip/browser/installer/windows/Makefile.in
,
lists most files involved. It references
https://hg.mozilla.org/mozilla-central/file/tip/toolkit/mozapps/installer/windows/nsis/makensis.mk
,
which contains more build rules.

The end result:

The SetAsDefaultAppGlobal macro is defined at
https://hg.mozilla.org/mozilla-central/file/tip/browser/installer/windows/nsis/shared.nsh#l155
and it is placed in the uninstall helper at
https://hg.mozilla.org/mozilla-central/file/tip/browser/installer/windows/nsis/uninstaller.nsi#l109
.

It is actually processed via
https://hg.mozilla.org/mozilla-central/file/tip/toolkit/mozapps/installer/windows/nsis/common.nsh#l5230
,
which is placed in the uninstall helper at
https://hg.mozilla.org/mozilla-central/file/tip/browser/installer/windows/nsis/uninstaller.nsi#l59
.

The code in question does its thing, then jumps off to the "finish:"
label at
https://hg.mozilla.org/mozilla-central/file/tip/toolkit/mozapps/installer/windows/nsis/common.nsh#l5268
,
which calls the NSIS function
http://nsis.sourceforge.net/Docs/Chapter4.html#quit

According to
http://nsis.sourceforge.net/Docs/AppendixD.html#errorlevels ,
the default ERRORLEVEL value when exiting via a script is 2.

It also says that it can be overridden by the script by using
http://nsis.sourceforge.net/Docs/Chapter4.html#seterrorlevel .

If enough people depend on the ERRORLEVEL status in their deployment
systems, Bugzilla is the place to go to request the change be made.


-- 
Ariel Poliak
Jr. Network Administrator
Network and Security Operations
HostDime.com, Inc.


_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
[email protected] with a subject of "unsubscribe"

Reply via email to