在命令行中安装 2 个文件

Installing 2 files in command line

我正在尝试静默安装 IBM i 访问和它的服务包。但是,由于 IBM 的制作方式的性质,每当安装 64 位版本时,我都必须安装 Windows C++ 安全更新 x64 和 x86。

我有一个批处理文件,可以根据系统类型安装或根据系统类型安装,但我无法让它一个接一个地安装 64 位版本。

这是我的代码 - 请注意,为了测试,有些内容已被注释掉。

::@echo off
::Check bitness, proceed accordingly
If exist "C:\Program Files (x86)" GOTO X64

::Setup i Access for 32-bit
:X32

cd %~dp0MS05SU
start /wait msiexec /i vcredist_x86.msi /qn /norestart
cd ..
cd install
cd image32
setup.exe /S
goto END
::Setup i Access for 64-bit
:X64

cd %~dp0MS05SU
start /wait msiexec /i vcredist_x64.msi /qn /norestart
start /wait msiexec /i vcredist_x86.msi /qn /norestart <--- not installing after the above does.
cd ..
cd install
cd image64a
setup.exe /S

:END
::exit

批处理文件工作正常,我只需要为 64 位版本安装这两个更新。

有人知道如何分别安装这两个吗?

编辑 1:这些是 .exe 文件!那个错误是我的。

是一个文件问题。我有错误的文件。能够从 exe 和 boom 中提取实际的 msi。工作了。