Home > database >  msiexec silent install will fail without error
msiexec silent install will fail without error

Time:03-05

On Windows 10, I have tried to do a silent install of an msi package, but the install simply fails without any error.

Here are my commands to get the msi in zip format, unzip, and then install.

wget -q http://kakadusoftware.com/wp-content/uploads/KDU805_Demo_Apps_for_Win64_200602.msi_.zip
cmake -E tar -xf KDU805_Demo_Apps_for_Win64_200602.msi_.zip
msiexec /i KDU805_Demo_Apps_for_Win64_200602.msi /quiet /qn /norestart

CodePudding user response:

The Windows Installer is a "Windows application" (as opposed to a "console application") which means starting it from the command-line will not cause the console to wait. To wait, you need to explicitly wait for the process to exit. One easy way is:

start /wait "" msiexec /i KDU805_Demo_Apps_for_Win64_200602.msi /qn /norestart

Note: The empty string "" is important if you ever need to quote the command-line to start. Otherwise, the start command will use your quoted command-line as the title of the created window (crazy, I know, check start /? for the details).

  • Related