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 :(得分:0)
通常,日志文件的最后一部分是不够的,因为它显示的不仅仅是返回代码。
这里有点不同。 &#34; MainEngineThread返回2 &#34;主要与路径有关,换句话说,MSI没有找到或无法从您指定的位置读取MSI。也许道路并不干净。
您知道,对于卸载,您根本不需要MSI文件的路径吗?而且打电话给
msiexec /x {YourProductCode} ...
比使用文件名进行卸载要可靠得多!试试这个。如果卸载是复杂解包的一部分,就像某些类似的安装错误,那么就会出现问题。
如果这没有帮助:你能给我们你打电话的整个命令行吗?