Reputation: 91
I have around 81 .msi files that I have to install, so I decided to create an application in order to install them. However, when I try to install one, I get an installation dialog prompt. Is there a way to cancel all dialogs from an installation process in C# or do I need to use some kind of tool like install shield? (I'm trying to figure out how to use it.)
Right now, I'm using a dataset to store the path of the .msi and the names. In order to run the .msi I'm using Process.Start()
inside a loop.
Upvotes: 0
Views: 637
Reputation: 6212
Try passing the '/quiet' parameter to the installer as documented here:
msiexec.exe /i "path/to/installer.msi" /quiet
By the way, there is no reason to script this in C#. You could script this in a simple batch file.
Upvotes: 2