Skip to content

drone-ah/JavaListApps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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());
}