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: 6506
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

LucasCarneiro
Posts: 2
Joined: Mon Feb 26, 2024 6:32 pm

Re: Display error message at prompt with silent install

Mon Feb 26, 2024 6:35 pm

Hello folks,

Any news on this case?
I'm having the same difficulty. I need to be able to show error messages directly at the prompt when doing a silent install.

Thanks in advance!

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

Re: Display error message at prompt with silent install

Wed Feb 28, 2024 2:44 pm

Hey Lucas,

Please see my answer above.

That would be the only solution that comes close to what you need that I'm aware of.

Hope it helps!

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

Return to “Common Problems”