Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.47 KB

File metadata and controls

38 lines (27 loc) · 1.47 KB

This is a simple library that can retrieve the list of installed applications in Windows.

It is based on ListPrograms which is in turn based on a VB Script linked from a StackOverflow Post

My purpose is fairly limited, so haven't replicated all of the functionality. In particular, the following is still to be done

Installation

This module is not in the maven repositories, but it should be very easy to install it locally

$ git clone https://github.com/drone-ah/JavaListApps
$ cd JavaListApps
$ mvn install

You can then include it in your pom.xml

<dependency>
    <groupId>com.droneah</groupId>
    <artifactId>list-apps</artifactId>
    <version>0.1.0-SNAPSHOT</version>
</dependency>

Usage

The usage is very simple

Map<String, Software> list = ListApps.getInstalledApps(false);

for(Software soft: list.values()) {
    System.out.println(soft.getDisplayName() + ": " + soft.getPublisher());
}