Java MSI安装错误3:-2147287037

我们希望通过它的msi静默安装Java 8更新60。 安装停止了一个模糊的错误,这对find一个解决scheme没有什么帮助。

这是MSI日志:

=== Verbose logging started: 10.09.2015 07:42:04 Build type: SHIP UNICODE 5.00.7601.00 Calling process: D:\Service\JRE\jre-8u60-windows-i586.exe === MSI (c) (90:48) [07:42:04:015]: Resetting cached policy values MSI (c) (90:48) [07:42:04:015]: Machine policy value 'Debug' is 0 MSI (c) (90:48) [07:42:04:015]: ******* RunEngine: ******* Product: C:\windows\system32\config\systemprofile\AppData\LocalLow\Oracle\Java\jre1.8.0_60\jre1.8.0_60.msi ******* Action: ******* CommandLine: ********** MSI (c) (90:48) [07:42:04:015]: Client-side and UI is none or basic: Running entire install on the server. MSI (c) (90:48) [07:42:04:015]: Grabbed execution mutex. MSI (c) (90:48) [07:42:04:015]: Cloaking enabled. MSI (c) (90:48) [07:42:04:015]: Attempting to enable all disabled privileges before calling Install on Server MSI (c) (90:48) [07:42:04:015]: Incrementing counter to disable shutdown. Counter after increment: 0 MSI (s) (68:78) [07:42:04:031]: Running installation inside multi-package transaction C:\windows\system32\config\systemprofile\AppData\LocalLow\Oracle\Java\jre1.8.0_60\jre1.8.0_60.msi MSI (s) (68:78) [07:42:04:031]: Grabbed execution mutex. MSI (s) (68:F4) [07:42:04:031]: Resetting cached policy values MSI (s) (68:F4) [07:42:04:031]: Machine policy value 'Debug' is 0 MSI (s) (68:F4) [07:42:04:031]: ******* RunEngine: ******* Product: C:\windows\system32\config\systemprofile\AppData\LocalLow\Oracle\Java\jre1.8.0_60\jre1.8.0_60.msi ******* Action: ******* CommandLine: ********** MSI (s) (68:F4) [07:42:04:031]: Note: 1: 2203 2: C:\windows\system32\config\systemprofile\AppData\LocalLow\Oracle\Java\jre1.8.0_60\jre1.8.0_60.msi 3: -2147287037 MSI (s) (68:F4) [07:42:04:031]: MainEngineThread is returning 3 MSI (s) (68:78) [07:42:04:031]: User policy value 'DisableRollback' is 0 MSI (s) (68:78) [07:42:04:031]: Machine policy value 'DisableRollback' is 0 MSI (s) (68:78) [07:42:04:031]: Incrementing counter to disable shutdown. Counter after increment: 0 MSI (s) (68:78) [07:42:04:031]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 MSI (s) (68:78) [07:42:04:031]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 MSI (s) (68:78) [07:42:04:031]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2 MSI (s) (68:78) [07:42:04:031]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2 MSI (s) (68:78) [07:42:04:031]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 MSI (s) (68:78) [07:42:04:031]: Restoring environment variables MSI (c) (90:48) [07:42:04:031]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 MSI (c) (90:48) [07:42:04:031]: MainEngineThread is returning 3 === Verbose logging stopped: 10.09.2015 07:42:04 === 

我们的系统使用以下参数运行MSI:

 jre-8u60-windows-i586.exe /s /LD:\Service\JRE\setup8u60.log 

到目前为止,我们确保没有其他安装正在运行,而且java已经被完全删除,因为这些是我们在网上find的唯一迹象。

任何提示将有所帮助!

Java 8正在成为大规模部署的麻烦。

这一次,我认为这是在EXE 8u60的一个问题,它以前与8u51和8u45。

如果您看到日志,它会尝试打开C:\ windows \ system32中的msi,并且我认为它在那里找不到任何东西。 在Java 8u51和45 …它工作,因为它试图打开C:\ WINDOWS \ SYSWOW64。

解决方法,为我工作:

注意:在8u51和8u45中,我还需要在安装之前将java.setting.cfg复制到C:\ ProgramData \ Oracle \ Java: http ://www.edugeek.net/forums/enterprise-software/143767-java-8- 更新-25沉默的安装,通过-SCCM-10.html#post1333454

正确地尝试

我假设你正在运行的exe作为系统(SCCM也许?)。 为了testing它,您可以尝试将它安装在CMD中作为SYSTEM,打开控制台并执行:

  PSEXEC -i -s -d CMD 

然后你可以尝试exe安装。

发现在另一个页面上 – 工程太棒了! “我find的最好的方法是在电脑上安装Java,然后进入位于这里的应用程序数据文件夹:C:\ Users \用户名\ AppData \ LocalLow \ Oracle \ Java \ jre1.8.0_60并复制jre1.8.0_60 .msi文件复制到用于SCCM部署的软件文件夹中。 然后使用此msi文件设置您的Java应用程序进行部署。 添加你的开关或任何你需要的。 我已经这么做了很多年,从来没有把Java部署到我pipe理的数千台计算机上。 “