How can check a Software is instralled is install or not using java

175 views Asked by At

In java I want to check whether a software is installed or not. If installed, show it. If uninstalled, then install it.

1

There are 1 answers

8
brb tea On BEST ANSWER

@Lokesh Kumar you need to check C:\Program Files or C:\Program Files (X86), and check if software is there.. If it is not then copy files to there with Java program. If software there, then delete software files. You can use java.nio package for copying/moving/deleting files. It has all good features to work with HDD (Hard Disk Drive).

EDIT

If software is bundled in installer, then you can run installer program with Java using Runtime, and Process, ProcessBuilder API.