We are working on packaging Java 7 application for Windows using install4j. The problem we are having is that on my Windows 7 computer I need to run the installed application as administrator for it to work properly. It fails at the point in which it needs to access the disk. If I run it as administrator, then it works fine.
Is there a way around this? I have used other application that were packaged with install4j and access disk and I did not need to run as administrator, so I suspect what I want is possible.
Thank you in advance.
What kind of application is it? Usually all applications are going to be installed in
C:\Program Filesfolder. And probably install4j tries to install your application to theC:\Program Filesfolder.Regular users (not admins) are not authorized to alter this directory neither create new folders there.
Is it necessary to install the application or it is enough to just wrap it in exe file to launch?
If installation is mandatory, i.e you need system folders, access to system dlls, then admin permissions are required and it is logical.
If you can omit installation and use a portable exe-file, then use an exe-wrapper for java applications. For instance – JSmooth