2014-09-24 59 views
0

msiexec.exe无法间歇性地卸载。 仅当触发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 === 

任何帮助理解这种失败的可能原因?

在此先感谢!

回答

0

通常情况下,日志文件的最后部分是不够的,因为它显示的不仅仅是返回码。

这里有点不同。 “MainEngineThread返回2 ”主要与路径有关,换言之,MSI没有找到或无法从您指定的位置读取MSI。也许这条路并不干净。

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

+0

Philm,感谢您的回复。 – venki 2014-09-25 05:28:33

+0

我已经复制了原始问题中的完整日志。请看一看。卸载过程中的整个命令行如下所示:“msiexec.exe/x <绝对路径到msi文件>/quiet/lv * <绝对路径到日志文件>” – venki 2014-09-25 05:31:39