使用批处理命令运行安装MSI文件时遇到问题

时间:2014-12-01 16:46:29

标签: batch-file windows-installer

我根据推荐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   

1 个答案:

答案 0 :(得分:0)

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.