Wrapping installer for UAC and Java
When a Java process tries to directly launch a Nullsoft install process and the default UAC setting is on, the Java runtime throws a 740 exception. Java can't perform elevation. To get around this, I created a wrapper program to call ShellExecute with the "runas" verb which is the same thing as running as Administrator. The wrapper program is asInvoker which can be launched by the Java Runtime and lets the new ShellExecute process do the elevation for Administrator. A coworker suggested that the Nullsoft setup installer be directly wrapped inside the launcher instead of doing it separately. I'm wondering if Nullsoft could have this functionality added because otherwise doing it that way would complicate the build process? Of course, one can just make their own helper exe which is what I did and that works in the mean time.