Java 此 Windows 安装程序包有问题

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3131731/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 16:42:51  来源:igfitidea点击:

There is a problem with this Windows Installer Package

javawindows

提问by lakshmi

I need help with this. It started with me trying to update Java & when I tried this is the message I got: "ERROR 1723: There is a problem with this Windows Installer Package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor."

我需要这方面的帮助。首先是我尝试更新 Java,当我尝试更新时,我收到以下消息:“错误 1723:此 Windows 安装程序包存在问题。无法运行此安装所需的 DLL。请联系您的支持人员或包供应商。”

I've already tried deleting Java 6 update 14, but it won't allow me to, oddly enough I get the same message. What can I do?

我已经尝试删除 Java 6 update 14,但它不允许我这样做,奇怪的是我得到了相同的消息。我能做什么?

采纳答案by Vagaus

I guess this should be asked in superuser.com but I don't have enough reputationto move it.

我想这应该在 superuser.com 中询问,但我没有足够的声誉来移动它。

Anyway, the installation package comes as a msifile, correct? If so you can try to run msiexecwith log enabled.

无论如何,安装包是作为一个msi文件来的,对吗?如果是这样,您可以尝试在启用日志的情况下运行msiexec

Best

最好的事物

回答by MockerTim

Have a look at this postfor additional information about solving this issue.

有关解决此问题的其他信息,请查看此帖子

Update:

更新:

Here is the brief summary of the original Problems with Java installation discussion.

这是原始Java 安装问题讨论的简要摘要。

Sometimes, when you attempt to run the java installer file you receive the message:

有时,当您尝试运行 java 安装程序文件时,您会收到以下消息:

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

When you click Yes to the above question you receive the error:

当您对上述问题单击“是”时,您会收到错误消息:

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

This problem is caused because the Windows Installer information for a previous installation of Java has been removed or damaged, but the related registry keys are still present causing the Java installer to think it is already installed.

导致此问题的原因是先前安装的 Java 的 Windows 安装程序信息已被删除或损坏,但相关的注册表项仍然存在,导致 Java 安装程序认为它已安装。

To fix this issue you should do the following:

要解决此问题,您应该执行以下操作:

  1. If you are able, uninstall all previous versions of Java in add/remove programs in your control panel.
  2. Next, you may download the current version of JavaIt's recommended that you use the offline installer version.
  3. Run the following commands in cmd:
  1. 如果可以,请在控制面板的添加/删除程序中卸载所有以前版本的 Java。
  2. 接下来,您可以下载Java 的当前版本。建议您使用离线安装程序版本。
  3. 在cmd中运行以下命令:

_

_

reg query hklm\software\classes\installer\products /f "java(tm) 6" /s | find "HKEY_LOCAL_MACHINE" > deljava.txt
for /f "tokens=* delims= " %%a in (deljava.txt) do reg delete %%a /f
del deljava.txt
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\wow6432node\JavaSoft\Java Runtime Environment" /f

回答by tpow

I had a similar problem on my Windows 7 box where I was trying to uninstall Java and do a clean install of a newer version. Something got messed up and I would get the 1723 error message during the uninstall and attempted reinstall. Here's information about how I was able to fix the problem, and maybe this will help you:

我在尝试卸载 Java 并全新安装较新版本的 Windows 7 机器上遇到了类似的问题。有些东西搞砸了,我会在卸载和尝试重新安装期间收到 1723 错误消息。以下是有关我如何解决问题的信息,也许这会对您有所帮助:

Look at the log files for the uninstall/reinstall. On Windows 7 they can be found at c:\users\username\AppData\Local\Temp\

查看卸载/重新安装的日志文件。在 Windows 7 上,它们可以在c:\users\username\AppData\Local\Temp\

The java_install.logdidn't show any extra information, but I had several MSI#####log files that contained error messages about the failed uninstall. The message was: Error 1723.There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action UninstallJRE, entry: MSIUninstallJRE, library: C:\Program Files\Java\jre6\bin\regutils.dll

java_install.log没有表现出任何额外的信息,但我有几个MSI#####包含有关失败卸载错误信息的日志文件。消息是:Error 1723.There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action UninstallJRE, entry: MSIUninstallJRE, library: C:\Program Files\Java\jre6\bin\regutils.dll

There was indeed no regutils.dllfile, and not even the bindirectory was there. So I copied over a regutils.dllfile from another computer, ran the uninstaller, and it worked. Then the new clean install of Java also worked.

