I am writing an installer in Java that will accordingly require elevated privileges to access the Program Files directory. Based on information that I\'ve found online, I\'
I think that the best approach to achieve this is to use the tools that microsoft built for developers since you can't do it in simple Java. In this case use a manifest file http://msdn.microsoft.com/en-us/library/aa375632(v=vs.85).aspx Just build the wrapper .exe that asks for this privileges and then spawns your java program.