I've a small java program that displays info in the windows system tray.
I want the program to start on bootup so I've manually added it to the registry under:
This works nicely but I'd like to automate the registry update if possible, so its easier for people I distribute my program too.
Can anyone suggest a neat way to do this? I'm currently considering
1. Write an installation .bat file to update registry
2. Do the registry update from within my code
One alternate way to edit/add/update the registry manually [other than browsing through the regedit programs explorer interface] is to place the key[with its complete path] and value pair in a *.reg file - save this file, and double-clicking [execute] it.
Why dont we try to create such a file from within your java application and do a runtime.exec(the_reg_file) ???