Open WojciechKlups opened 2 years ago
In PowerShell simply put java -jar path\to\jar\[filename].jar
then create cmd file with this command properly prepared: powerShell path\to\powershell_script.ps1 >> path\to\log_file.log
. Then put this cmd file in C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup location. Add to project's description that there is a possibility to run this app on system startup but as prerequisite the user has to have JRE installed.
Powershell script should have functionality that could retrieve path from which this script was evoked. Thus, we can use this path as jar file path, only requirement for the user will be that this script file and jar file have to be in the same directory.
Please prepare PowerShell script for running this app's jar on system launch.