How to run an elevated privilege application in Vista + using Java / JNA to run UAC

I would like to programmatically launch an application (second JVM) from a Java application using JNA.

Please note that I cannot:

  • add a Windows manifest to the JVM (minimal impact on the client)
  • right-click "runas administrator" (clicking "Allow" in the UAC dialog will be quite complicated)

I saw other questions with answers saying that "use exe", for example Java: run as administrator , but I was wondering if anyone tried this with JNA

+3
source share
1 answer

, ShellExecute "runas" lpOperation. JVM . , .

. Windows XP "runas", .

+1

Source: https://habr.com/ru/post/1787880/


All Articles