In java I want to check whether a software is installed or not. If installed, show it. If uninstalled, then install it.
@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.