hi i have to write a command line to uninstall java where it get current version already installed in system ?(suppose one system having jre-6u29 where other having jre-7).But i want single command line to uninstall existing version.please help me.
Click Start, point to Settings, and then click the Control Panel. On the Install/Uninstall tab, click the Java version you want to uninstall, and then click Add/Remove. When you are prompted to continue with the Uninstall, click Yes.
Type the command Setup. bat /s option to initiate a silent mode uninstallation process.
I have not tested this.
Use with EXTREME caution. It WILL NOT prompt for confirmation, and it WILL NOT let you cancel your action
Open a command prompt using administrator rights, and type in:
wmic product where "name like 'Java%'" call uninstall
What this simple command is doing is:
In order to make sure that you get any installation of Java replace 'Java%' with '%Java%' (obviously). So the command would be:
wmic product where "name like '%Java%'" call uninstall
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With