Skip to main content

1E SDK

Software.GetInstallations

Method

GetInstallations

Module

Software

Library

Core

Action

Gets a list of the installed software available to all users, optionally filtered by product and/or publisher.

Parameters

Product (string; optional): If specified, search for just this product.

Publisher (string; optional): If specified, get just this publisher's software.

Return values

A table of:

  • Product (string): The product name.

  • Publisher (string): The publisher of the product.

  • Version (string): The version of the product.

  • InstallDate (string): If available, when the product was installed.

  • Architecture (string): Platform architecture of this installation (e.g. x86, x64)

Example

Get all software:

Software.GetInstallations();

Find and remove all installed instances of Calculator Plus:

Software.GetInstallations( Publisher : "Microsoft", Product : "Microsoft Calculator Plus");
evaluate;
Agent.Echo( Message: "Is installed");
Software.Uninstall( Publisher : "Microsoft", Product : "Microsoft Calculator Plus");

To select a specific version, use a SQL WHERE clause:

@installs = Software.GetInstallations( Publisher : "Microsoft", Product : "Office Professional");
SELECT DISTINCT * FROM @installs WHERE Version LIKE "16.0%";

Platforms

  • Windows

  • Linux

  • MacOS

Notes

To find additional software installed for specific users, use Software.GetUserInstallations.