0

msiexec.exe 间歇性卸载失败。仅当触发 msiexec.exe 静默卸载时才会出现此行为。

在卸载失败期间,我在卸载日志中看到以下错误。但是错误日志没有帮助。

=== Verbose logging started: 9/24/2014  10:45:39  Build type: SHIP UNICODE 5.00.9600.00  Calling process: C:\windows\SysWOW64\msiexec.exe ===
MSI (c) (2C:50) [10:45:39:478]: Resetting cached policy values
MSI (c) (2C:50) [10:45:39:478]: Machine policy value 'Debug' is 0
MSI (c) (2C:50) [10:45:39:478]: ******* RunEngine:
           ******* Product: <absolute-path-to-msi-file>
           ******* Action: 
           ******* CommandLine: **********
MSI (c) (2C:50) [10:45:39:479]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (2C:50) [10:45:39:479]: Grabbed execution mutex.
MSI (c) (2C:50) [10:45:39:486]: Cloaking enabled.
MSI (c) (2C:50) [10:45:39:486]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (2C:50) [10:45:39:489]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (B0:E4) [10:45:39:494]: Running installation inside multi-package transaction <absolute-path-to-msi-file>
MSI (s) (B0:E4) [10:45:39:494]: Grabbed execution mutex.
MSI (s) (B0:54) [10:45:39:495]: Resetting cached policy values
MSI (s) (B0:54) [10:45:39:495]: Machine policy value 'Debug' is 0
MSI (s) (B0:54) [10:45:39:495]: ******* RunEngine:
           ******* Product: <absolute-path-to-msi-file>
           ******* Action: 
           ******* CommandLine: **********
MSI (s) (B0:54) [10:45:39:495]: Note: 1: 2203 2: <absolute-path-to-msi-file> 3: -2147287038 
MSI (s) (B0:54) [10:45:39:495]: MainEngineThread is returning 2
MSI (s) (B0:E4) [10:45:39:496]: User policy value 'DisableRollback' is 0
MSI (s) (B0:E4) [10:45:39:496]: Machine policy value 'DisableRollback' is 0
MSI (s) (B0:E4) [10:45:39:496]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (B0:E4) [10:45:39:497]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (B0:E4) [10:45:39:497]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (B0:E4) [10:45:39:497]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (2C:50) [10:45:39:498]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (2C:50) [10:45:39:499]: MainEngineThread is returning 2
=== Verbose logging stopped: 9/24/2014  10:45:39 ===

对理解此失败的可能原因有什么帮助吗?

提前致谢!

4

1 回答 1

0

通常日志文件的最后一部分是不够的,因为它显示的内容并不多于返回码。

这里有点不同。“MainEngineThread is returned 2”主要与路径有关,换句话说,MSI 没有找到或无法从您指定的位置读取 MSI。也许路径没有明确给出。

您知道,对于卸载,您根本不需要 MSI 文件的路径?此外,调用
msiexec /x {YourProductCode} ...比使用文件名进行卸载更可靠!尝试这个。如果卸载是复杂解包的一部分,例如有时出现类似的安装错误,那么就会出现问题。如果这没有帮助:你能给我们你打电话的整个命令行吗?

于 2014-09-24T21:10:50.137 回答