Microsoft KB Archive/322922

= Program Removal Is Unsuccessful If &quot;Remove Software&quot; Check Box Is Selected After Software Installation =

Article ID: 322922

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Standard Edition
 * Microsoft Systems Management Server 2.0 Service Pack 1
 * Microsoft Systems Management Server 2.0 Service Pack 2
 * Microsoft Systems Management Server 2.0 Service Pack 3
 * Microsoft Systems Management Server 2.0 Service Pack 4

-



This article was previously published under Q322922



SYMPTOMS
If you click to select the Remove software when it is no longer advertised check box on the Advanced tab of a program (if it was not selected before) after a package has been installed by APM on a client, uninstall support does not work.



CAUSE
Although SMSAPM32 changes the ProgramFlags property in the job's complete file under %Systemroot%\Ms\Sms\Clicomp\Apa\Data\Complete for clients that have executed the program, it does not persist the program's RemovalKey property. Therefore, when the advertisement expires (the advertisement is deleted or the target specification changes) APM32 tries to uninstall, but it is unsuccessful fail because the RemovalKey property is unavailable.



Service Pack Information
To resolve this problem, obtain the latest service pack for Microsoft Systems Management Server 2.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

288239 How to Obtain the Latest Systems Management Server 2.0 Service Pack

Hotfix Information
A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Systems Management Server service pack that contains this fix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English post-Service Pack 3 (post-SP3) version of this fix should have the following file attributes or later:   Date         Time   Version            Size    File name        Platform 02-Mar-2001 02:50  2.0.92.9          395,208  Apasetup.exe        i386 01-Mar-2001 13:00  2.0.1493.3125     259,936  Bindclin.dll        i386 02-Mar-2001 00:15  2.0.1493.3251     182,096  Ccim32.dll          i386 02-Mar-2001 02:35  2.0.92.9        1,324,086  Ccmcore.exe         i386 02-Mar-2001 02:35  2.0.1493.3267   3,403,117  Clicore.exe         i386 02-Mar-2001 00:10  2.0.1493.3238      88,432  Clisvcl.exe         i386 02-Mar-2001 02:50                         67  Compverbase.ini     i386 02-Mar-2001 02:50                         67  Compversmsapm32.ini i386 02-Mar-2001 02:50                         67  Compverswdist.ini   i386 02-Mar-2001 02:35  2.0.1493.3267      41,312  Cqmgr32.dll         i386 01-Mar-2001 13:00  2.0.1493.3125     338,272  Mslmclin.dll        i386 01-Mar-2001 13:00  2.0.1493.3125     269,664  Ndsclin.dll         i386 02-Mar-2001 00:00  2.0.1493.3236      54,128  Odpsys32.exe        i386 02-Mar-2001 00:00  2.0.1493.3236      60,272  Odpusr32.exe        i386 02-Mar-2001 02:50  2.0.1493.3270     292,208  Smsapm32.exe        i386 02-Mar-2001 02:05  2.0.92.9          639,658  Swdist32.exe        i386 02-Mar-2001 02:50  2.0.92.9          655,727  Apasetup.exe       Alpha 02-Mar-2001 00:15  2.0.1493.3251     293,648  Ccim32.dll         Alpha 02-Mar-2001 02:35  2.0.92.9        1,925,241  Ccmcore.exe        Alpha 02-Mar-2001 02:35  2.0.1493.3267   4,444,057  Clicore.exe        Alpha 02-Mar-2001 00:10  2.0.1493.3238     125,712  Clisvcl.exe        Alpha 02-Mar-2001 02:50                         67  Compverbase.ini    Alpha 02-Mar-2001 02:50                         67  Compversmsapm32.iniAlpha 02-Mar-2001 02:50                         67  Compverswdist.ini  Alpha 02-Mar-2001 02:35  2.0.1493.3267      69,904  Cqmgr32.dll        Alpha 01-Mar-2001 13:00  2.0.1493.3125     578,832  Mslmclin.dll       Alpha 02-Mar-2001 00:00  2.0.1493.3236      75,024  Odpsys32.exe       Alpha 02-Mar-2001 00:00  2.0.1493.3236      83,728  Odpusr32.exe       Alpha 02-Mar-2001 02:50  2.0.1493.3270     389,392  Smsapm32.exe       Alpha 02-Mar-2001 02:05  2.0.92.9          693,202  Swdist32.exe       Alpha

