As can I remember administrator rights in java program?

68 Views Asked by At

I'm launching my Java application with admin rights using manifest file and launch4j program to create an executable file, but in every execution is asking for admin password, and I will like that ask for password only fist time and remember admin rights for future execution. Also I install application with NSIS.

I use this manifest file and I run NSIS installer with admin rights so I can try to resolve this problem with manifest or with NSIS script.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator"   uiAccess="False" />
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

With this solution application run well but I would like that user don`t have to introduce admin password on every execution. Is that possible? Thanks for help

0

There are 0 best solutions below