Skip to content

Releases: lukacat10/JavaUACExample

Final Version 1

12 Jul 19:39
Compare
Choose a tag to compare

This release contains the code to execute the jar as administrator in windows with UAC enabled (it will automatically detect whatever admin rights are already present or not). It will then use the rights it gained to modify the "hosts" system file, replacing it with the hosts file in the path C:\mytempfolder\hosts.

jna files are also included separately for comfort, but the jar file contains a copy of them.