Command line 命令行安装MSI花费的时间太长

Command line 命令行安装MSI花费的时间太长,command-line,windows-installer,Command Line,Windows Installer,由于某些原因,尝试通过命令行安装msi可执行文件花费的时间太长或从未完成。该程序是用于windows的未签名主题,允许您在windows上运行不受支持的主题。可从以下网址获取: 我正在尝试使用以下内容安装64位版本: start /wait "UxStyle Core x64.msi" 整个批处理文件如下所示: @echo off net stop uxsms IF "%PROCESSOR_ARCHITECTURE%" == "AMD64" call :install64 IF "%PRO

由于某些原因,尝试通过命令行安装msi可执行文件花费的时间太长或从未完成。该程序是用于windows的未签名主题,允许您在windows上运行不受支持的主题。可从以下网址获取:

我正在尝试使用以下内容安装64位版本:

start /wait "UxStyle Core x64.msi"
整个批处理文件如下所示:

@echo off

net stop uxsms

IF "%PROCESSOR_ARCHITECTURE%" == "AMD64" call :install64
IF "%PROCESSOR_ARCHITECTURE%" == "x86" call :install32

IF ERRORLEVEL 1 goto :UxStyleErr

takeown /f "%WINDIR%\Resources\Themes\Aero\aero.msstyles" 
icacls "%WINDIR%\Resources\Themes\Aero\aero.msstyles" /grant %USERNAME%:F"
ren "%WINDIR%\Resources\Themes\Aero\aero.msstyles" aero.msstyles.original
copy /y aero.msstyles "%WINDIR%\Resources\Themes\Aero\"

net start uxsms

echo Installation completed. Press any key to reboot or close this dialog if you want to restart later.
pause
shutdown /r /t 0
goto :eof

:install64
start /wait "UxStyle Core x64.msi"
goto :eof

:install32
start /wait "UxStyle Core x86.msi"
goto :eof

:UxStyleErr
echo An error occured while installing UxStyle Core. Installation will now quit.
pause
goto :eof
我做错了什么?

请阅读:


看起来您缺少/QB或/QB开关,无法在没有交互的情况下运行。还考虑添加ReBooDe= R以防止MSI执行任何意外重启。

而不是使用开始/等待启动.MSI文件,我建议直接调用MSsiExc.EXE。您还可以生成一个日志文件,帮助您诊断发生了什么问题。因此,我将修改您的

start/wait
命令如下:

msiexec /i "UxStyle Core x64.msi" /l*v x64_installlog.txt

您可以将
/passive
/quiet
添加到命令中,以仅显示进度条或在绝对没有UI的情况下运行。

谢谢。按照你的指示,我让它工作了。很抱歉延迟回复。