Can customize SMS2003 SMS_DEF.MOF for...???



When inventory is taken for Add/Remove Programs,
it pulls all the entries within the "Uninstall" reg key.

But alot/most of these entries are for additional components that
the "main" app installed behind the scenes, and don't show up if
go to the PCs Add/Remove Programs list (only the main app is listed).

Would like to have SMS only "pull" the main apps.

Back before we got SMS I wrote a VBS to pull this info.
What I keyed on was if the DisplayName<>"" AND UninstallSting<>""

Possible to do either:
#1- add the above "filter" to the MOF somehow?
or
#2- add the UninstallString reg entry to the MOF inventory?
(then could filter within the reports)

Note-
I tried adding the lines:
[PropertyContext("UninstallString")]
string UninstallString;
and
[SMS_Report (TRUE) ]
string UninstallString;
to my def.MOF
But now in SMS my test box has no entries for Add/Remove Programs.
Took the lines out, redid inventory-still nothing, so hosed up something


****from my orig SMS_DEF.MOF****
//----------------------
// Add Remove Programs
//----------------------
#pragma namespace ("\\\\.\\root\\cimv2")
[ dynamic,
provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\
CurrentVersion\\Uninstall")
]
class Win32Reg_AddRemovePrograms
{
[key]
string ProdID;
[PropertyContext("DisplayName")]
string DisplayName;
[PropertyContext("InstallDate")]
string InstallDate;
[PropertyContext("Publisher") ]
string Publisher;
[PropertyContext("DisplayVersion")]
string Version;
};

#pragma namespace ("\\\\.\\root\\cimv2\\sms")
[ SMS_Report (TRUE),
SMS_Group_Name ("Add Remove Programs"),
SMS_Class_ID ("MICROSOFT|ADD_REMOVE_PROGRAMS|1.0") ]
class Win32Reg_AddRemovePrograms : SMS_Class_Template
{
[SMS_Report (TRUE), key ]
string ProdID;
[SMS_Report (TRUE) ]
string DisplayName;
[SMS_Report (TRUE) ]
string InstallDate;
[SMS_Report (TRUE) ]
string Publisher;
[SMS_Report (TRUE) ]
string Version;
};
//----------------------


--
Message posted via WinServerKB.com
http://www.winserverkb.com/Uwe/Forums.aspx/sms-inventory/200510/1
.



Relevant Pages

  • Re: Cannot get around prompt for CD (Office 2000)
    ... Windows in place upgrades can be such 'fun'. ... There are no entries for 2000 series products in Add/Remove Programs? ...
    (microsoft.public.office.setup)
  • Re: Strange programs listed - Control Panel
    ... Some or most of those entries you listed are part of Kodak Easyshare ... If she installed a Kodak digital camera that program (includes ... Add/Remove/Change when I open up Add/Remove Programs. ...
    (microsoft.public.windowsxp.general)
  • Re: End user should not be able to delete the application.
    ... I agree with Shehzad - you can use SMS inventory results to control ... If the app is removed from machine A, ... > to go to Add/Remove Programs and uninstall the application. ... > package to a collection of 10 workstations which installs an application X ...
    (microsoft.public.sms.swdist)
  • Re: remove a program
    ... you're just talking about two entries ... "Removing Invalid Entries in the Add/Remove Programs Tool" ... The uninstall routine is always provided by the software during its ...
    (microsoft.public.windowsxp.general)
  • Re: Duplicate entries in Add/Remove
    ... It has a feature that allows you to remove entries from Add/Remove Programs. ... > In the Add/Remove Programs control panel, I have entries for both Firefox ... > I thought perhaps I could create a dummy entry in the registry, ...
    (microsoft.public.windowsxp.help_and_support)

Loading