Changes

Jump to: navigation, search

Java

539 bytes added, 11:14, 28 January 2010
Java Uninstall Method
START "" /WAIT "%WinDir%\SYSTEM32\msiexec.exe" /x%1 /qn
GOTO :EOF
</source>
 
Here's a JScript variant using the MSI ActiveX object. Execute it with cscript. Any JRE from 1.4.2 up to including 1.6u7 will be removed:
<source lang="javascript">
var msi = new ActiveXObject("WindowsInstaller.Installer");
msi.UILevel = 2; // INSTALLUILEVEL_NONE
var products = msi.Products;
for (var i = 0; i < products.Count; ++i)
if (products.Item(i).match("^\{(?:7148F0A8-6813-11D6-A77B-00B0D0142|3248F0A8-6813-11D6-A77B-00B0D01[56])"))
msi.ConfigureProduct(products.Item(i), 0, 2 /* INSTALLSTATE_ABSENT */);
</source>
Anonymous user

Navigation menu