Menu

exe request administrator right

Help
Tutul
2015-07-11
2015-07-22
  • Tutul

    Tutul - 2015-07-11

    Hi, I use your software for a while and thaks for it.
    Actually, I use it for a launcher and the .exe request Administrator privileges. But the jar file can run without these privilege (and the code doesn't need them). I didn't know why so hope you can help me (user don't appreciate the request popup for only a launcher).

    My program use also two Apache dependency (commons-lang and commons-codec) and log4j. The dependencies are in the jar file (with the shade-plugin).

    Here, the maven task for launch4j:
    <plugin>
    <groupId>com.akathist.maven.plugins.launch4j</groupId>
    <artifactId>launch4j-maven-plugin</artifactId>
    <version>1.7.7</version>
    <executions>
    <execution>
    <id>default-cli</id>
    <phase>package</phase>
    <goals>
    <goal>launch4j</goal>
    </goals>
    <configuration>
    <headerType>gui</headerType>
    <outfile>target/${project.name}.exe</outfile>
    <jar>target/${project.name}.jar</jar>
    <errTitle>${project.name} - Erreur Fatal</errTitle>
    <icon>src/main/resources/${project.name}.ico</icon>
    <supportUrl>${project.organization.url}</supportUrl>
    <singleInstance>
    <mutexName>${project.name}</mutexName>
    </singleInstance>
    <classPath>
    <mainClass>${main.class}</mainClass>
    </classPath>
    <jre>
    <minVersion>1.7.0</minVersion>
    <maxVersion>1.8.0</maxVersion>
    </jre>
    <versionInfo>
    <fileVersion>${project.version}.0</fileVersion>
    <txtFileVersion>${project.version}-${release.identifier}</txtFileVersion>
    <fileDescription>${project.description}</fileDescription>
    <copyright>MIT</copyright>
    <productVersion>${project.version}.0</productVersion>
    <txtProductVersion>${project.version}-${release.identifier}</txtProductVersion>
    <productName>${project.name}</productName>
    <internalName>${project.name}</internalName>
    <originalFilename>${project.name}.exe</originalFilename>
    </versionInfo>
    </configuration>
    </execution>
    </executions>
    </plugin>

     
  • Grzegorz Kowal

    Grzegorz Kowal - 2015-07-12

    Hi, I wasn't able to reproduce this. Launch4j does not require administrative privileges to execute the jar. Is there anything special in the folder where this exe is located? I'd also scan it for viruses for example with virus total. Also try without the mutex, and let me know if anything changed.

    Grzegorz

     
  • Tutul

    Tutul - 2015-07-12

    Hi, for the scan, my antivirus block it beacause "not enought used" ><, but I check the binary and nothing special (these is the same jar contents than my jar). The program don't use any other file. But it's use Properties, Log4J properties and system properties. Can be that ?

     
  • Tutul

    Tutul - 2015-07-22

    I try with a jar without log4j (it's the only new thing I add to my program so before it's was ok). But request alway admin rights. The request is for the wrapper jar.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.