Loading an plugin file

Hi, I want users to be able to click on a flash button and the java aplication setup launcher automatically installs an update on their machine. I have the application file.
thanks
3pm