Jacko
Jacko

Reputation: 13195

msiexec silent install will fail without error

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

Edit: I logged output to file, and found this error

MSI (s) (64:AC) [09:15:20:332]: Product: Kakadu Demo-Apps -- Error 1925. You do not have sufficient privileges to complete this installation for all users of the machine.  Log on as administrator and then retry this installation.

Upvotes: 0

Views: 1891

Answers (1)

Rob Mensching
Rob Mensching

Reputation: 35901

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).

Upvotes: 2

Related Questions