Approach update Java Plugin on Windows
I would like to know if someone here implemented a module for update Java Plugins on Windows. How did you approach it?
I built a module with the simple task of installing the Java Plugin on our 300+ desktops. I could make it work, and I was trying to make it as simple as possible for others to maintain it. However, Java Plugin is a little piece of work that does not let us uninstall while installing a new version of it, as far as I know. (The irony is that even Flash allows it!)
That said, I implemented an exec resource on my module that subscribes to the new installation and then removes the older version.
Since life is not as simple as we would like to be, to silent uninstall Java we need to provide a uninstall string found in registry.
It works, but the problem is that for each old Java version, the string (of course) is different and I have first to find the current version these desktops have and then provide the right string to my module. (I just implemented Puppet here, and the environment is a mess)
I also built a custom fact to help out, trying to gather versions, but again, Oracle put Java stuff inside a huge code name on its path for each version as well. While we can find version of Flash on their abstract path, this is not true for Java.
My package must come from a UNC path, so we host the exe and msi.
Any clue of how to do that?
Gist of my main simple class (Just a draft (-: ) Gist
Final edit: this is my module that came out of this: Forge ericohtake-javaplugin64