Somewhere in six months or a year ago, I helped a man with a problem: he wanted to automatically remove anything that belongs to the Java, a computer running Windows.
First, I looked, whether the installer some key that will do it.
I do not remember exactly, I think still found it, but the functionality was broken, the installer does not perform the desired function.
Additional options I naguglit sorts VB-solutions, or require .NET, how JavaRa.
In the end I came up for discussion, which found a treasured place with useful command wmic, and eventually degenerated into a solution in a very small batch file that uses only the means of the system to fulfill the purpose for which the longest written scripts.
The team is part of WMI, a tamed present in Windows 2000 and above.
I think a little explanation can not hurt:
The first part removes all installation, starting with «Java» (Java 6 and above), the second part – «J2SE» (Java 5).
I do not remember whether it copes with Java 4, but I do not think that would be a problem to modify the batch file.
In each of the forms file% TEMP% \ deleteAllJava_1.txt, there will be lines with product identifiers. Then use the findstr eliminated only the IDs, the excess is removed. The result is the file% TEMP% \ deleteAllJava_2.txt, and the first is removed. Next, using the brute force for the lines from the second file is run the command to remove the product by ID (msiexec key / x).English via Skype
Plus, run the batch file should be performed with administrator rights, then the UAC request will be made only once at startup rather than every time you uninstall the package.
It is worth noting that if even some application will start with Java words or the J2SE, it also gets under the knife, so I will appreciate if you tell us how to fix this is a script that he did not break the wood.
↧
The way to remove the automation of Java in Windows
↧