确实没有regutils.dll文件,甚至没有bin目录。所以我regutils.dll从另一台计算机复制了一个文件,运行了卸载程序,它工作了。然后新的 Java 全新安装也有效。

So take a look at your logfiles and hopefully that will give you more detailed information about the 1723 error.

因此,请查看您的日志文件,希望这将为您提供有关 1723 错误的更多详细信息。

回答by cyber-monk

I had the 1723 problem (Windows 7) when attempting to uninstall JRE 6.30. I don't think the version matters for this error. I believe it is caused by having multiple version of Java installed at the same time. When uninstalling one of them it removes some file needed to uninstall the other versions and you are left in a state where you can't reinstall or uninstall the JRE. I used the Microsoft FixIt tool[stand alone download here]. I created the portable fixit and then ran on my local machine. The tool has a list of fixes and you need to find "Fix problems with programs that can't be installed or uninstalled" and click "Run Now". The wizard is self-explanatory and after running will show something similar to this:

我在尝试卸载 JRE 6.30 时遇到了 1723 问题(Windows 7)。我认为版本与此错误无关。我相信这是由于同时安装了多个版本的 Java 引起的。卸载其中一个时,它会删除卸载其他版本所需的一些文件,并且您将处于无法重新安装或卸载 JRE 的状态。我使用了Microsoft FixIt 工具[此处单独下载]。我创建了便携式 fixit,然后在我的本地机器上运行。该工具有一个修复列表,您需要找到“修复无法安装或卸载的程序的问题”,然后单击“立即运行”。该向导不言自明,运行后将显示类似以下内容:

microsoft fix it tool

微软修复工具

Once you see this, double check your control panel that the JRE was actually uninstalled (and attempt to install if desired).

看到这一点后,请仔细检查您的控制面板是否已实际卸载 JRE(并根据需要尝试安装)。

回答by JHollanti

One way (only way which worked for me - i tried most of the things listed in this post, including MockerTims script) was to search through Windows Registry for Java and then carefully remove anything that seemed to point to the specific JRE version i wanted to remove.

一种方法(唯一对我有用的方法 - 我尝试了本文中列出的大部分内容,包括 MockerTims 脚本)是在 Windows 注册表中搜索 Java,然后小心地删除任何似乎指向我想要的特定 JRE 版本的内容消除。

Steps are roughly as such:

步骤大致如下:

  1. Hit Windows button and type into the search field "regedit". Pick the result of the search, which is regedit.exe.

  2. Select the top of the tree and hit CTRL + F.

  3. Type in Java to 'Find what' field and hit enter.

  4. Manually go through every found object (hit F3 to proceed to the next item).

  5. If the item is referring to the JRE version you want to remove, then delete the entry. Otherwise leave it be and continue on to the next item.

  1. 点击 Windows 按钮并在搜索字段中输入“regedit”。选择搜索结果,即 regedit.exe。

  2. 选择树的顶部,然后按 CTRL + F。

  3. 在 Java 中输入“查找内容”字段并按回车键。

  4. 手动检查每个找到的对象(按 F3 继续下一个项目)。

  5. 如果该项目指的是您要删除的 JRE 版本,则删除该条目。否则就这样吧,继续下一个项目。

回答by user2296771

I have tried all of the tricks stated above and nothing was able to resolve my problem. Changing the path way, registry being corrupted, few dlls weren't able to be deleted and so on and on... I used Fixit and deleted whatever I saw with the name JAVA. I tried installing GRE/JVM separately, nothing worked what so ever.

我已经尝试了上述所有技巧,但没有任何方法可以解决我的问题。改变路径,注册表被破坏,一些dll无法被删除等等......我使用Fixit并删除了我看到的名称为JAVA的任何内容。我尝试单独安装 GRE/JVM,但没有任何效果。

Solution..

解决方案..

http://www.java.com/en/download/help/windows_offline_download.xml

http://www.java.com/en/download/help/windows_offline_download.xml

Use offline install of JAVA or some people call it silently install JAVA. This fixed my problem that I couldn't fix in two days. After this I was able to install eclipse without getting any pathway error message, or dll related messages.

使用离线安装JAVA 或者有人称之为静默安装JAVA。这解决了我在两天内无法解决的问题。在此之后,我能够安装 eclipse 而不会收到任何路径错误消息或与 dll 相关的消息。