The English post-SP3 ICP1 version of this fix should have the following file attributes or later:   Date         Time   Version            Size    File name        Platform 13-Apr-2001 02:50  2.0.92.1          395,161  Apasetup.exe        i386 01-Mar-2001 13:00  2.0.1493.3125     259,936  Bindclin.dll        i386 02-Mar-2001 00:15  2.0.1493.3251     182,096  Ccim32.dll          i386 13-Apr-2001 02:35  2.0.92.9        1,324,084  Ccmcore.exe         i386 13-Apr-2001 02:35  2.0.1493.3467   4,410,236  Clicore.exe         i386 02-Mar-2001 00:10  2.0.1493.3238      88,432  Clisvcl.exe         i386 13-Apr-2001 02:50                         67  Compverbase.ini     i386 13-Apr-2001 02:50                         67  Compversmsapm32.ini i386 13-Apr-2001 02:50                         67  Compverswdist.ini   i386 02-Mar-2001 02:35  2.0.1493.3267      41,312  Cqmgr32.dll         i386 01-Mar-2001 13:00  2.0.1493.3125     338,272  Mslmclin.dll        i386 01-Mar-2001 13:00  2.0.1493.3125     269,664  Ndsclin.dll         i386 02-Mar-2001 00:00  2.0.1493.3236      54,128  Odpsys32.exe        i386 02-Mar-2001 00:00  2.0.1493.3236      60,272  Odpusr32.exe        i386 02-Mar-2001 02:50  2.0.1493.3270     292,208  Smsapm32.exe        i386 13-Apr-2001 02:05  2.0.92.1          838,716  Swdist32.exe        i386 13-Apr-2001 02:50  2.0.92.1          655,652  Apasetup.exe       Alpha 02-Mar-2001 00:15  2.0.1493.3251     293,648  Ccim32.dll         Alpha 13-Apr-2001 02:35  2.0.92.9        1,925,241  Ccmcore.exe        Alpha 13-Apr-2001 02:35  2.0.1493.3467   5,837,757  Clicore.exe        Alpha 02-Mar-2001 00:10  2.0.1493.3238     125,712  Clisvcl.exe        Alpha 13-Apr-2001 02:50                         67  Compverbase.ini    Alpha 13-Apr-2001 02:50                         67  Compversmsapm32.iniAlpha 13-Apr-2001 02:50                         67  Compverswdist.ini  Alpha 02-Mar-2001 02:35  2.0.1493.3267      69,904  Cqmgr32.dll        Alpha 01-Mar-2001 13:00  2.0.1493.3125     578,832  Mslmclin.dll       Alpha 02-Mar-2001 00:00  2.0.1493.3236      75,024  Odpsys32.exe       Alpha 02-Mar-2001 00:00  2.0.1493.3236      83,728  Odpusr32.exe       Alpha 02-Mar-2001 02:50  2.0.1493.3270     389,392  Smsapm32.exe       Alpha 13-Apr-2001 02:05  2.0.92.1          892,602  Swdist32.exe       Alpha

The English post-SP3 ICP4 version of this fix should have the following file attributes or later:   Date         Time   Version            Size    File name        Platform 15-Apr-2001 02:50  2.0.92.1          395,155  Apasetup.exe        i386 01-Mar-2001 13:00  2.0.1493.3125     259,936  Bindclin.dll        i386 02-Mar-2001 00:15  2.0.1493.3251     182,096  Ccim32.dll          i386 15-Apr-2001 02:35  2.0.92.9        1,324,084  Ccmcore.exe         i386 15-Apr-2001 02:35  2.0.1493.3667   8,665,771  Clicore.exe         i386 02-Mar-2001 00:10  2.0.1493.3238      88,432  Clisvcl.exe         i386 15-Apr-2001 02:50                         67  Compverbase.ini     i386 15-Apr-2001 02:50                         67  Compversmsapm32.ini i386 15-Apr-2001 02:50                         67  Compverswdist.ini   i386 02-Mar-2001 02:35  2.0.1493.3267      41,312  Cqmgr32.dll         i386 01-Mar-2001 13:00  2.0.1493.3125     338,272  Mslmclin.dll        i386 01-Mar-2001 13:00  2.0.1493.3125     269,664  Ndsclin.dll         i386 02-Mar-2001 00:00  2.0.1493.3236      54,128  Odpsys32.exe        i386 02-Mar-2001 00:00  2.0.1493.3236      60,272  Odpusr32.exe        i386 02-Mar-2001 02:50  2.0.1493.3270     292,208  Smsapm32.exe        i386 15-Apr-2001 02:05  2.0.92.1        1,659,125  Swdist32.exe        i386 15-Apr-2001 02:50  2.0.92.1          655,650  Apasetup.exe       Alpha 02-Mar-2001 00:15  2.0.1493.3251     293,648  Ccim32.dll         Alpha 15-Apr-2001 02:35  2.0.92.9        1,925,241  Ccmcore.exe        Alpha 15-Apr-2001 02:35  2.0.1493.3667  11,735,915  Clicore.exe        Alpha 02-Mar-2001 00:10  2.0.1493.3238     125,712  Clisvcl.exe        Alpha 15-Apr-2001 02:50                         67  Compverbase.ini    Alpha 15-Apr-2001 02:50                         67  Compversmsapm32.iniAlpha 15-Apr-2001 02:50                         67  Compverswdist.ini  Alpha 02-Mar-2001 02:35  2.0.1493.3267      69,904  Cqmgr32.dll        Alpha 01-Mar-2001 13:00  2.0.1493.3125     578,832  Mslmclin.dll       Alpha 02-Mar-2001 00:00  2.0.1493.3236      75,024  Odpsys32.exe       Alpha 02-Mar-2001 00:00  2.0.1493.3236      83,728  Odpusr32.exe       Alpha 02-Mar-2001 02:50  2.0.1493.3270     389,392  Smsapm32.exe       Alpha 15-Apr-2001 02:05  2.0.92.1        1,714,640  Swdist32.exe       Alpha

