Smsapm32 Does Not Support Exit Code -1 (0xFFFFFFFF) (322925)



The information in this article applies to:

  • Microsoft Systems Management Server 2.0
  • Microsoft Systems Management Server 2.0 SP1
  • Microsoft Systems Management Server 2.0 SP2
  • Microsoft Systems Management Server 2.0 SP3
  • Microsoft Systems Management Server 2.0 SP4

This article was previously published under Q322925

SYMPTOMS

If the installation or removal of a program is not successful while it is being run by Smsapm32, and the installation or removal generates an exit code of -1 (0xFFFFFFFF), Advertised Program Manager (APM) cannot process the exit code correctly.

CAUSE

The original design of APM can handle processes that return only standard Win32 exit codes.

RESOLUTION

To resolve this problem, install the hotfix that is described in the following Microsoft Knowledge Base article:

322922 Program Removal Is Unsuccessful If "Remove Software" Check Box Is Selected After Software Installation

This hotfix adds support for processing the -1 exit code.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

If a program that is run by Smsapm32 returns an exit code of -1, no APM status message 10008 is generated. Typically, APM generates status message 10008 to indicate that an advertisement was successfully completed and the exit code that was returned from that program. The Smsapm32.log file in the %SystemRoot%\MS\SMS\Logs folder shows messages such as:

SCHED DATA : Stopped monitoring program execution.
SCHED DATA : Return code = 0xffffffff; error message could not be formatted;Program 'X:\ProgramPath\Programexecutable.exe' terminated with exit code = -1.


Modification Type:MinorLast Reviewed:6/14/2005
Keywords:kbbug kbfix kbsms200preSP4fix KB322925