Page 1 of 1
The application requests admin rights upon first use
Published: November 13, 2024 - 3:10 PM
by elux
Hello,
I hope you can find a solution to my problem.
I created a package for an application (
https://igv.org/doc/desktop/#DownloadPage/).
I chose the full version with Java to avoid problems, but when I install it, it asks for administrator privileges for Java every time I restart my computer.
Do you have any idea how to work around this?
Thank you very much in advance.
Re: Application requests admin rights on first use
Published: November 25, 2024 - 09:26
by jcdemarque
Hello,
The simple solution would be to use the Java package from the WAPT store as a dependency, in the appropriate version: 1.8, 11, or 17 with the non-Oracle version.
Otherwise, it sends automatic update pop-ups and other annoying messages.
Alternatively, you would have to look at the Java package from the store and use it as a guide to install Java, but this would need to be done again with each new Java version.
EDIT: Java 17 is required:
Since version 2.17.0, IGV requires Java 17 or greater. If you download one of the IGV versions that does not include Java, make sure you have Java 17 installed and in your PATH.
There is also a web app which is just a web page:
https://igv.org/app/
Re: Application requests admin rights on first use
Published: November 25, 2024 - 10:15 AM
by dcardon
Hi Eric,
Wapt itself doesn't request privilege escalation, but poorly coded software does. Indeed, there are still quite a few cases where developers don't take into account that a secure session doesn't require local administrator privileges.
As Jean-Charles mentioned, it's probably the Java update that's causing the problem. The Wapt package explicitly disables the update to avoid unwanted pop-ups and allows the system administrator to control updates more precisely, preventing a business application from crashing due to a dependency update that was automatically installed without any warning.
Another possible cause of the pop-up is a request by the application to open a network port. In that case, the port opening request needs to be explicitly included in the Wapt package beforehand.
Clearly, application developers aren't helping to create secure workstations. And the current trend is to put everything in the user's AppData, which is even worse...
Regards,
Denis