I've tried searching for this. I'm sure the problem is I'm not searching for the right thing. Can someone point me in the right direction. I want to create an uninstall flag for my application. This would launch my application.
java -jar myapp.jar
and I would like this to uninstall my application
java -jar myapp.jar -uninstall
thanks to anyone that took the time to help.