Hi,
I'm a little confused about an effect I'm seeing with the Vista User Account Control, and am hoping that you can help me. I'm creating an installer for a Java application.
When running the installed application on a Vista machine, with the UAC switched on, I get the following, for running straight from the .exe, or calling the main class direct from the jar file (java -cp XYZ MainClass).
Execution Level: As Invoker
Run from .exe: Will not work - no error message is displayed, the splash screen appears for approximately 10 seconds, then disappears.
Run from command line: Works as normal.
Execution Level: Highest Available
Run from .exe: Works, but only after showing me the 'are you sure you want to run this application' message, which is not ideal.
Run from command line: Works correctly.
So - basically, there's something happening in the .exe file, that is causing Vista to complain about permissions. I've been thinking it was in my code, but that's clearly not the case, since the application starts and runs correctly, if I bypass the .exe file.
I did wonder if it was creating the output and error log files, since they go into the APPDIR, but with those switched off, the effect is the same.
Any thoughts gratefully received.