Harish
Posts: 35
Joined: Tue Dec 27, 2005 9:25 am

How to install the created msi silently

Hi,

I want to install the generated msi file silently, it should not ask for UI, and it should write the log file. How it can be done? Its not the silent installation of prerequisites.

Thanks in Advance,

Harish.Y
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

Use the following command line to install a package with no UI at all and also create an install log:

Code: Select all

msiexec /i package.msi /L*V! "c:\install.log" /qn
For more details on command line options please visit:
http://msdn.microsoft.com/library/defau ... ptions.asp

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
sorex
Posts: 5
Joined: Sun Dec 25, 2005 2:50 pm

Nice :)

And how can you tell that it has ran into an error?

Does the installer return error codes aswell or does it do an auto roll back and displaying an error pop-up?
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,
And how can you tell that it has ran into an error?
You can check the log. Or you could use the "/qb" switch instead of "/qn" to use the BasicUI.
Does the installer return error codes aswell or does it do an auto roll back and displaying an error pop-up?
1. Msiexec also sets an error level on return that corresponds to system error codes.
2. If an error occurs, a rollback will be performed.
3. Nothing is displayed when using the "/qn" switch; however, errors are displayed when using the "/qb" switch.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
sorex
Posts: 5
Joined: Sun Dec 25, 2005 2:50 pm

ok, thanks for the info.

Return to “Common Problems”