简体   繁体   中英

how to detect installation of new software in our system using java (solution must be OS independent)

i want to monitor each and every installation of software so that i can put restriction on some malfunctioning software from being installed automatically.

Solution should be able to work on each any every OS. So is there any library or jar to do the same?

There are significant differences between OS-es, but, I think, there's a workaround to help you to solve this task.

Make an application that is watching a directory for changes .

In your application, use

System.getProperty("os.name")

to determine the operating system. And for every operating system monitor a predefined set of directories/folders related for the recognized operating system.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM