【问题标题】:Having trouble running installing an MSI file using the batch command使用批处理命令运行安装 MSI 文件时遇到问题
【发布时间】:2014-12-01 16:46:28
【问题描述】:

我根据 Stein Åsmul 的建议创建了以下批处理文件。 这是链接:Batch script to install MSI 当我运行批处理文件时,程序不会安装 .msi 文件,而是会从文件夹中删除 .msi 文件。

我的批处理文件代码的副本,非常简单:

echo.
Echo Installing EZL Consumer IDM 3.12.0036 now.
msiexec.exe/i c:\InstallationFiles\EZL\EZL3.12.0036InstallPrePackaged\
EasyLenderConsumerIDM3.12.0036Update3.msi 
/QN /L*V "C:\Temp\msilog.log
echo Installation complete.

附加的 msilog.log 副本

=== Verbose logging started: 12/01/2014  9:33:23  Build type: SHIP UNICODE 5.00.7601.00  
Calling   process: C:\Windows\SysWOW64\msiexec.exe ===
MSI (c) (DC:80) [09:33:23:232]: Resetting cached policy values
MSI (c) (DC:80) [09:33:23:232]: Machine policy value 'Debug' is 0
MSI (c) (DC:80) [09:33:23:232]: ******* RunEngine:
******* Product:   
c:\InstallationFiles\EZL\EZL3.12.0036InstallPrePackaged\EasyLenderConsumerIDM3.12.0036Update3.msi
******* Action: 
******* CommandLine: **********
MSI (c) (DC:80) [09:33:23:233]: Client-side and UI is none or basic: Running entire install on  
the server.
MSI (c) (DC:80) [09:33:23:233]: Grabbed execution mutex.
MSI **strong text**(c) (DC:80) [09:33:23:366]: Cloaking enabled.
MSI (c) (DC:80) [09:33:23:366]: Attempting to enable all disabled privileges before calling   
Install on Server
MSI (c) (DC:80) [09:33:23:394]: Incrementing counter to disable shutdown. Counter after  
increment: 0
MSI (s) (8C:CC) [09:33:23:402]: Running installation inside multi-package transaction  
c:\InstallationFiles\EZL\EZL3.12.0036InstallPrePackaged\EasyLenderConsumerIDM3.12.0036Update3.msi
MSI (s) (8C:CC) [09:33:23:402]: Grabbed execution mutex.
MSI (s) (8C:F4) [09:33:23:404]: Resetting cached policy values
MSI (s) (8C:F4) [09:33:23:404]: Machine policy value 'Debug' is 0
MSI (s) (8C:F4) [09:33:23:404]: ******* RunEngine:
******* Product:   
c:\InstallationFiles\EZL\EZL3.12.0036InstallPrePackaged\EasyLenderConsumerIDM3.12.0036Update3.msi
******* Action: 
******* CommandLine: **********
MSI (s) (8C:F4) [09:33:23:405]: Note: 1: 2203 2:   
c:\InstallationFiles\EZL\EZL3.12.0036InstallPrePackaged\
EasyLenderConsumerIDM3.12.0036Update3.msi  
3: -2147287037 
MSI (s) (8C:F4) [09:33:23:405]: MainEngineThread is returning 3
MSI (s) (8C:CC) [09:33:23:406]: User policy value 'DisableRollback' is 0
MSI (s) (8C:CC) [09:33:23:406]: Machine policy value 'DisableRollback' is 0
MSI (s) (8C:CC) [09:33:23:406]: Incrementing counter to disable shutdown. Counter after  
increment: 0
MSI (s) (8C:CC) [09:33:23:406]: Note: 1: 1402 2:   
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (8C:CC) [09:33:23:406]: Note: 1: 1402 2:   
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (8C:CC) [09:33:23:407]: Note: 1: 1402 2:   
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2 
MSI (s) (8C:CC) [09:33:23:407]: Note: 1: 1402 2:  
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2 
MSI (s) (8C:CC) [09:33:23:407]: Decrementing counter to disable shutdown. If counter >= 0,  
shutdown will be denied.  Counter after decrement: -1
MSI (s) (8C:CC) [09:33:23:407]: Restoring environment variables
MSI (c) (DC:80) [09:33:23:408]: Decrementing counter to disable shutdown. If counter >= 0, 
shutdown will be denied.  Counter after decrement: -1
MSI (c) (DC:80) [09:33:23:409]: MainEngineThread is returning 3
=== Verbose logging stopped: 12/01/2014  9:33:23   

【问题讨论】:

  • 您当天解决了这个问题吗?我认为这是一个 MSI,它运行嵌套的 MSI 文件作为其主要安装的一部分——本质上嵌入在原始 MSI 中的 MSI 文件通过自定义操作运行。这是 Windows Installer 已弃用的功能,可能会导致许多奇怪的问题。

标签: batch-file windows-installer


【解决方案1】:
C:\Users\User>net helpmsg 3

The system cannot find the path specified.

 -2147287037 = 80030003

8003是结构化存储

0x80030003  STG_E_PATHNOTFOUND  The path %1 could not be found.

【讨论】:

  • 这是您的包裹还是第三者? MSI 包可以在内部将文件负载存储为包内的 CAB 文件流,在外部存储为 cab 文件,或者负载可以作为原始文件位于 MSI(管理映像)下的文件夹结构中。如果您以交互方式运行安装程序,它是否可以正常工作?我想知道您是否已经获得了 MSI 文件,但有效负载已以某种方式与文件分离。尝试对 MSI 包进行“管理”安装(使用 /a 而不是 /i),看看会发生什么。
猜你喜欢
  • 2015-05-03
  • 1970-01-01
  • 2016-01-04
  • 1970-01-01
  • 2018-09-08
  • 2013-11-11
  • 2010-10-30
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多