fvarrui / JavaPackager

:package: Gradle/Maven plugin to package Java applications as native Windows, MacOS, or Linux executables and create installers for them.
GNU General Public License v3.0
1.07k stars 133 forks source link

Running Application after Install Runs as Wrong User #369

Open maths22 opened 1 year ago

maths22 commented 1 year ago

When I use the run after installing checkbox, it ends up running as the admin user that installed the application rather than the current user that is trying to use the application. I think that this is almost always the wrong result, though I'm sure someone somewhere wants this behavior.

This comes from using runascurrentuser instead of runasoriginaluser here: https://github.com/fvarrui/JavaPackager/blob/e0a52064ba514b3e04c4c96df398ed11e3835042/src/main/resources/windows/iss.vtl#L94