安装jre时:This software has already been installed on your computer. Would you like to reinstall”

来源:互联网 发布:比目鱼游戏工作室知乎 编辑:程序博客网 时间:2024/06/04 20:08

安装jre时可能出现错误:

This software has already been installed on your computer. Would you like to reinstall it?

This action is only valid for products that are currently installed.

原因是由于之前错误的安装或者卸载,然后使用了“Windows Installer Cleanup Utility”这个工具,导致注册表未清理,重新安装时,windows installer认为已安装。

解决办法:(参考链接:http://forums.whatthetech.com/index.php?showtopic=104537

执行脚本:

reg query hklm\software\classes\installer\products /f "java(tm) 6" /s | find "HKEY_LOCAL_MACHINE" > deljava.txtfor /f "tokens=* delims= " %%a in (deljava.txt) do reg delete %%a /fdel deljava.txtreg delete "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment" /freg delete "HKEY_LOCAL_MACHINE\SOFTWARE\wow6432node\JavaSoft\Java Runtime Environment" /f
人家写好的--链接内下载 运行即可




0 0