Making a JAR file run as administrator - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ayrmer
Posts: 1
Joined: Mon Aug 30, 2010 10:28 am

Making a JAR file run as administrator

Hi,

I have a JAR file that uses DERBY. When installing on Windows 7, the database access is read only until you run as administrator. I understand completely why based upon Windows 7 permissions. My question is whether there is some setting that will set the program to run as administrator by default.

Thanks for any help

Kind Regards

Ayrmer
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Making a JAR file run as administrator

Hi Ayrmer,

Here is what you can do:
-- you can try to create a java product for your JAR as explained in our tutorial
-- for this product you can set the execution level to "Require Administrator" from the "Settings" tab, Java Products page

Please let us know if you have any questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”