andre.silva-wdg
Posts: 11
Joined: Mon Dec 14, 2020 6:10 pm

Display error message at prompt with silent install

Tue Jun 08, 2021 3:10 pm

I created an installer type .exe and I'm using a command prompt to be able to perform the installation silently, passing some input parameters.
I would like to know if it is possible to display any error message in the command prompt when I am performing a silent installation?

Thanks in advance!

Catalin
Posts: 4358
Joined: Wed Jun 13, 2018 7:49 am

Re: Display error message at prompt with silent install

Tue Jun 08, 2021 4:36 pm

Hello Andre,

I'm afraid that might not be possible, or at least as far as I'm aware.

The closes thing to this would be using the %errorlevel% variable (e.g. in a batch file launch the msi and then echo the %errorlevel% variable).

This should display the return code of the process.

More information about the return codes could be found here:

MsiExec.exe and InstMsi.exe Error Messages (for Developers)

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”