The English Post SP3 ICP5 version of this fix should have the following file attributes or later:

  Date         Time   Version            Size    File name        Platform 17-Apr-2001 02:50  2.0.92.1          395,158  Apasetup.exe        i386 01-Mar-2001 13:00  2.0.1493.3125     259,936  Bindclin.dll        i386 02-Mar-2001 00:15  2.0.1493.3251     182,096  Ccim32.dll          i386 17-Apr-2001 02:35  2.0.92.9        1,324,085  Ccmcore.exe         i386 17-Apr-2001 02:35  2.0.1493.3867   9,168,810  Clicore.exe         i386 02-Mar-2001 00:10  2.0.1493.3238      88,432  Clisvcl.exe         i386 17-Apr-2001 02:50                         67  Compverbase.ini     i386 17-Apr-2001 02:50                         67  Compversmsapm32.ini i386 17-Apr-2001 02:50                         67  Compverswdist.ini   i386 02-Mar-2001 02:35  2.0.1493.3267      41,312  Cqmgr32.dll         i386 01-Mar-2001 13:00  2.0.1493.3125     338,272  Mslmclin.dll        i386 01-Mar-2001 13:00  2.0.1493.3125     269,664  Ndsclin.dll         i386 02-Mar-2001 00:00  2.0.1493.3236      54,128  Odpsys32.exe        i386 02-Mar-2001 00:00  2.0.1493.3236      60,272  Odpusr32.exe        i386 02-Mar-2001 02:50  2.0.1493.3270     292,208  Smsapm32.exe        i386 17-Apr-2001 02:05  2.0.92.1        1,759,698  Swdist32.exe        i386 17-Apr-2001 02:50  2.0.92.1          655,657  Apasetup.exe       Alpha 02-Mar-2001 00:15  2.0.1493.3251     293,648  Ccim32.dll         Alpha 17-Apr-2001 02:35  2.0.92.9        1,925,241  Ccmcore.exe        Alpha 17-Apr-2001 02:35  2.0.1493.3867  12,432,303  Clicore.exe        Alpha 02-Mar-2001 00:10  2.0.1493.3238     125,712  Clisvcl.exe        Alpha 17-Apr-2001 02:50                         67  Compverbase.ini    Alpha 17-Apr-2001 02:50                         67  Compversmsapm32.iniAlpha 17-Apr-2001 02:50                         67  Compverswdist.ini  Alpha 02-Mar-2001 02:35  2.0.1493.3267      69,904  Cqmgr32.dll        Alpha 01-Mar-2001 13:00  2.0.1493.3125     578,832  Mslmclin.dll       Alpha 02-Mar-2001 00:00  2.0.1493.3236      75,024  Odpsys32.exe       Alpha 02-Mar-2001 00:00  2.0.1493.3236      83,728  Odpusr32.exe       Alpha 02-Mar-2001 02:50  2.0.1493.3270     389,392  Smsapm32.exe       Alpha 17-Apr-2001 02:05  2.0.92.1        1,815,431  Swdist32.exe       Alpha NOTE: Because of file dependencies, the most recent hotfix or feature that contains these files may also contain additional files.



WORKAROUND
When you create SMS programs that require uninstall support, always make sure that the program's Remove software when it is no longer advertised&quot; check box on the Advanced tab is selected and that the Uninstall registry key is specified before advertising that program.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft Systems Management Server 2.0 Service Pack 5.



MORE INFORMATION
This hotfix permits the SMS program property to be enabled after an advertisement for that program has been executed by SMSAPM32. After it is enabled, only if an advertisement for that program is still currently active, on the next ODP (Offer Data Provider) refresh cycle, the advisements job complete file is updated to reflect the correct ProgramFlags and RemovalKey properties.

