Finding component versions on a remote machine

how to get the version of installed components on a remote machine using c #?


this is for local machine ... can anyone tell how to access the remote machine?

COMSVCSLib.MtsGrpClass group = new COMSVCSLib.MtsGrpClass();

for (int i = 0; i < group.Count; i++)
{
    object item = null;
    group.Item(i, out item);
    COMSVCSLib.COMEvents events = (COMSVCSLib.COMEvents)item;

    ListBox1.Items.Add(events.GetProcessID().ToString( ) + ":" +
    events.PackageGuid + ":" + events.PackageName);
    Marshal.ReleaseComObject(item);
    item = null;
    Marshal.ReleaseComObject(events);
    events = null;
}

Marshal.ReleaseComObject(group);
group = null; 

      

+2


a source to share





All Articles