通过组策略更新/安装 Java

通过组策略更新/安装 Java

我正在尝试通过 GP 部署最新的 Java RE 版本,即 Java 7 update 9。我想更新当前运行旧版 Java(7.6 和 7.7 混合版)的计算机,有些计算机运行的是 6.31 版。有些计算机运行的是两者的混合版。如果未安装 Java,我还希望此 GP 安装它。

以前,我曾将 Java 更新推送给用户计算机,因为 Java 不会删除旧版本。因此,当更新完成后,用户将重新启动浏览器或 PC 以开始使用最新版本。这不是管理它的最佳方式,因为它会保留安装的旧版本,但它确实有效。

我之前曾为打印机部署、登录驱动器映射脚本创建过组策略,但从未为软件部署创建过组策略。

我已经提取了 Java MSI,并使用 orca 创建了一个转换文件来抑制重启等。如本网站所述http://ivan.dretvic.com/2011/06/how-to-package-and-deploy-java-jre-1-6-0_26-via-group-policy/。我也尝试过直接保存编辑后的 ​​MSI,但也没有用。

但它就是无法部署。我尝试按照此网站的建议启用日志记录http://openofficetechnology.com/node/32、通过 UserEnvDebugLevel 进行 GPO 日志记录、通过 AppmgmtDebugLevel 进行软件部署日志记录和 MSI 日志记录,但没有创建日志 C:\Windows\Debug\UserMode\userenv.log。

Windows事件查看器有以下错误:

Error   24/10/2012 11:44:04 AM - "Failed to apply changes to software installation settings.  Software changes could not be applied.  A previous log entry with details should exist.  The error was : %%1612"
Information 24/10/2012 11:44:04 AM - "The removal of the assignment of application Java 7 Update 9 - FB Java Transform from policy JavaDeploy succeeded."
Error   24/10/2012 11:44:04 AM - "The install of application Java 7 Update 9 - FB Java Transform from policy JavaDeploy failed.  The error was : %%1612"

为 MSI 日志记录创建了一个日志,如下所示。它表示源无效,但它存在于共享中,并且我正在测试的 PC 具有权限,我在此处包含了建议组策略安装失败,错误1274启用“在计算机启动和登录时始终等待网络”

=== Verbose logging started: 24/10/2012  11:43:59  Build type: SHIP UNICODE 5.00.7601.00  Calling process: C:\Windows\system32\svchost.exe ===
MSI (c) (9C:EC) [11:43:59:898]: Resetting cached policy values
MSI (c) (9C:EC) [11:43:59:898]: Machine policy value 'Debug' is 3
MSI (c) (9C:EC) [11:43:59:898]: ******* RunEngine:
           ******* Product: {26a24ae4-039d-4ca4-87b4-2f83217009ff}
           ******* Action: 
           ******* CommandLine: **********
MSI (c) (9C:EC) [11:43:59:898]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (9C:EC) [11:43:59:898]: Grabbed execution mutex.
MSI (c) (9C:EC) [11:44:03:431]: Cloaking enabled.
MSI (c) (9C:EC) [11:44:03:431]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (9C:EC) [11:44:03:439]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (2C:70) [11:44:03:574]: Running installation inside multi-package transaction {26a24ae4-039d-4ca4-87b4-2f83217009ff}
MSI (s) (2C:70) [11:44:03:574]: Grabbed execution mutex.
MSI (s) (2C:7C) [11:44:03:607]: Resetting cached policy values
MSI (s) (2C:7C) [11:44:03:607]: Machine policy value 'Debug' is 3
MSI (s) (2C:7C) [11:44:03:607]: ******* RunEngine:
           ******* Product: {26a24ae4-039d-4ca4-87b4-2f83217009ff}
           ******* Action: 
           ******* CommandLine: **********