How to Install the Hotfix
Apply this fix to all of the primary sites and secondary sites in the SMS hierarchy. Apply the hotfix only to the site servers; you do not have to apply the fix to computers that are running the SMS Administrator console. To install the fix, use one of the following methods.

How to Use the Hotfix Installer
NOTE: You can use this method only for Intel-based computers.
 * 1) Copy the hotfix folder structure to a local folder on your site server or to a share on your network. The I386 and Alpha subfolders are required and must also be downloaded from the Microsoft FTP site. It is important to keep the folder structure intact. The Q322922.exe file is a Microsoft Windows Installer file that updates specific files on your site server.
 * 2) Log on to your site server by using an account with administrative privileges.
 * 3) On the site server, quit the SMS Administrator console.
 * 4) Run the Q322922.exe file, and then follow the instructions in the wizard. You can run this file in Quiet mode by using the /s switch. The Systems Management Server services are stopped and restarted as part of the installation process.

How to Manually Install the Hotfix
You can use this method for both Intel-based and Alpha-based site servers. Substitute I386 or Alpha for your platform type where  is used in the following steps:


 * 1) Copy the hotfix folder structure to a local folder on your site server or to a share on your network. The I386 and Alpha subfolders are required and must also be downloaded from the Microsoft FTP site. It is important to keep the folder structure intact. Note that the Q322922.exe file is a Microsoft Windows Installer file that updates specific files on your site server; you can run this file only on Intel-based computers. See the &quot;How to Use the Hotfix Installer&quot; section of this article for information about how to use the Q322922.exe file.
 * 2) Quit the SMS Administrator console, and then stop all SMS services in Control Panel. If the SMS_SITE_BACKUP service is running, stop it also.
 * 3) Copy the Apasetup.exe file from the hotfix Platform folder to the Drive:\Sms\Inboxes\Clicomp.src\Smsapm32\Platform folder on the SMS site server.
 * 4) Replace the Compver.ini file in the Drive:\Sms\Inboxes\Clicomp.src\Smsapm32 folder with the Compversmsapm32.ini file from the hotfix I386 or Alpha (both files are the same) source folder after renaming the file to Compver.ini.
 * 5) Copy the SMSApm32.exe file from the hotfix Platform folder to the Drive:\Sms\Bin\Platform folder on the SMS site server.
 * 6) Copy the OdpSys32.exe file from the hotfix Platform folder to the Drive:\Sms\Bin\Platform folder on the SMS site server.
 * 7) Copy the OdpUsr32.exe file from the hotfix Platform folder to the Drive:\Sms\Bin\Platform folder on the SMS site server.
 * 8) Copy the Bindclin.dll file from the hotfix Platform folder to the Drive:\Sms\Bin\Platform folder on the SMS site server.
 * 9) Copy the Clisvcl.exe file from the hotfix Platform folder to the Drive:\Sms\Bin\Platform folder on the SMS site server.
 * 10) Copy the Cqmgr32.dll file from the hotfix Platform folder to the Drive:\Sms\Bin\Platform folder on the SMS site server.
 * 11) Copy the Mslmclin.dll file from the hotfix Platform folder to the Drive:\Sms\Bin\Platform folder on the SMS site server.
 * 12) Copy the Ndsclin.dll file from the hotfix Platform folder to the Drive:\Sms\Bin\Platform folder on the SMS site server.
 * 13) Copy the Ccim32.dll file from the hotfix Platform folder to the Drive:\Sms\Bin\Platform folder on the SMS site server.
 * 14) Copy the Ccmcore.exe file from the hotfix Platform folder to the Drive:\Sms\Inboxes\Clicomp.src\Base\Platform folder on the SMS site server.
 * 15) Replace the Compver.ini file in the Drive:\Sms\Inboxes\Clicomp.src\Base folder with the Compverbase.ini file from the hotfix I386 or Alpha (both files are the same) source folder after renaming the file to Compver.ini.
 * 16) Copy the Clicore.exe file from the hotfix Platform folder to the Drive:\Sms\Inboxes\Clicomp.src\Base\Platform folder on the SMS site server.
 * 17) Replace the Compver.ini file in the Drive:\Sms\Inboxes\Clicomp.src\SWDist folder with the Compverswdist.ini file from the hotfix I386 or Alpha (both files are the same) source folder after renaming the file to Compver.ini.
 * 18) Copy the SWDist32.exe file from the hotfix Platform folder to the Drive:\Sms\Inboxes\Clicomp.src\SWDist\Platform folder on the SMS site server.
 * 19) Restart the SMS_SITE_COMPONENT_MANAGER service on the site server.

This automatically restarts the SMS_EXECUTIVE service.
 * 1) Restart the SMS_SQL_MONITOR on the site server

Keywords: kbhotfixserver kbqfe kbsms200presp5fix kbsoftwaredist kbbug kbfix KB322922

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.