Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

UAC prompt

864700Nov 3 2011 — edited Nov 4 2011
Hi,

I have a desktop application and I made an installer for it using NSIS. Everything works fine on Windows XP, but when I'm trying to run it on Windows 7, it crashes. I was able to identify the reason. The pb is that the application is installed on C:\Program Files\MyApp and I'm trying to create a file there. To create files on C:\Program Files I need admin rights, on Win7. Is there a way to prompt the UAC when running my app so that I can confirm the admin rights?

Thanks a lot,
Iulia

P.S.
I did investigate the solutions proposed here http://stackoverflow.com/questions/2087072/java-admin-rights-uac, but didn't work for me.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 2 2011
Added on Nov 3 2011
6 comments
232 views