MSI (s) (2C:7C) [11:44:03:607]: Machine policy value 'DisableUserInstalls' is 0
MSI (s) (2C:7C) [11:44:03:623]: User policy value 'SearchOrder' is 'nmu'
MSI (s) (2C:7C) [11:44:03:624]: User policy value 'DisableMedia' is 0
MSI (s) (2C:7C) [11:44:03:624]: Machine policy value 'AllowLockdownMedia' is 0
MSI (s) (2C:7C) [11:44:03:624]: SOURCEMGMT: Media enabled only if package is safe.
MSI (s) (2C:7C) [11:44:03:624]: SOURCEMGMT: Looking for sourcelist for product {26a24ae4-039d-4ca4-87b4-2f83217009ff}
MSI (s) (2C:7C) [11:44:03:624]: SOURCEMGMT: Adding {26a24ae4-039d-4ca4-87b4-2f83217009ff}; to potential sourcelist list (pcode;disk;relpath).
MSI (s) (2C:7C) [11:44:03:624]: SOURCEMGMT: Now checking product {26a24ae4-039d-4ca4-87b4-2f83217009ff}
MSI (s) (2C:7C) [11:44:03:624]: SOURCEMGMT: Media is enabled for product.
MSI (s) (2C:7C) [11:44:03:624]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
MSI (s) (2C:7C) [11:44:03:624]: SOURCEMGMT: Processing net source list.
MSI (s) (2C:7C) [11:44:03:624]: SOURCEMGMT: Trying source \\server\share\deployment\Java\stable\x32\.
MSI (s) (2C:7C) [11:44:03:650]: Note: 1: 2303 2: 5 3: \\server\share\ 
MSI (s) (2C:7C) [11:44:03:650]: Note: 1: 1325 2: deployment 
MSI (s) (2C:7C) [11:44:03:650]: ConnectToSource: CreatePath/CreateFilePath failed with: -2147483648 1325 -2147483648
MSI (s) (2C:7C) [11:44:03:650]: ConnectToSource (con't): CreatePath/CreateFilePath failed with: -2147483648 -2147483648
MSI (s) (2C:7C) [11:44:03:650]: SOURCEMGMT: net source '\\server\share\deployment\Java\stable\x32\' is invalid.
MSI (s) (2C:7C) [11:44:03:650]: Note: 1: 1706 2: -2147483647 3: jre1.7.0_09.msi 
MSI (s) (2C:7C) [11:44:03:650]: SOURCEMGMT: Processing media source list.
MSI (s) (2C:7C) [11:44:04:668]: Note: 1: 2203 2:  3: -2147287037 
MSI (s) (2C:7C) [11:44:04:668]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
MSI (s) (2C:7C) [11:44:04:668]: Note: 1: 1706 2: -2147483647 3: jre1.7.0_09.msi 
MSI (s) (2C:7C) [11:44:04:668]: SOURCEMGMT: Processing URL source list.
MSI (s) (2C:7C) [11:44:04:668]: Note: 1: 1402 2: UNKNOWN\URL 3: 2 
MSI (s) (2C:7C) [11:44:04:668]: Note: 1: 1706 2: -2147483647 3: jre1.7.0_09.msi 
MSI (s) (2C:7C) [11:44:04:668]: Note: 1: 1706 2:  3: jre1.7.0_09.msi 
MSI (s) (2C:7C) [11:44:04:668]: SOURCEMGMT: Failed to resolve source
MSI (s) (2C:7C) [11:44:04:668]: MainEngineThread is returning 1612
MSI (s) (2C:70) [11:44:04:670]: User policy value 'DisableRollback' is 0
MSI (s) (2C:70) [11:44:04:670]: Machine policy value 'DisableRollback' is 0
MSI (s) (2C:70) [11:44:04:670]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (2C:70) [11:44:04:670]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (2C:70) [11:44:04:671]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (2C:70) [11:44:04:671]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2 
MSI (s) (2C:70) [11:44:04:671]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2 
MSI (s) (2C:70) [11:44:04:671]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (s) (2C:70) [11:44:04:671]: Restoring environment variables
MSI (c) (9C:EC) [11:44:04:675]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (9C:EC) [11:44:04:675]: MainEngineThread is returning 1612
=== Verbose logging stopped: 24/10/2012  11:44:04 ===

我不确定下一步该怎么做。如能得到任何帮助我将不胜感激。谢谢。

答案1

因此共享存在一些访问问题。我通过组策略为软件部署创建了一个新的共享,并授予域计算机访问权限,现在它运行正常。

我认为我尝试使用的先前共享位置存在一些遗留权限问题。我已设置一个安全组来测试软件部署,并添加了要测试的计算机,然后我向部署安全组授予权限,但出于某种原因,它不起作用。

现在运行良好。新共享仅用于组策略部署和授予域计算机的读取访问权限。我认为这是共享权限,而不是安全权限。

相关内容